ne2000.h File Reference

NE1000 and NE2000 network interface definitions. More...

#include <libarch/ddi.h>
#include "dp8390_port.h"
Include dependency graph for ne2000.h:
This graph shows which files directly or indirectly include this file:

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.

Detailed Description

NE1000 and NE2000 network interface definitions.


Generated on Thu Mar 11 20:46:10 2010 for Networking and TCP/IP stack for HelenOS system by  doxygen 1.6.1