xref: /minix3/minix/drivers/net/dpeth/ne.h (revision 433d6423c39e34ec4b79c950597bb2d236f886be)
1*433d6423SLionel Sambuc /*
2*433d6423SLionel Sambuc **  File:	ne.h
3*433d6423SLionel Sambuc **
4*433d6423SLionel Sambuc **  Created:	March 15, 1994 by Philip Homburg <philip@cs.vu.nl>
5*433d6423SLionel Sambuc **  $PchId: ne2000.h,v 1.2 1995/12/22 08:42:31 philip Exp $
6*433d6423SLionel Sambuc **
7*433d6423SLionel Sambuc **  $Log$
8*433d6423SLionel Sambuc **  Revision 1.1  2005/06/29 10:16:46  beng
9*433d6423SLionel Sambuc **  Import of dpeth 3c501/3c509b/.. ethernet driver by
10*433d6423SLionel Sambuc **  Giovanni Falzoni <fgalzoni@inwind.it>.
11*433d6423SLionel Sambuc **
12*433d6423SLionel Sambuc **  Revision 2.0  2005/06/26 16:16:46  lsodgf0
13*433d6423SLionel Sambuc **  Initial revision for Minix 3.0.6
14*433d6423SLionel Sambuc */
15*433d6423SLionel Sambuc 
16*433d6423SLionel Sambuc #ifndef NE2000_H
17*433d6423SLionel Sambuc #define NE2000_H
18*433d6423SLionel Sambuc 
19*433d6423SLionel Sambuc #define NE_DP8390	0x00
20*433d6423SLionel Sambuc #define NE_DATA		0x10
21*433d6423SLionel Sambuc #define NE_RESET	0x1F
22*433d6423SLionel Sambuc 
23*433d6423SLionel Sambuc #define NE1000_START	0x2000
24*433d6423SLionel Sambuc #define NE1000_SIZE	0x2000
25*433d6423SLionel Sambuc #define NE2000_START	0x4000
26*433d6423SLionel Sambuc #define NE2000_SIZE	0x4000
27*433d6423SLionel Sambuc 
28*433d6423SLionel Sambuc #define inb_ne(dep, reg) (inb(dep->de_base_port+reg))
29*433d6423SLionel Sambuc #define outb_ne(dep, reg, data) (outb(dep->de_base_port+reg, data))
30*433d6423SLionel Sambuc #define inw_ne(dep, reg) (inw(dep->de_base_port+reg))
31*433d6423SLionel Sambuc #define outw_ne(dep, reg, data) (outw(dep->de_base_port+reg, data))
32*433d6423SLionel Sambuc 
33*433d6423SLionel Sambuc #endif				/* NE2000_H */
34*433d6423SLionel Sambuc 
35*433d6423SLionel Sambuc /** ne.h **/
36