Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
atl1.c File Reference
#include <linux/atomic.h>
#include <asm/byteorder.h>
#include <linux/compiler.h>
#include <linux/crc32.h>
#include <linux/delay.h>
#include <linux/dma-mapping.h>
#include <linux/etherdevice.h>
#include <linux/hardirq.h>
#include <linux/if_ether.h>
#include <linux/if_vlan.h>
#include <linux/in.h>
#include <linux/interrupt.h>
#include <linux/ip.h>
#include <linux/irqflags.h>
#include <linux/irqreturn.h>
#include <linux/jiffies.h>
#include <linux/mii.h>
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/net.h>
#include <linux/netdevice.h>
#include <linux/pci.h>
#include <linux/pci_ids.h>
#include <linux/pm.h>
#include <linux/skbuff.h>
#include <linux/slab.h>
#include <linux/spinlock.h>
#include <linux/string.h>
#include <linux/tcp.h>
#include <linux/timer.h>
#include <linux/types.h>
#include <linux/workqueue.h>
#include <net/checksum.h>
#include "atl1.h"
#include "atlx.c"

Go to the source code of this file.

Data Structures

struct  atl1_option
 
struct  atl1_stats
 

Macros

#define ATLX_DRIVER_VERSION   "2.1.3"
 
#define ATL1_MAX_NIC   4
 
#define OPTION_UNSET   -1
 
#define OPTION_DISABLED   0
 
#define OPTION_ENABLED   1
 
#define ATL1_PARAM_INIT   { [0 ... ATL1_MAX_NIC] = OPTION_UNSET }
 
#define DEFAULT_INT_MOD_CNT   100 /* 200us */
 
#define MAX_INT_MOD_CNT   65000
 
#define MIN_INT_MOD_CNT   50
 
#define CUSTOM_SPI_CS_SETUP   2
 
#define CUSTOM_SPI_CLK_HI   2
 
#define CUSTOM_SPI_CLK_LO   2
 
#define CUSTOM_SPI_CS_HOLD   2
 
#define CUSTOM_SPI_CS_HI   3
 
#define ATL1_PM_OPS   NULL
 
#define ATL1_STAT(m)   sizeof(((struct atl1_adapter *)0)->m), offsetof(struct atl1_adapter, m)
 

Functions

 MODULE_AUTHOR ("Xiong Huang <[email protected]>, ""Chris Snook <[email protected]>, ""Jay Cliburn <[email protected]>")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_VERSION (ATLX_DRIVER_VERSION)
 
 module_param_array_named (int_mod_timer, int_mod_timer, int,&num_int_mod_timer, 0)
 
 MODULE_PARM_DESC (int_mod_timer,"Interrupt moderator timer")
 
 MODULE_DEVICE_TABLE (pci, atl1_pci_tbl)
 
 module_param (debug, int, 0)
 
 MODULE_PARM_DESC (debug,"Message level (0=none,...,16=all)")
 
 module_init (atl1_init_module)
 
 module_exit (atl1_exit_module)
 

Macro Definition Documentation

#define ATL1_MAX_NIC   4

Definition at line 101 of file atl1.c.

#define ATL1_PARAM_INIT   { [0 ... ATL1_MAX_NIC] = OPTION_UNSET }

Definition at line 107 of file atl1.c.

#define ATL1_PM_OPS   NULL

Definition at line 2887 of file atl1.c.

#define ATL1_STAT (   m)    sizeof(((struct atl1_adapter *)0)->m), offsetof(struct atl1_adapter, m)

Definition at line 3185 of file atl1.c.

#define ATLX_DRIVER_VERSION   "2.1.3"

Definition at line 85 of file atl1.c.

#define CUSTOM_SPI_CLK_HI   2

Definition at line 384 of file atl1.c.

#define CUSTOM_SPI_CLK_LO   2

Definition at line 385 of file atl1.c.

#define CUSTOM_SPI_CS_HI   3

Definition at line 387 of file atl1.c.

#define CUSTOM_SPI_CS_HOLD   2

Definition at line 386 of file atl1.c.

#define CUSTOM_SPI_CS_SETUP   2

Definition at line 383 of file atl1.c.

#define DEFAULT_INT_MOD_CNT   100 /* 200us */

Definition at line 122 of file atl1.c.

#define MAX_INT_MOD_CNT   65000

Definition at line 123 of file atl1.c.

#define MIN_INT_MOD_CNT   50

Definition at line 124 of file atl1.c.

#define OPTION_DISABLED   0

Definition at line 104 of file atl1.c.

#define OPTION_ENABLED   1

Definition at line 105 of file atl1.c.

#define OPTION_UNSET   -1

Definition at line 103 of file atl1.c.

Function Documentation

MODULE_AUTHOR ( "Xiong Huang <[email protected] ,
""Chris Snook< csnook @redhat.com >  ,
""Jay Cliburn< jcliburn @gmail.com >"   
)
MODULE_DEVICE_TABLE ( pci  ,
atl1_pci_tbl   
)
module_exit ( atl1_exit_module  )
module_init ( atl1_init_module  )
MODULE_LICENSE ( "GPL"  )
module_param ( debug  ,
int  ,
 
)
module_param_array_named ( int_mod_timer  ,
int_mod_timer  ,
int  ,
num_int_mod_timer,
 
)
MODULE_PARM_DESC ( int_mod_timer  ,
"Interrupt moderator timer  
)
MODULE_PARM_DESC ( debug  ,
"Message level (0=none,...,16=all)"   
)
MODULE_VERSION ( ATLX_DRIVER_VERSION  )