xref: /minix3/minix/drivers/net/dp8390/ne2000.h (revision 433d6423c39e34ec4b79c950597bb2d236f886be)
1*433d6423SLionel Sambuc /*
2*433d6423SLionel Sambuc ne2000.h
3*433d6423SLionel Sambuc 
4*433d6423SLionel Sambuc Created:	March 15, 1994 by Philip Homburg <philip@f-mnx.phicoh.com>
5*433d6423SLionel Sambuc */
6*433d6423SLionel Sambuc 
7*433d6423SLionel Sambuc #ifndef NE2000_H
8*433d6423SLionel Sambuc #define NE2000_H
9*433d6423SLionel Sambuc 
10*433d6423SLionel Sambuc #define NE_DP8390	0x00
11*433d6423SLionel Sambuc #define NE_DATA		0x10
12*433d6423SLionel Sambuc #define NE_RESET	0x1F
13*433d6423SLionel Sambuc 
14*433d6423SLionel Sambuc #define NE1000_START	0x2000
15*433d6423SLionel Sambuc #define NE1000_SIZE	0x2000
16*433d6423SLionel Sambuc #define NE2000_START	0x4000
17*433d6423SLionel Sambuc #define NE2000_SIZE	0x4000
18*433d6423SLionel Sambuc 
19*433d6423SLionel Sambuc #define inb_ne(dep, reg)	(inb(dep->de_base_port+reg))
20*433d6423SLionel Sambuc #define outb_ne(dep, reg, data)	(outb(dep->de_base_port+reg, data))
21*433d6423SLionel Sambuc #define inw_ne(dep, reg)	(inw(dep->de_base_port+reg))
22*433d6423SLionel Sambuc #define outw_ne(dep, reg, data)	(outw(dep->de_base_port+reg, data))
23*433d6423SLionel Sambuc 
24*433d6423SLionel Sambuc #endif /* NE2000_H */
25*433d6423SLionel Sambuc 
26*433d6423SLionel Sambuc /*
27*433d6423SLionel Sambuc  * $PchId: ne2000.h,v 1.4 2004/08/03 12:03:20 philip Exp $
28*433d6423SLionel Sambuc  */
29