Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
cxgb2.c File Reference
#include "common.h"
#include <linux/module.h>
#include <linux/init.h>
#include <linux/pci.h>
#include <linux/netdevice.h>
#include <linux/etherdevice.h>
#include <linux/if_vlan.h>
#include <linux/mii.h>
#include <linux/sockios.h>
#include <linux/dma-mapping.h>
#include <asm/uaccess.h>
#include "cpl5_cmd.h"
#include "regs.h"
#include "gmac.h"
#include "cphy.h"
#include "sge.h"
#include "tp.h"
#include "espi.h"
#include "elmer0.h"
#include <linux/workqueue.h>

Go to the source code of this file.

Macros

#define MAX_CMDQ_ENTRIES   16384
 
#define MAX_CMDQ1_ENTRIES   1024
 
#define MAX_RX_BUFFERS   16384
 
#define MAX_RX_JUMBO_BUFFERS   16384
 
#define MAX_TX_BUFFERS_HIGH   16384U
 
#define MAX_TX_BUFFERS_LOW   1536U
 
#define MAX_TX_BUFFERS   1460U
 
#define MIN_FL_ENTRIES   32
 
#define DFLT_MSG_ENABLE
 
#define EEPROM_SIZE   32
 
#define HCLOCK   0x0
 
#define LCLOCK   0x1
 
#define T2_REGMAP_SIZE   (3 * 1024)
 
#define ADVERTISED_MASK
 
#define EEPROM_MAGIC(ap)   (PCI_VENDOR_ID_CHELSIO | ((ap)->params.chip_version << 16))
 

Functions

 MODULE_DESCRIPTION (DRV_DESCRIPTION)
 
 MODULE_AUTHOR ("Chelsio Communications")
 
 MODULE_LICENSE ("GPL")
 
 module_param (dflt_msg_enable, int, 0)
 
 MODULE_PARM_DESC (dflt_msg_enable,"Chelsio T1 default message enable bitmap")
 
 module_param (t1powersave, int, 0)
 
 MODULE_PARM_DESC (t1powersave,"Enable/Disable T1 powersaving mode")
 
 module_param (disable_msi, int, 0)
 
 MODULE_PARM_DESC (disable_msi,"Disable Message Signaled Interrupt (MSI)")
 
void t1_link_negotiated (struct adapter *adapter, int port_id, int link_stat, int speed, int duplex, int pause)
 
void t1_elmer0_ext_intr (struct adapter *adapter)
 
void t1_fatal_err (struct adapter *adapter)
 
 module_init (t1_init_module)
 
 module_exit (t1_cleanup_module)
 

Macro Definition Documentation

#define ADVERTISED_MASK
Value:
ADVERTISED_100baseT_Half | ADVERTISED_100baseT_Full | \
ADVERTISED_1000baseT_Half | ADVERTISED_1000baseT_Full | \
ADVERTISED_10000baseT_Full)

Definition at line 628 of file cxgb2.c.

#define DFLT_MSG_ENABLE
Value:

Definition at line 81 of file cxgb2.c.

#define EEPROM_MAGIC (   ap)    (PCI_VENDOR_ID_CHELSIO | ((ap)->params.chip_version << 16))

Definition at line 775 of file cxgb2.c.

#define EEPROM_SIZE   32

Definition at line 89 of file cxgb2.c.

#define HCLOCK   0x0

Definition at line 100 of file cxgb2.c.

#define LCLOCK   0x1

Definition at line 101 of file cxgb2.c.

#define MAX_CMDQ1_ENTRIES   1024

Definition at line 73 of file cxgb2.c.

#define MAX_CMDQ_ENTRIES   16384

Definition at line 72 of file cxgb2.c.

#define MAX_RX_BUFFERS   16384

Definition at line 74 of file cxgb2.c.

#define MAX_RX_JUMBO_BUFFERS   16384

Definition at line 75 of file cxgb2.c.

#define MAX_TX_BUFFERS   1460U

Definition at line 78 of file cxgb2.c.

#define MAX_TX_BUFFERS_HIGH   16384U

Definition at line 76 of file cxgb2.c.

#define MAX_TX_BUFFERS_LOW   1536U

Definition at line 77 of file cxgb2.c.

#define MIN_FL_ENTRIES   32

Definition at line 79 of file cxgb2.c.

#define T2_REGMAP_SIZE   (3 * 1024)

Definition at line 426 of file cxgb2.c.

Function Documentation

MODULE_AUTHOR ( "Chelsio Communications"  )
MODULE_DESCRIPTION ( DRV_DESCRIPTION  )
module_exit ( t1_cleanup_module  )
module_init ( t1_init_module  )
MODULE_LICENSE ( "GPL"  )
module_param ( dflt_msg_enable  ,
int  ,
 
)
module_param ( t1powersave  ,
int  ,
 
)
module_param ( disable_msi  ,
int  ,
 
)
MODULE_PARM_DESC ( dflt_msg_enable  ,
"Chelsio T1 default message enable bitmap  
)
MODULE_PARM_DESC ( t1powersave  ,
"Enable/Disable T1 powersaving mode  
)
MODULE_PARM_DESC ( disable_msi  ,
"Disable Message Signaled Interrupt (MSI)"   
)
void t1_elmer0_ext_intr ( struct adapter adapter)

Definition at line 937 of file cxgb2.c.

void t1_fatal_err ( struct adapter adapter)

Definition at line 950 of file cxgb2.c.

void t1_link_negotiated ( struct adapter adapter,
int  port_id,
int  link_stat,
int  speed,
int  duplex,
int  pause 
)

Definition at line 150 of file cxgb2.c.