Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
cxgb4vf_main.c File Reference
#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.

Data Structures

struct  queue_port_stats
 
struct  cxgb4vf_debugfs_entry
 

Macros

#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 }
 

Enumerations

enum  {
  MAX_TXQ_ENTRIES = 16384, MAX_RSPQ_ENTRIES = 16384, MAX_RX_BUFFERS = 16384, MIN_TXQ_ENTRIES = 32,
  MIN_RSPQ_ENTRIES = 128, MIN_FL_ENTRIES = 16, EQ_UNIT = SGE_EQ_IDXSIZE, FL_PER_EQ_UNIT = EQ_UNIT / sizeof(__be64),
  MIN_FL_RESID = FL_PER_EQ_UNIT
}
 

Functions

 module_param (dflt_msg_enable, int, 0644)
 
 MODULE_PARM_DESC (dflt_msg_enable,"default adapter ethtool message level bitmap")
 
 module_param (msi, int, 0644)
 
 MODULE_PARM_DESC (msi,"whether to use MSI-X or MSI")
 
void t4vf_os_link_changed (struct adapter *adapter, int pidx, int link_ok)
 
 MODULE_DESCRIPTION (DRV_DESC)
 
 MODULE_AUTHOR ("Chelsio Communications")
 
 MODULE_LICENSE ("Dual BSD/GPL")
 
 MODULE_VERSION (DRV_VERSION)
 
 MODULE_DEVICE_TABLE (pci, cxgb4vf_pci_tbl)
 
 module_init (cxgb4vf_module_init)
 
 module_exit (cxgb4vf_module_exit)
 

Macro Definition Documentation

#define CH_DEVICE (   devid,
  idx 
)    { PCI_VENDOR_ID_CHELSIO, devid, PCI_ANY_ID, PCI_ANY_ID, 0, 0, idx }

Definition at line 2877 of file cxgb4vf_main.c.

#define DFLT_MSG_ENABLE
Value:

Definition at line 66 of file cxgb4vf_main.c.

#define DRV_DESC   "Chelsio T4 Virtual Function (VF) Network Driver"

Definition at line 56 of file cxgb4vf_main.c.

#define DRV_VERSION   "1.0.0"

Definition at line 55 of file cxgb4vf_main.c.

#define MSI_DEFAULT   MSI_MSIX

Definition at line 90 of file cxgb4vf_main.c.

#define MSI_MSI   1

Definition at line 89 of file cxgb4vf_main.c.

#define MSI_MSIX   2

Definition at line 88 of file cxgb4vf_main.c.

#define QPL   4

Definition at line 1748 of file cxgb4vf_main.c.

#define QPL   4

Definition at line 1748 of file cxgb4vf_main.c.

#define R (   s,
  v 
)    S3("u", s, rxq[qs].v)
#define R (   s,
  v 
)    R3("lu", s, v)
#define R3 (   fmt,
  s,
  v 
)    S3(fmt, s, rxq[qs].v)
#define S (   s,
  v 
)    S3("s", s, v)
#define S (   s,
  v 
)    S3("s", s, v)
#define S (   desc,
  fmt,
  var 
)
Value:
seq_printf(seq, "%-60s " fmt "\n", \
desc " (" #var "):", vfres->var)
#define S3 (   fmt_spec,
  s,
  v 
)
Value:
do {\
seq_printf(seq, "%-12s", s); \
for (qs = 0; qs < n; ++qs) \
seq_printf(seq, " %16" fmt_spec, v); \
seq_putc(seq, '\n'); \
} while (0)
#define S3 (   fmt,
  s,
  v 
)
Value:
do { \
seq_printf(seq, "%-16s", s); \
for (qs = 0; qs < n; ++qs) \
seq_printf(seq, " %8" fmt, v); \
seq_putc(seq, '\n'); \
} while (0)
#define T (   s,
  v 
)    S3("u", s, txq[qs].v)
#define T (   s,
  v 
)    T3("lu", s, v)
#define T3 (   fmt,
  s,
  v 
)    S3(fmt, s, txq[qs].v)
#define TSO_FLAGS   (NETIF_F_TSO | NETIF_F_TSO6 | NETIF_F_TSO_ECN)

Definition at line 1565 of file cxgb4vf_main.c.

Enumeration Type Documentation

anonymous enum
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.

Function Documentation

MODULE_AUTHOR ( "Chelsio Communications"  )
MODULE_DESCRIPTION ( DRV_DESC  )
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 ( dflt_msg_enable  ,
"default adapter ethtool message level bitmap  
)
MODULE_PARM_DESC ( msi  ,
"whether to use MSI-X or MSI  
)
MODULE_VERSION ( DRV_VERSION  )
void t4vf_os_link_changed ( struct adapter adapter,
int  pidx,
int  link_ok 
)

Definition at line 141 of file cxgb4vf_main.c.