NE1000 and NE2000 network interface definitions. More...
#include <libarch/ddi.h>
#include "dp8390_port.h"
Defines | |
#define | NE_DP8390 0x00 |
DP8390 register offset. | |
#define | NE_DATA 0x10 |
Data register. | |
#define | NE_RESET 0x1F |
Reset register. | |
#define | NE1000_START 0x2000 |
NE1000 data start. | |
#define | NE1000_SIZE 0x2000 |
NE1000 data size. | |
#define | NE2000_START 0x4000 |
NE2000 data start. | |
#define | NE2000_SIZE 0x4000 |
NE2000 data size. | |
#define | inb_ne(dep, reg) (inb(dep->de_base_port+reg)) |
Reads 1 byte register. | |
#define | outb_ne(dep, reg, data) (outb(dep->de_base_port+reg, data)) |
Writes 1 byte register. | |
#define | inw_ne(dep, reg) (inw(dep->de_base_port+reg)) |
Reads 1 word (2 bytes) register. | |
#define | outw_ne(dep, reg, data) (outw(dep->de_base_port+reg, data)) |
Writes 1 word (2 bytes) register. |
NE1000 and NE2000 network interface definitions.