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

Go to the source code of this file.

Data Structures

struct  skge_stat
 

Macros

#define pr_fmt(fmt)   KBUILD_MODNAME ": " fmt
 
#define DRV_NAME   "skge"
 
#define DRV_VERSION   "1.14"
 
#define DEFAULT_TX_RING_SIZE   128
 
#define DEFAULT_RX_RING_SIZE   512
 
#define MAX_TX_RING_SIZE   1024
 
#define TX_LOW_WATER   (MAX_SKB_FRAGS + 1)
 
#define MAX_RX_RING_SIZE   4096
 
#define RX_COPY_THRESHOLD   128
 
#define RX_BUF_SIZE   1536
 
#define PHY_RETRIES   1000
 
#define ETH_JUMBO_MTU   9000
 
#define TX_WATCHDOG   (5 * HZ)
 
#define NAPI_WEIGHT   64
 
#define BLINK_MS   250
 
#define LINK_HZ   HZ
 
#define SKGE_EEPROM_MAGIC   0x9933aabb
 
#define skge_debug_init()
 
#define skge_debug_cleanup()
 
#define SKGE_PM_OPS   NULL
 

Enumerations

enum  led_mode {
  LED_MODE_OFF, LED_MODE_ON, LED_MODE_TST, MO_LED_NORM = 0,
  MO_LED_BLINK = 1, MO_LED_OFF = 2, MO_LED_ON = 3, LED_MODE_DEFAULT = 0,
  LED_MODE_TXRX_ACTIVITY = 1, LED_MODE_SIGNAL_STRENGTH = 2, LED_MODE_ASUS = 3, LED_MODE_ALPHA = 4
}
 

Functions

 MODULE_DESCRIPTION ("SysKonnect Gigabit Ethernet driver")
 
 MODULE_AUTHOR ("Stephen Hemminger <[email protected]>")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_VERSION (DRV_VERSION)
 
 module_param (debug, int, 0)
 
 MODULE_PARM_DESC (debug,"Debug level (0=none,...,16=all)")
 
 MODULE_DEVICE_TABLE (pci, skge_id_table)
 
 module_init (skge_init_module)
 
 module_exit (skge_cleanup_module)
 

Macro Definition Documentation

#define BLINK_MS   250

Definition at line 66 of file skge.c.

#define DEFAULT_RX_RING_SIZE   512

Definition at line 56 of file skge.c.

#define DEFAULT_TX_RING_SIZE   128

Definition at line 55 of file skge.c.

#define DRV_NAME   "skge"

Definition at line 52 of file skge.c.

#define DRV_VERSION   "1.14"

Definition at line 53 of file skge.c.

#define ETH_JUMBO_MTU   9000

Definition at line 63 of file skge.c.

#define LINK_HZ   HZ

Definition at line 67 of file skge.c.

#define MAX_RX_RING_SIZE   4096

Definition at line 59 of file skge.c.

#define MAX_TX_RING_SIZE   1024

Definition at line 57 of file skge.c.

#define NAPI_WEIGHT   64

Definition at line 65 of file skge.c.

#define PHY_RETRIES   1000

Definition at line 62 of file skge.c.

#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

Definition at line 26 of file skge.c.

#define RX_BUF_SIZE   1536

Definition at line 61 of file skge.c.

#define RX_COPY_THRESHOLD   128

Definition at line 60 of file skge.c.

#define skge_debug_cleanup ( )

Definition at line 3783 of file skge.c.

#define skge_debug_init ( )

Definition at line 3782 of file skge.c.

#define SKGE_EEPROM_MAGIC   0x9933aabb

Definition at line 69 of file skge.c.

#define SKGE_PM_OPS   NULL

Definition at line 4118 of file skge.c.

#define TX_LOW_WATER   (MAX_SKB_FRAGS + 1)

Definition at line 58 of file skge.c.

#define TX_WATCHDOG   (5 * HZ)

Definition at line 64 of file skge.c.

Enumeration Type Documentation

enum led_mode
Enumerator:
LED_MODE_OFF 
LED_MODE_ON 
LED_MODE_TST 
MO_LED_NORM 
MO_LED_BLINK 
MO_LED_OFF 
MO_LED_ON 
LED_MODE_DEFAULT 
LED_MODE_TXRX_ACTIVITY 
LED_MODE_SIGNAL_STRENGTH 
LED_MODE_ASUS 
LED_MODE_ALPHA 

Definition at line 679 of file skge.c.

Function Documentation

MODULE_AUTHOR ( "Stephen Hemminger <[email protected]>"  )
MODULE_DESCRIPTION ( "SysKonnect Gigabit Ethernet driver )
MODULE_DEVICE_TABLE ( pci  ,
skge_id_table   
)
module_exit ( skge_cleanup_module  )
module_init ( skge_init_module  )
MODULE_LICENSE ( "GPL"  )
module_param ( debug  ,
int  ,
 
)
MODULE_PARM_DESC ( debug  ,
"Debug level (0=none,...,16=all)"   
)
MODULE_VERSION ( DRV_VERSION  )

Variable Documentation

u8 id

Definition at line 3454 of file skge.c.

const char* name

Definition at line 3455 of file skge.c.