diff options
author | 1998-10-04 23:09:56 +0000 | |
---|---|---|
committer | 1998-10-04 23:09:56 +0000 | |
commit | 3b791a91db6a7ec3e15618db61be01e732552133 (patch) | |
tree | affc48e600a0b24f9ce6d5ab6055dded62f2b253 | |
parent | typo (diff) | |
download | wireguard-openbsd-3b791a91db6a7ec3e15618db61be01e732552133.tar.xz wireguard-openbsd-3b791a91db6a7ec3e15618db61be01e732552133.zip |
the ed -> ec,we,ne conversion missed the fact that our backward
compatibility needs to look a bit different.
-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 |