Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
lne390.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 <asm/io.h>
#include "8390.h"

Go to the source code of this file.

Macros

#define DRV_NAME   "lne390"
 
#define LNE390_START_PG   0x00 /* First page of TX buffer */
 
#define LNE390_STOP_PG   0x80 /* Last page +1 of RX ring */
 
#define LNE390_ID_PORT   0xc80 /* Same for all EISA cards */
 
#define LNE390_IO_EXTENT   0x20
 
#define LNE390_SA_PROM   0x16 /* Start of e'net addr. */
 
#define LNE390_RESET_PORT   0xc84 /* From the pkt driver source */
 
#define LNE390_NIC_OFFSET   0x00 /* Hello, the 8390 is *here* */
 
#define LNE390_ADDR0   0x00 /* 3 byte vendor prefix */
 
#define LNE390_ADDR1   0x80
 
#define LNE390_ADDR2   0xe5
 
#define LNE390_ID0   0x10009835 /* 0x3598 = 01101 01100 11000 = mlx */
 
#define LNE390_ID1   0x11009835 /* above is the 390A, this is 390B */
 
#define LNE390_CFG1   0xc84 /* NB: 0xc84 is also "reset" port. */
 
#define LNE390_CFG2   0xc90
 
#define LNE390_D_PROBE   0x01
 
#define LNE390_D_RX_PKT   0x02
 
#define LNE390_D_TX_PKT   0x04
 
#define LNE390_D_IRQ   0x08
 
#define LNE390_DEBUG   0
 

Functions

struct net_device *__init lne390_probe (int unit)
 

Macro Definition Documentation

#define DRV_NAME   "lne390"

Definition at line 52 of file lne390.c.

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

Definition at line 71 of file lne390.c.

#define LNE390_ADDR1   0x80

Definition at line 72 of file lne390.c.

#define LNE390_ADDR2   0xe5

Definition at line 73 of file lne390.c.

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

Definition at line 78 of file lne390.c.

#define LNE390_CFG2   0xc90

Definition at line 79 of file lne390.c.

#define LNE390_D_IRQ   0x08

Definition at line 90 of file lne390.c.

#define LNE390_D_PROBE   0x01

Definition at line 87 of file lne390.c.

#define LNE390_D_RX_PKT   0x02

Definition at line 88 of file lne390.c.

#define LNE390_D_TX_PKT   0x04

Definition at line 89 of file lne390.c.

#define LNE390_DEBUG   0

Definition at line 92 of file lne390.c.

#define LNE390_ID0   0x10009835 /* 0x3598 = 01101 01100 11000 = mlx */

Definition at line 75 of file lne390.c.

#define LNE390_ID1   0x11009835 /* above is the 390A, this is 390B */

Definition at line 76 of file lne390.c.

#define LNE390_ID_PORT   0xc80 /* Same for all EISA cards */

Definition at line 65 of file lne390.c.

#define LNE390_IO_EXTENT   0x20

Definition at line 66 of file lne390.c.

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

Definition at line 69 of file lne390.c.

#define LNE390_RESET_PORT   0xc84 /* From the pkt driver source */

Definition at line 68 of file lne390.c.

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

Definition at line 67 of file lne390.c.

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

Definition at line 62 of file lne390.c.

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

Definition at line 63 of file lne390.c.

Function Documentation

struct net_device* __init lne390_probe ( int  unit)
read

Definition at line 144 of file lne390.c.