Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
spider_net.c File Reference
#include <linux/compiler.h>
#include <linux/crc32.h>
#include <linux/delay.h>
#include <linux/etherdevice.h>
#include <linux/ethtool.h>
#include <linux/firmware.h>
#include <linux/if_vlan.h>
#include <linux/in.h>
#include <linux/init.h>
#include <linux/interrupt.h>
#include <linux/gfp.h>
#include <linux/ioport.h>
#include <linux/ip.h>
#include <linux/kernel.h>
#include <linux/mii.h>
#include <linux/module.h>
#include <linux/netdevice.h>
#include <linux/device.h>
#include <linux/pci.h>
#include <linux/skbuff.h>
#include <linux/tcp.h>
#include <linux/types.h>
#include <linux/vmalloc.h>
#include <linux/wait.h>
#include <linux/workqueue.h>
#include <linux/bitops.h>
#include <asm/pci-bridge.h>
#include <net/checksum.h>
#include "spider_net.h"

Go to the source code of this file.

Macros

#define SPIDER_MISALIGN   2
 

Functions

 MODULE_AUTHOR ("Utz Bacher <[email protected]> and Jens Osterkamp ""<[email protected]>")
 
 MODULE_DESCRIPTION ("Spider Southbridge Gigabit Ethernet driver")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_VERSION (VERSION)
 
 MODULE_FIRMWARE (SPIDER_NET_FIRMWARE_NAME)
 
 module_param (rx_descriptors, int, 0444)
 
 module_param (tx_descriptors, int, 0444)
 
 MODULE_PARM_DESC (rx_descriptors,"number of descriptors used ""in rx chains")
 
 MODULE_PARM_DESC (tx_descriptors,"number of descriptors used ""in tx chain")
 
 MODULE_DEVICE_TABLE (pci, spider_net_pci_tbl)
 
int spider_net_open (struct net_device *netdev)
 
int spider_net_stop (struct net_device *netdev)
 
 module_init (spider_net_init)
 
 module_exit (spider_net_cleanup)
 

Variables

char spider_net_driver_name [] = "spidernet"
 

Macro Definition Documentation

#define SPIDER_MISALIGN   2

Function Documentation

MODULE_AUTHOR ( "Utz Bacher <[email protected]> and Jens Osterkamp ""<[email protected]>"  )
MODULE_DESCRIPTION ( "Spider Southbridge Gigabit Ethernet driver )
MODULE_DEVICE_TABLE ( pci  ,
spider_net_pci_tbl   
)
module_exit ( spider_net_cleanup  )
MODULE_FIRMWARE ( SPIDER_NET_FIRMWARE_NAME  )
module_init ( spider_net_init  )
MODULE_LICENSE ( "GPL"  )
module_param ( rx_descriptors  ,
int  ,
0444   
)
module_param ( tx_descriptors  ,
int  ,
0444   
)
MODULE_PARM_DESC ( rx_descriptors  ,
"number of descriptors used ""in rx chains"   
)
MODULE_PARM_DESC ( tx_descriptors  ,
"number of descriptors used ""in tx chain  
)
MODULE_VERSION ( VERSION  )
int spider_net_open ( struct net_device netdev)

spider_net_open - called upon ifonfig up : interface device structure

returns 0 on success, <0 on failure

spider_net_open allocates all the descriptors and memory needed for operation, sets up multicast list and enables interrupts

Definition at line 1968 of file spider_net.c.

int spider_net_stop ( struct net_device netdev)

spider_net_stop - called upon ifconfig down : interface device structure

always returns 0

Definition at line 2176 of file spider_net.c.

Variable Documentation

char spider_net_driver_name[] = "spidernet"

Definition at line 74 of file spider_net.c.