#include <linux/module.h>
#include <linux/string.h>
#include <linux/kernel.h>
#include <linux/errno.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.
|
#define | DRV_NAME "hp-plus" |
|
#define | HP_ID 0x00 /* ID register, always 0x4850. */ |
|
#define | HP_PAGING 0x02 /* Registers visible @ 8-f, see PageName. */ |
|
#define | HPP_OPTION 0x04 /* Bitmapped options, see HP_Option. */ |
|
#define | HPP_OUT_ADDR 0x08 /* I/O output location in Perf_Page. */ |
|
#define | HPP_IN_ADDR 0x0A /* I/O input location in Perf_Page. */ |
|
#define | HP_DATAPORT 0x0c /* I/O data transfer in Perf_Page. */ |
|
#define | NIC_OFFSET 0x10 /* Offset to the 8390 registers. */ |
|
#define | HP_IO_EXTENT 32 |
|
#define | HP_START_PG 0x00 /* First page of TX buffer */ |
|
#define | HP_STOP_PG 0x80 /* Last page +1 of RX ring */ |
|
|
enum | PageName {
Perf_Page = 0,
MAC_Page = 1,
HW_Page = 2,
LAN_Page = 4,
ID_Page = 6
} |
|
enum | HP_Option {
NICReset = 1,
ChipReset = 2,
EnableIRQ = 4,
FakeIntr = 8,
BootROMEnb = 0x10,
IOEnb = 0x20,
MemEnable = 0x40,
ZeroWait = 0x80,
MemDisable = 0x1000
} |
|
#define DRV_NAME "hp-plus" |
#define HP_DATAPORT 0x0c /* I/O data transfer in Perf_Page. */ |
#define HP_ID 0x00 /* ID register, always 0x4850. */ |
#define HP_PAGING 0x02 /* Registers visible @ 8-f, see PageName. */ |
#define HP_START_PG 0x00 /* First page of TX buffer */ |
#define HP_STOP_PG 0x80 /* Last page +1 of RX ring */ |
#define HPP_IN_ADDR 0x0A /* I/O input location in Perf_Page. */ |
#define HPP_OPTION 0x04 /* Bitmapped options, see HP_Option. */ |
#define HPP_OUT_ADDR 0x08 /* I/O output location in Perf_Page. */ |
#define NIC_OFFSET 0x10 /* Offset to the 8390 registers. */ |
- Enumerator:
NICReset |
|
ChipReset |
|
EnableIRQ |
|
FakeIntr |
|
BootROMEnb |
|
IOEnb |
|
MemEnable |
|
ZeroWait |
|
MemDisable |
|
Definition at line 92 of file hp-plus.c.
- Enumerator:
Perf_Page |
|
MAC_Page |
|
HW_Page |
|
LAN_Page |
|
ID_Page |
|
Definition at line 84 of file hp-plus.c.