diff options
author | Brad Smith <brad@cvs.openbsd.org> | 2005-11-07 00:03:17 +0000 |
---|---|---|
committer | Brad Smith <brad@cvs.openbsd.org> | 2005-11-07 00:03:17 +0000 |
commit | 74b4801bf823186fbd97fc03a6f5de0c8fc926ed (patch) | |
tree | a89005ad9a873f361172b6c6d818a6ce8fe03c32 /sys/dev/ic | |
parent | b97c2d2d10398458f3e24d19a58b929bbba73862 (diff) |
add bus_dma support.
From NetBSD
tested on i386/alpha.
ok martin@ krw@
Diffstat (limited to 'sys/dev/ic')
-rw-r--r-- | sys/dev/ic/dc21040reg.h | 20 |
1 files changed, 4 insertions, 16 deletions
diff --git a/sys/dev/ic/dc21040reg.h b/sys/dev/ic/dc21040reg.h index 8680a475514..3e08c5614a2 100644 --- a/sys/dev/ic/dc21040reg.h +++ b/sys/dev/ic/dc21040reg.h @@ -1,4 +1,4 @@ -/* $OpenBSD: dc21040reg.h,v 1.14 2005/09/25 19:24:13 brad Exp $ */ +/* $OpenBSD: dc21040reg.h,v 1.15 2005/11/07 00:03:09 brad Exp $ */ /* $NetBSD: dc21040reg.h,v 1.11 1997/06/08 18:44:02 thorpej Exp $ */ /*- @@ -44,25 +44,13 @@ #define TULIP_BITFIELD4(a, b, c, d) a, b, c, d #endif -typedef union { - struct { - u_int32_t TULIP_BITFIELD3(bd_length1 : 11, - bd_length2 : 11, - bd_flag : 10); - }s; - u_int32_t f; -} tulip_desc_bitfield_t; -#define bd_length1 s.bd_length1 -#define bd_length2 s.bd_length2 -#define bd_flag s.bd_flag typedef struct { u_int32_t d_status; - tulip_desc_bitfield_t u; + u_int32_t TULIP_BITFIELD3(d_length1 : 11, + d_length2 : 11, + 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) */ |