Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
ne-h8300.c File Reference
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/errno.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 <asm/io.h>
#include <asm/irq.h>
#include "8390.h"
#include "lib8390.c"

Go to the source code of this file.

Macros

#define EI_SHIFT(x)   (ei_local->reg_offset[x])
 
#define DRV_NAME   "ne-h8300"
 
#define NE_BASE   (dev->base_addr)
 
#define NE_CMD   0x00
 
#define NE_DATAPORT   (ei_status.word16?0x20:0x10) /* NatSemi-defined port window offset. */
 
#define NE_RESET   (ei_status.word16?0x3f:0x1f) /* Issue a read to reset, a write to clear. */
 
#define NE_IO_EXTENT   (ei_status.word16?0x40:0x20)
 
#define NESM_START_PG   0x40 /* First page of TX buffer */
 
#define NESM_STOP_PG   0x80 /* Last page +1 of RX ring */
 

Functions

struct net_device *__init ne_probe (int unit)
 

Macro Definition Documentation

#define DRV_NAME   "ne-h8300"

Definition at line 39 of file ne-h8300.c.

#define EI_SHIFT (   x)    (ei_local->reg_offset[x])

Definition at line 35 of file ne-h8300.c.

#define NE_BASE   (dev->base_addr)

Definition at line 61 of file ne-h8300.c.

#define NE_CMD   0x00

Definition at line 62 of file ne-h8300.c.

#define NE_DATAPORT   (ei_status.word16?0x20:0x10) /* NatSemi-defined port window offset. */

Definition at line 63 of file ne-h8300.c.

#define NE_IO_EXTENT   (ei_status.word16?0x40:0x20)

Definition at line 65 of file ne-h8300.c.

#define NE_RESET   (ei_status.word16?0x3f:0x1f) /* Issue a read to reset, a write to clear. */

Definition at line 64 of file ne-h8300.c.

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

Definition at line 67 of file ne-h8300.c.

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

Definition at line 68 of file ne-h8300.c.

Function Documentation

struct net_device* __init ne_probe ( int  unit)
read

Definition at line 167 of file ne-h8300.c.