xref: /csrg-svn/sys/vax/if/if_enreg.h (revision 23291)
1*23291Smckusick /*
2*23291Smckusick  * Copyright (c) 1982 Regents of the University of California.
3*23291Smckusick  * All rights reserved.  The Berkeley software License Agreement
4*23291Smckusick  * specifies the terms and conditions for redistribution.
5*23291Smckusick  *
6*23291Smckusick  *	@(#)if_enreg.h	6.2 (Berkeley) 06/08/85
7*23291Smckusick  */
84765Swnj 
94765Swnj /*
104765Swnj  * Xerox experimental ethernet registers.
114765Swnj  *
124765Swnj  * N.B.: status register and device address are read/write,
134765Swnj  * device address is read-only, rest are WRITE ONLY!
144765Swnj  */
154765Swnj struct endevice {
164765Swnj 	short	en_owc;		/* output word count (10 bits) */
174765Swnj 	short	en_oba;		/* output buffer address */
184765Swnj 	short	en_ostat;	/* output control and status */
194765Swnj 	short	en_odelay;	/* output start delay, 25usec units  */
204765Swnj 	short	en_iwc;		/* input word count */
214765Swnj 	short	en_iba;		/* input buffer address */
224765Swnj 	short	en_istat;	/* input csr */
234765Swnj 	short	en_addr;	/* ~device address (low 8 bits) */
244765Swnj };
254765Swnj 
264765Swnj /*
274765Swnj  * Control and status bits.
284765Swnj  */
294765Swnj #define EN_IERROR	0x8000		/* CRC error, buf ovflo or overrun */
304765Swnj #define	EN_OERROR	0x8000		/* collision or output underrun */
314765Swnj #define EN_OPDONE	0x0080		/* previous operation completed */
324765Swnj #define EN_IEN		0x0040		/* enable interrupt when DONE */
334772Swnj #define	EN_PROMISCUOUS	0x0002		/* promiscuous, input any packet */
344765Swnj #define EN_GO		0x0001		/* start op bit */
354765Swnj 
364765Swnj #define	EN_BITS	"\10\20ERR\10OPDONE\7IEN\2PROM\1GO"
374765Swnj 
384765Swnj #define	spl_enet()	spl5()
39