diff options
author | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1998-10-04 23:09:57 +0000 |
---|---|---|
committer | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1998-10-04 23:09:57 +0000 |
commit | ccb7bd8780bea3db8367d47d81336bdb5be46f92 (patch) | |
tree | 2476e8a76d0afb2d89500a47a7ca0fa158b00541 /sys | |
parent | 5fe4d63a6f364c7d8baf04e010ad7222265de245 (diff) |
the ed -> ec,we,ne conversion missed the fact that our backward
compatibility needs to look a bit different.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/ic/dp8390reg.h | 21 |
1 files changed, 6 insertions, 15 deletions
diff --git a/sys/dev/ic/dp8390reg.h b/sys/dev/ic/dp8390reg.h index 5de88e44770..d024396ad53 100644 --- a/sys/dev/ic/dp8390reg.h +++ b/sys/dev/ic/dp8390reg.h @@ -1,4 +1,4 @@ -/* $OpenBSD: dp8390reg.h,v 1.5 1998/09/22 06:41:13 fgsch Exp $ */ +/* $OpenBSD: dp8390reg.h,v 1.6 1998/10/04 23:09:56 niklas Exp $ */ /* $NetBSD: dp8390reg.h,v 1.3 1997/04/29 04:32:08 scottr Exp $ */ /* @@ -536,20 +536,11 @@ struct dp8390_ring { u_int16_t count; /* bytes in packet (length + 4) */ }; -/* - * XXX For compatibility only! This needs to die when all drivers have - * been converted to be front ends to the MI driver. - */ -struct ed_ring { -#if BYTE_ORDER == BIG_ENDIAN - u_char next_packet; /* pointer to next packet */ - u_char rsr; /* receiver status */ -#else - u_char rsr; /* receiver status */ - u_char next_packet; /* pointer to next packet */ -#endif - u_short count; /* bytes in packet (length + 4) */ -}; +/* Some drivers prefer to use byte-constants to get at this structure. */ +#define ED_RING_RSR 0 /* receiver status */ +#define ED_RING_NEXT_PACKET 1 /* pointer to next packet */ +#define ED_RING_COUNT 2 /* bytes in packet (length + 4) */ +#define ED_RING_HDRSZ 4 /* Header size */ /* * Common constants |