Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
wd.c File Reference
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/errno.h>
#include <linux/string.h>
#include <linux/init.h>
#include <linux/interrupt.h>
#include <linux/delay.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   "wd"
 
#define WD_START_PG   0x00 /* First page of TX buffer */
 
#define WD03_STOP_PG   0x20 /* Last page +1 of RX ring */
 
#define WD13_STOP_PG   0x40 /* Last page +1 of RX ring */
 
#define WD_CMDREG   0 /* Offset to ASIC command register. */
 
#define WD_RESET   0x80 /* Board reset, in WD_CMDREG. */
 
#define WD_MEMENB   0x40 /* Enable the shared memory. */
 
#define WD_CMDREG5   5 /* Offset to 16-bit-only ASIC register 5. */
 
#define ISA16   0x80 /* Enable 16 bit access from the ISA bus. */
 
#define NIC16   0x40 /* Enable 16 bit access from the 8390. */
 
#define WD_NIC_OFFSET   16 /* Offset to the 8390 from the base_addr. */
 
#define WD_IO_EXTENT   32
 

Functions

struct net_device *__init wd_probe (int unit)
 

Macro Definition Documentation

#define DRV_NAME   "wd"

Definition at line 45 of file wd.c.

#define ISA16   0x80 /* Enable 16 bit access from the ISA bus. */

Definition at line 72 of file wd.c.

#define NIC16   0x40 /* Enable 16 bit access from the 8390. */

Definition at line 73 of file wd.c.

#define WD03_STOP_PG   0x20 /* Last page +1 of RX ring */

Definition at line 65 of file wd.c.

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

Definition at line 66 of file wd.c.

#define WD_CMDREG   0 /* Offset to ASIC command register. */

Definition at line 68 of file wd.c.

#define WD_CMDREG5   5 /* Offset to 16-bit-only ASIC register 5. */

Definition at line 71 of file wd.c.

#define WD_IO_EXTENT   32

Definition at line 75 of file wd.c.

#define WD_MEMENB   0x40 /* Enable the shared memory. */

Definition at line 70 of file wd.c.

#define WD_NIC_OFFSET   16 /* Offset to the 8390 from the base_addr. */

Definition at line 74 of file wd.c.

#define WD_RESET   0x80 /* Board reset, in WD_CMDREG. */

Definition at line 69 of file wd.c.

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

Definition at line 64 of file wd.c.

Function Documentation

struct net_device* __init wd_probe ( int  unit)
read

Definition at line 128 of file wd.c.