Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
ne.c File Reference
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/errno.h>
#include <linux/isapnp.h>
#include <linux/init.h>
#include <linux/interrupt.h>
#include <linux/delay.h>
#include <linux/netdevice.h>
#include <linux/etherdevice.h>
#include <linux/jiffies.h>
#include <linux/platform_device.h>
#include <asm/io.h>
#include "8390.h"

Go to the source code of this file.

Macros

#define DRV_NAME   "ne"
 
#define SUPPORT_NE_BAD_CLONES
 
#define BAD   0xbad
 
#define MAX_NE_CARDS   4 /* Max number of NE cards per module */
 
#define NE_BASE   (dev->base_addr)
 
#define NE_CMD   0x00
 
#define NE_DATAPORT   0x10 /* NatSemi-defined port window offset. */
 
#define NE_RESET   0x1f /* Issue a read to reset, a write to clear. */
 
#define NE_IO_EXTENT   0x20
 
#define NE1SM_START_PG   0x20 /* First page of TX buffer */
 
#define NE1SM_STOP_PG   0x40 /* Last page +1 of RX ring */
 
#define NESM_START_PG   0x40 /* First page of TX buffer */
 
#define NESM_STOP_PG   0x80 /* Last page +1 of RX ring */
 
#define DCR_VAL   0x49
 
#define ne_drv_suspend   NULL
 
#define ne_drv_resume   NULL
 

Functions

 MODULE_DEVICE_TABLE (isapnp, isapnp_clone_list)
 
 module_init (ne_init)
 
struct net_device *__init ne_probe (int unit)
 
 module_exit (ne_exit)
 

Macro Definition Documentation

#define BAD   0xbad

Definition at line 67 of file ne.c.

#define DCR_VAL   0x49

Definition at line 170 of file ne.c.

#define DRV_NAME   "ne"

Definition at line 60 of file ne.c.

#define MAX_NE_CARDS   4 /* Max number of NE cards per module */

Definition at line 69 of file ne.c.

#define NE1SM_START_PG   0x20 /* First page of TX buffer */

Definition at line 159 of file ne.c.

#define NE1SM_STOP_PG   0x40 /* Last page +1 of RX ring */

Definition at line 160 of file ne.c.

#define NE_BASE   (dev->base_addr)

Definition at line 153 of file ne.c.

#define NE_CMD   0x00

Definition at line 154 of file ne.c.

#define NE_DATAPORT   0x10 /* NatSemi-defined port window offset. */

Definition at line 155 of file ne.c.

#define ne_drv_resume   NULL

Definition at line 903 of file ne.c.

#define ne_drv_suspend   NULL

Definition at line 902 of file ne.c.

#define NE_IO_EXTENT   0x20

Definition at line 157 of file ne.c.

#define NE_RESET   0x1f /* Issue a read to reset, a write to clear. */

Definition at line 156 of file ne.c.

#define NESM_START_PG   0x40 /* First page of TX buffer */

Definition at line 161 of file ne.c.

#define NESM_STOP_PG   0x80 /* Last page +1 of RX ring */

Definition at line 162 of file ne.c.

#define SUPPORT_NE_BAD_CLONES

Definition at line 65 of file ne.c.

Function Documentation

MODULE_DEVICE_TABLE ( isapnp  ,
isapnp_clone_list   
)
module_exit ( ne_exit  )
module_init ( ne_init  )
struct net_device* __init ne_probe ( int  unit)
read

Definition at line 961 of file ne.c.

Variable Documentation

const char * name16

Definition at line 128 of file ne.c.

const char* name8

Definition at line 128 of file ne.c.

unsigned char SAprefix[4]

Definition at line 128 of file ne.c.