#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/device.h>
#include <linux/netdevice.h>
#include <linux/etherdevice.h>
#include <linux/delay.h>
#include <linux/errno.h>
#include <linux/list.h>
#include <linux/spinlock.h>
#include <linux/ethtool.h>
#include <linux/rtnetlink.h>
#include <linux/inetdevice.h>
#include <net/addrconf.h>
#include <linux/io.h>
#include <asm/irq.h>
#include <asm/byteorder.h>
#include <rdma/iw_cm.h>
#include <rdma/ib_verbs.h>
#include <rdma/ib_smi.h>
#include <rdma/ib_umem.h>
#include <rdma/ib_user_verbs.h>
#include "iw_cxgb4.h"
static int fastreg_support = …;
module_param(fastreg_support, int, 0644);
MODULE_PARM_DESC(…) …;
static void c4iw_dealloc_ucontext(struct ib_ucontext *context)
{ … }
static int c4iw_alloc_ucontext(struct ib_ucontext *ucontext,
struct ib_udata *udata)
{ … }
static int c4iw_mmap(struct ib_ucontext *context, struct vm_area_struct *vma)
{ … }
static int c4iw_deallocate_pd(struct ib_pd *pd, struct ib_udata *udata)
{ … }
static int c4iw_allocate_pd(struct ib_pd *pd, struct ib_udata *udata)
{ … }
static int c4iw_query_gid(struct ib_device *ibdev, u32 port, int index,
union ib_gid *gid)
{ … }
static int c4iw_query_device(struct ib_device *ibdev, struct ib_device_attr *props,
struct ib_udata *uhw)
{ … }
static int c4iw_query_port(struct ib_device *ibdev, u32 port,
struct ib_port_attr *props)
{ … }
static ssize_t hw_rev_show(struct device *dev,
struct device_attribute *attr, char *buf)
{ … }
static DEVICE_ATTR_RO(hw_rev);
static ssize_t hca_type_show(struct device *dev,
struct device_attribute *attr, char *buf)
{ … }
static DEVICE_ATTR_RO(hca_type);
static ssize_t board_id_show(struct device *dev, struct device_attribute *attr,
char *buf)
{ … }
static DEVICE_ATTR_RO(board_id);
enum counters { … };
static const struct rdma_stat_desc cxgb4_descs[] = …;
static struct rdma_hw_stats *c4iw_alloc_device_stats(struct ib_device *ibdev)
{ … }
static int c4iw_get_mib(struct ib_device *ibdev,
struct rdma_hw_stats *stats,
u32 port, int index)
{ … }
static struct attribute *c4iw_class_attributes[] = …;
static const struct attribute_group c4iw_attr_group = …;
static int c4iw_port_immutable(struct ib_device *ibdev, u32 port_num,
struct ib_port_immutable *immutable)
{ … }
static void get_dev_fw_str(struct ib_device *dev, char *str)
{ … }
static const struct ib_device_ops c4iw_dev_ops = …;
static int set_netdevs(struct ib_device *ib_dev, struct c4iw_rdev *rdev)
{ … }
void c4iw_register_device(struct work_struct *work)
{ … }
void c4iw_unregister_device(struct c4iw_dev *dev)
{ … }