diff options
author | Per Fogelstrom <pefo@cvs.openbsd.org> | 1998-03-25 12:18:43 +0000 |
---|---|---|
committer | Per Fogelstrom <pefo@cvs.openbsd.org> | 1998-03-25 12:18:43 +0000 |
commit | 21256eb35abbccda31174d480df26a2740b5e93f (patch) | |
tree | 16226b4dc537ea2f680f497cd611e3ff7f276ba2 /sys/dev/ic | |
parent | 0486b2528b0a232cb785b721569b5aaa4a54f29b (diff) |
ppc needs a pci chip bug workaround
Diffstat (limited to 'sys/dev/ic')
-rw-r--r-- | sys/dev/ic/dc21040reg.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/sys/dev/ic/dc21040reg.h b/sys/dev/ic/dc21040reg.h index e422c2e748a..8fe4073f9d0 100644 --- a/sys/dev/ic/dc21040reg.h +++ b/sys/dev/ic/dc21040reg.h @@ -1,4 +1,4 @@ -/* $OpenBSD: dc21040reg.h,v 1.6 1997/11/13 21:12:13 rees Exp $ */ +/* $OpenBSD: dc21040reg.h,v 1.7 1998/03/25 12:18:42 pefo Exp $ */ /* $NetBSD: dc21040reg.h,v 1.11 1997/06/08 18:44:02 thorpej Exp $ */ /*- @@ -30,6 +30,10 @@ #if !defined(_DC21040_H) #define _DC21040_H +/* XXX The following only works with 2114x chips which have + * the descriptor swap bit. 21040 chips need to have the + * descriptor in LE order regardles............. + */ #if defined(BYTE_ORDER) && BYTE_ORDER == BIG_ENDIAN #define TULIP_BITFIELD2(a, b) b, a #define TULIP_BITFIELD3(a, b, c) c, b, a @@ -47,6 +51,9 @@ typedef struct { d_flag : 10); u_int32_t d_addr1; u_int32_t d_addr2; +#ifdef PPC_MPC106_BUG + u_int32_t fill[4]; /* Make descr. 32 bytes avoiding MPC106 bug! */ +#endif } tulip_desc_t; #define TULIP_DSTS_OWNER 0x80000000 /* Owner (1 = 21040) */ |