#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/init.h>
#include <linux/pci.h>
#include <linux/dma-mapping.h>
#include <linux/netdevice.h>
#include <linux/etherdevice.h>
#include <linux/debugfs.h>
#include <linux/ethtool.h>
#include "t4vf_common.h"
#include "t4vf_defs.h"
#include "../cxgb4/t4_regs.h"
#include "../cxgb4/t4_msg.h"
Go to the source code of this file.
|
#define | DRV_VERSION "1.0.0" |
|
#define | DRV_DESC "Chelsio T4 Virtual Function (VF) Network Driver" |
|
#define | DFLT_MSG_ENABLE |
|
#define | MSI_MSIX 2 |
|
#define | MSI_MSI 1 |
|
#define | MSI_DEFAULT MSI_MSIX |
|
#define | TSO_FLAGS (NETIF_F_TSO | NETIF_F_TSO6 | NETIF_F_TSO_ECN) |
|
#define | QPL 4 |
|
#define | S3(fmt_spec, s, v) |
|
#define | S(s, v) S3("s", s, v) |
|
#define | T(s, v) S3("u", s, txq[qs].v) |
|
#define | R(s, v) S3("u", s, rxq[qs].v) |
|
#define | QPL 4 |
|
#define | S3(fmt, s, v) |
|
#define | S(s, v) S3("s", s, v) |
|
#define | T3(fmt, s, v) S3(fmt, s, txq[qs].v) |
|
#define | T(s, v) T3("lu", s, v) |
|
#define | R3(fmt, s, v) S3(fmt, s, rxq[qs].v) |
|
#define | R(s, v) R3("lu", s, v) |
|
#define | S(desc, fmt, var) |
|
#define | CH_DEVICE(devid, idx) { PCI_VENDOR_ID_CHELSIO, devid, PCI_ANY_ID, PCI_ANY_ID, 0, 0, idx } |
|
#define DRV_DESC "Chelsio T4 Virtual Function (VF) Network Driver" |
#define DRV_VERSION "1.0.0" |
#define R |
( |
|
s, |
|
|
|
v |
|
) |
| S3("u", s, rxq[qs].v) |
#define R |
( |
|
s, |
|
|
|
v |
|
) |
| R3("lu", s, v) |
#define S |
( |
|
s, |
|
|
|
v |
|
) |
| S3("s", s, v) |
#define S |
( |
|
s, |
|
|
|
v |
|
) |
| S3("s", s, v) |
Value:
desc " (" #var
"):", vfres->var)
#define S3 |
( |
|
fmt_spec, |
|
|
|
s, |
|
|
|
v |
|
) |
| |
Value:do {\
seq_printf(seq,
"%-12s",
s); \
seq_putc(seq, '\n'); \
} while (0)
Value:do { \
seq_printf(seq,
"%-16s",
s); \
seq_putc(seq, '\n'); \
} while (0)
#define T |
( |
|
s, |
|
|
|
v |
|
) |
| S3("u", s, txq[qs].v) |
#define T |
( |
|
s, |
|
|
|
v |
|
) |
| T3("lu", s, v) |
- Enumerator:
MAX_TXQ_ENTRIES |
|
MAX_RSPQ_ENTRIES |
|
MAX_RX_BUFFERS |
|
MIN_TXQ_ENTRIES |
|
MIN_RSPQ_ENTRIES |
|
MIN_FL_ENTRIES |
|
EQ_UNIT |
|
FL_PER_EQ_UNIT |
|
MIN_FL_RESID |
|
Definition at line 102 of file cxgb4vf_main.c.
MODULE_AUTHOR |
( |
"Chelsio Communications" |
| ) |
|
MODULE_DEVICE_TABLE |
( |
pci |
, |
|
|
cxgb4vf_pci_tbl |
|
|
) |
| |
module_exit |
( |
cxgb4vf_module_exit |
| ) |
|
module_init |
( |
cxgb4vf_module_init |
| ) |
|
MODULE_LICENSE |
( |
"Dual BSD/GPL" |
| ) |
|
module_param |
( |
dflt_msg_enable |
, |
|
|
int |
, |
|
|
0644 |
|
|
) |
| |
module_param |
( |
msi |
, |
|
|
int |
, |
|
|
0644 |
|
|
) |
| |
MODULE_PARM_DESC |
( |
msi |
, |
|
|
"whether to use MSI-X or MSI" |
|
|
) |
| |