From ccb7bd8780bea3db8367d47d81336bdb5be46f92 Mon Sep 17 00:00:00 2001 From: Niklas Hallqvist Date: Sun, 4 Oct 1998 23:09:57 +0000 Subject: the ed -> ec,we,ne conversion missed the fact that our backward compatibility needs to look a bit different. --- sys/dev/ic/dp8390reg.h | 21 ++++++--------------- 1 file changed, 6 insertions(+), 15 deletions(-) (limited to 'sys') 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 -- cgit v1.2.3