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

Go to the source code of this file.

Macros

#define DRV_NAME   "e2100"
 
#define E21_NIC_OFFSET   0 /* Offset to the 8390 NIC. */
 
#define E21_ASIC   0x10
 
#define E21_MEM_ENABLE   0x10
 
#define E21_MEM_ON   0x05 /* Enable memory in 16 bit mode. */
 
#define E21_MEM_ON_8   0x07 /* Enable memory in 8 bit mode. */
 
#define E21_MEM_BASE   0x11
 
#define E21_IRQ_LOW   0x12 /* The low three bits of the IRQ number. */
 
#define E21_IRQ_HIGH   0x14 /* The high IRQ bit and media select ... */
 
#define E21_MEDIA   0x14 /* (alias). */
 
#define E21_ALT_IFPORT   0x02 /* Set to use the other (BNC,AUI) port. */
 
#define E21_BIG_MEM   0x04 /* Use a bigger (64K) buffer (we don't) */
 
#define E21_SAPROM   0x10 /* Offset to station address data. */
 
#define E21_IO_EXTENT   0x20
 
#define E21_RX_START_PG   0x00 /* First page of RX buffer */
 
#define E21_RX_STOP_PG   0x30 /* Last page +1 of RX ring */
 
#define E21_BIG_RX_STOP_PG   0xF0 /* Last page +1 of RX ring */
 
#define E21_TX_START_PG   E21_RX_STOP_PG /* First page of TX buffer */
 

Functions

struct net_device *__init e2100_probe (int unit)
 

Macro Definition Documentation

#define DRV_NAME   "e2100"

Definition at line 54 of file e2100.c.

#define E21_ALT_IFPORT   0x02 /* Set to use the other (BNC,AUI) port. */

Definition at line 70 of file e2100.c.

#define E21_ASIC   0x10

Definition at line 62 of file e2100.c.

#define E21_BIG_MEM   0x04 /* Use a bigger (64K) buffer (we don't) */

Definition at line 71 of file e2100.c.

#define E21_BIG_RX_STOP_PG   0xF0 /* Last page +1 of RX ring */

Definition at line 97 of file e2100.c.

#define E21_IO_EXTENT   0x20

Definition at line 73 of file e2100.c.

#define E21_IRQ_HIGH   0x14 /* The high IRQ bit and media select ... */

Definition at line 68 of file e2100.c.

#define E21_IRQ_LOW   0x12 /* The low three bits of the IRQ number. */

Definition at line 67 of file e2100.c.

#define E21_MEDIA   0x14 /* (alias). */

Definition at line 69 of file e2100.c.

#define E21_MEM_BASE   0x11

Definition at line 66 of file e2100.c.

#define E21_MEM_ENABLE   0x10

Definition at line 63 of file e2100.c.

#define E21_MEM_ON   0x05 /* Enable memory in 16 bit mode. */

Definition at line 64 of file e2100.c.

#define E21_MEM_ON_8   0x07 /* Enable memory in 8 bit mode. */

Definition at line 65 of file e2100.c.

#define E21_NIC_OFFSET   0 /* Offset to the 8390 NIC. */

Definition at line 61 of file e2100.c.

#define E21_RX_START_PG   0x00 /* First page of RX buffer */

Definition at line 95 of file e2100.c.

#define E21_RX_STOP_PG   0x30 /* Last page +1 of RX ring */

Definition at line 96 of file e2100.c.

#define E21_SAPROM   0x10 /* Offset to station address data. */

Definition at line 72 of file e2100.c.

#define E21_TX_START_PG   E21_RX_STOP_PG /* First page of TX buffer */

Definition at line 98 of file e2100.c.

Function Documentation

struct net_device* __init e2100_probe ( int  unit)
read

Definition at line 142 of file e2100.c.