Define struct ae_ring which is necessary because BYTE_ORDER == BIG_ENDIAN,
but the card is in x86 byte order mode because NuBUS does the swap "for us" on 16- and 32-bit transfers. We should probably figure some way to use the std struct ed_ring if/when all the 8390 drivers are all fully merged.
This commit is contained in:
parent
2b1a13ab2f
commit
bf68945da5
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: if_aereg.h,v 1.7 1995/04/13 03:58:30 briggs Exp $ */
|
||||
/* $NetBSD: if_aereg.h,v 1.8 1995/04/19 04:46:06 briggs Exp $ */
|
||||
|
||||
/*
|
||||
* National Semiconductor DS8390 NIC register definitions.
|
||||
|
@ -10,6 +10,19 @@
|
|||
* the author assume any responsibility for damages incurred with its use.
|
||||
*/
|
||||
|
||||
/*
|
||||
* The following is a structure that we should be pulling from
|
||||
* dev/ic/dp8390.h, but since we have the card in x86 mode and
|
||||
* the std. include file assumes that big-endian processors will
|
||||
* have the card in m68k mode, we're hosed for the moment.
|
||||
* Fix this. -- XXX
|
||||
*/
|
||||
struct ae_ring {
|
||||
u_char rsr; /* receiver status */
|
||||
u_char next_packet; /* pointer to next packet */
|
||||
u_short count; /* bytes in packet (length + 4) */
|
||||
};
|
||||
|
||||
/*
|
||||
* Vendor types
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue