linux/drivers/net/ethernet/mellanox/mlx4/intf.c

/*
 * Copyright (c) 2006, 2007 Cisco Systems, Inc. All rights reserved.
 * Copyright (c) 2007, 2008 Mellanox Technologies. All rights reserved.
 *
 * This software is available to you under a choice of one of two
 * licenses.  You may choose to be licensed under the terms of the GNU
 * General Public License (GPL) Version 2, available from the file
 * COPYING in the main directory of this source tree, or the
 * OpenIB.org BSD license below:
 *
 *     Redistribution and use in source and binary forms, with or
 *     without modification, are permitted provided that the following
 *     conditions are met:
 *
 *      - Redistributions of source code must retain the above
 *        copyright notice, this list of conditions and the following
 *        disclaimer.
 *
 *      - Redistributions in binary form must reproduce the above
 *        copyright notice, this list of conditions and the following
 *        disclaimer in the documentation and/or other materials
 *        provided with the distribution.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
 * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
 * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 */

#include <linux/slab.h>
#include <linux/export.h>
#include <linux/errno.h>
#include <net/devlink.h>

#include "mlx4.h"

static DEFINE_MUTEX(intf_mutex);
static DEFINE_IDA(mlx4_adev_ida);

static bool is_eth_supported(struct mlx4_dev *dev)
{}

static bool is_ib_supported(struct mlx4_dev *dev)
{}

static const struct mlx4_adev_device {} mlx4_adev_devices[] =;

int mlx4_adev_init(struct mlx4_dev *dev)
{}

void mlx4_adev_cleanup(struct mlx4_dev *dev)
{}

static void adev_release(struct device *dev)
{}

static struct mlx4_adev *add_adev(struct mlx4_dev *dev, int idx)
{}

static void del_adev(struct auxiliary_device *adev)
{}

int mlx4_register_auxiliary_driver(struct mlx4_adrv *madrv)
{}
EXPORT_SYMBOL_GPL();

void mlx4_unregister_auxiliary_driver(struct mlx4_adrv *madrv)
{}
EXPORT_SYMBOL_GPL();

int mlx4_do_bond(struct mlx4_dev *dev, bool enable)
{}

void mlx4_dispatch_event(struct mlx4_dev *dev, enum mlx4_dev_event type,
			 void *param)
{}

int mlx4_register_event_notifier(struct mlx4_dev *dev,
				 struct notifier_block *nb)
{}
EXPORT_SYMBOL();

int mlx4_unregister_event_notifier(struct mlx4_dev *dev,
				   struct notifier_block *nb)
{}
EXPORT_SYMBOL();

static int add_drivers(struct mlx4_dev *dev)
{}

static void delete_drivers(struct mlx4_dev *dev)
{}

/* This function is used after mlx4_dev is reconfigured.
 */
static int rescan_drivers_locked(struct mlx4_dev *dev)
{}

int mlx4_register_device(struct mlx4_dev *dev)
{}

void mlx4_unregister_device(struct mlx4_dev *dev)
{}

struct devlink_port *mlx4_get_devlink_port(struct mlx4_dev *dev, int port)
{}
EXPORT_SYMBOL_GPL();