Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
sky2.c File Reference
#include <linux/crc32.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/netdevice.h>
#include <linux/dma-mapping.h>
#include <linux/etherdevice.h>
#include <linux/ethtool.h>
#include <linux/pci.h>
#include <linux/interrupt.h>
#include <linux/ip.h>
#include <linux/slab.h>
#include <net/ip.h>
#include <linux/tcp.h>
#include <linux/in.h>
#include <linux/delay.h>
#include <linux/workqueue.h>
#include <linux/if_vlan.h>
#include <linux/prefetch.h>
#include <linux/debugfs.h>
#include <linux/mii.h>
#include <asm/irq.h>
#include "sky2.h"

Go to the source code of this file.

Data Structures

struct  sky2_stat
 

Macros

#define pr_fmt(fmt)   KBUILD_MODNAME ": " fmt
 
#define DRV_NAME   "sky2"
 
#define DRV_VERSION   "1.30"
 
#define RX_LE_SIZE   1024
 
#define RX_LE_BYTES   (RX_LE_SIZE*sizeof(struct sky2_rx_le))
 
#define RX_MAX_PENDING   (RX_LE_SIZE/6 - 2)
 
#define RX_DEF_PENDING   RX_MAX_PENDING
 
#define MAX_SKB_TX_LE   (2 + (sizeof(dma_addr_t)/sizeof(u32))*(MAX_SKB_FRAGS+1))
 
#define TX_MIN_PENDING   (MAX_SKB_TX_LE+1)
 
#define TX_MAX_PENDING   1024
 
#define TX_DEF_PENDING   63
 
#define TX_WATCHDOG   (5 * HZ)
 
#define NAPI_WEIGHT   64
 
#define PHY_RETRIES   1000
 
#define SKY2_EEPROM_MAGIC   0x9955aabb
 
#define RING_NEXT(x, s)   (((x)+1) & ((s)-1))
 
#define SKY2_VLAN_OFFLOADS   (NETIF_F_IP_CSUM | NETIF_F_SG | NETIF_F_TSO)
 
#define sky2_debug_init()
 
#define sky2_debug_cleanup()
 
#define SKY2_PM_OPS   NULL
 

Functions

 module_param (debug, int, 0)
 
 MODULE_PARM_DESC (debug,"Debug level (0=none,...,16=all)")
 
 module_param (copybreak, int, 0)
 
 MODULE_PARM_DESC (copybreak,"Receive copy threshold")
 
 module_param (disable_msi, int, 0)
 
 MODULE_PARM_DESC (disable_msi,"Disable Message Signaled Interrupt (MSI)")
 
 module_param (legacy_pme, int, 0)
 
 MODULE_PARM_DESC (legacy_pme,"Legacy power management")
 
 MODULE_DEVICE_TABLE (pci, sky2_id_table)
 
 module_init (sky2_init_module)
 
 module_exit (sky2_cleanup_module)
 
 MODULE_DESCRIPTION ("Marvell Yukon 2 Gigabit Ethernet driver")
 
 MODULE_AUTHOR ("Stephen Hemminger <[email protected]>")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_VERSION (DRV_VERSION)
 

Macro Definition Documentation

#define DRV_NAME   "sky2"

Definition at line 52 of file sky2.c.

#define DRV_VERSION   "1.30"

Definition at line 53 of file sky2.c.

#define MAX_SKB_TX_LE   (2 + (sizeof(dma_addr_t)/sizeof(u32))*(MAX_SKB_FRAGS+1))

Definition at line 68 of file sky2.c.

#define NAPI_WEIGHT   64

Definition at line 74 of file sky2.c.

#define PHY_RETRIES   1000

Definition at line 75 of file sky2.c.

#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

Definition at line 25 of file sky2.c.

#define RING_NEXT (   x,
  s 
)    (((x)+1) & ((s)-1))

Definition at line 79 of file sky2.c.

#define RX_DEF_PENDING   RX_MAX_PENDING

Definition at line 64 of file sky2.c.

#define RX_LE_BYTES   (RX_LE_SIZE*sizeof(struct sky2_rx_le))

Definition at line 62 of file sky2.c.

#define RX_LE_SIZE   1024

Definition at line 61 of file sky2.c.

#define RX_MAX_PENDING   (RX_LE_SIZE/6 - 2)

Definition at line 63 of file sky2.c.

#define sky2_debug_cleanup ( )

Definition at line 4704 of file sky2.c.

#define sky2_debug_init ( )

Definition at line 4703 of file sky2.c.

#define SKY2_EEPROM_MAGIC   0x9955aabb

Definition at line 77 of file sky2.c.

#define SKY2_PM_OPS   NULL

Definition at line 5196 of file sky2.c.

#define SKY2_VLAN_OFFLOADS   (NETIF_F_IP_CSUM | NETIF_F_SG | NETIF_F_TSO)

Definition at line 1416 of file sky2.c.

#define TX_DEF_PENDING   63

Definition at line 71 of file sky2.c.

#define TX_MAX_PENDING   1024

Definition at line 70 of file sky2.c.

#define TX_MIN_PENDING   (MAX_SKB_TX_LE+1)

Definition at line 69 of file sky2.c.

#define TX_WATCHDOG   (5 * HZ)

Definition at line 73 of file sky2.c.

Function Documentation

MODULE_AUTHOR ( "Stephen Hemminger <[email protected]>"  )
MODULE_DESCRIPTION ( "Marvell Yukon 2 Gigabit Ethernet driver )
MODULE_DEVICE_TABLE ( pci  ,
sky2_id_table   
)
module_exit ( sky2_cleanup_module  )
module_init ( sky2_init_module  )
MODULE_LICENSE ( "GPL"  )
module_param ( debug  ,
int  ,
 
)
module_param ( copybreak  ,
int  ,
 
)
module_param ( disable_msi  ,
int  ,
 
)
module_param ( legacy_pme  ,
int  ,
 
)
MODULE_PARM_DESC ( debug  ,
"Debug level (0=none,...,16=all)"   
)
MODULE_PARM_DESC ( copybreak  ,
"Receive copy threshold  
)
MODULE_PARM_DESC ( disable_msi  ,
"Disable Message Signaled Interrupt (MSI)"   
)
MODULE_PARM_DESC ( legacy_pme  ,
"Legacy power management"   
)
MODULE_VERSION ( DRV_VERSION  )