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

Go to the source code of this file.

Macros

#define DRV_NAME   "ne3210"
 
#define NE3210_START_PG   0x00 /* First page of TX buffer */
 
#define NE3210_STOP_PG   0x80 /* Last page +1 of RX ring */
 
#define NE3210_IO_EXTENT   0x20
 
#define NE3210_SA_PROM   0x16 /* Start of e'net addr. */
 
#define NE3210_RESET_PORT   0xc84
 
#define NE3210_NIC_OFFSET   0x00 /* Hello, the 8390 is *here* */
 
#define NE3210_ADDR0   0x00 /* 3 byte vendor prefix */
 
#define NE3210_ADDR1   0x00
 
#define NE3210_ADDR2   0x1b
 
#define NE3210_CFG1   0xc84 /* NB: 0xc84 is also "reset" port. */
 
#define NE3210_CFG2   0xc90
 
#define NE3210_CFG_EXTENT   (NE3210_CFG2 - NE3210_CFG1 + 1)
 
#define NE3210_D_PROBE   0x01
 
#define NE3210_D_RX_PKT   0x02
 
#define NE3210_D_TX_PKT   0x04
 
#define NE3210_D_IRQ   0x08
 
#define NE3210_DEBUG   0x0
 

Functions

 MODULE_DEVICE_TABLE (eisa, ne3210_ids)
 
 MODULE_DESCRIPTION ("NE3210 EISA Ethernet driver")
 
 MODULE_LICENSE ("GPL")
 
 module_init (ne3210_init)
 
 module_exit (ne3210_cleanup)
 

Macro Definition Documentation

#define DRV_NAME   "ne3210"

Definition at line 45 of file ne3210.c.

#define NE3210_ADDR0   0x00 /* 3 byte vendor prefix */

Definition at line 61 of file ne3210.c.

#define NE3210_ADDR1   0x00

Definition at line 62 of file ne3210.c.

#define NE3210_ADDR2   0x1b

Definition at line 63 of file ne3210.c.

#define NE3210_CFG1   0xc84 /* NB: 0xc84 is also "reset" port. */

Definition at line 65 of file ne3210.c.

#define NE3210_CFG2   0xc90

Definition at line 66 of file ne3210.c.

#define NE3210_CFG_EXTENT   (NE3210_CFG2 - NE3210_CFG1 + 1)

Definition at line 67 of file ne3210.c.

#define NE3210_D_IRQ   0x08

Definition at line 78 of file ne3210.c.

#define NE3210_D_PROBE   0x01

Definition at line 75 of file ne3210.c.

#define NE3210_D_RX_PKT   0x02

Definition at line 76 of file ne3210.c.

#define NE3210_D_TX_PKT   0x04

Definition at line 77 of file ne3210.c.

#define NE3210_DEBUG   0x0

Definition at line 80 of file ne3210.c.

#define NE3210_IO_EXTENT   0x20

Definition at line 56 of file ne3210.c.

#define NE3210_NIC_OFFSET   0x00 /* Hello, the 8390 is *here* */

Definition at line 59 of file ne3210.c.

#define NE3210_RESET_PORT   0xc84

Definition at line 58 of file ne3210.c.

#define NE3210_SA_PROM   0x16 /* Start of e'net addr. */

Definition at line 57 of file ne3210.c.

#define NE3210_START_PG   0x00 /* First page of TX buffer */

Definition at line 53 of file ne3210.c.

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

Definition at line 54 of file ne3210.c.

Function Documentation

MODULE_DESCRIPTION ( "NE3210 EISA Ethernet driver )
MODULE_DEVICE_TABLE ( eisa  ,
ne3210_ids   
)
module_exit ( ne3210_cleanup  )
module_init ( ne3210_init  )
MODULE_LICENSE ( "GPL"  )