#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)
{ … }
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(…);