diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2009-08-16 17:24:05 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2009-08-16 17:24:05 +0000 |
commit | 91e0f2ef74f3a9822a83887ad8a039454dec31a1 (patch) | |
tree | bf1dc2b88dc72ccc8bdaeba4717f1ee6bc73b0a2 /sys/dev/ic/atwvar.h | |
parent | 09fcd140b36241ae5cb7d0c0b5b36869be6e1547 (diff) |
start getting rid of some of these horrific bit macros, remove
usage of BITS(). There is a binary change due to the way these
macros are further used in the MASK_AND_RSHIFT specifically
for ATW_SR_RFTYPE_MASK and ATW_SR_BBPTYPE_MASK.
Diffstat (limited to 'sys/dev/ic/atwvar.h')
-rw-r--r-- | sys/dev/ic/atwvar.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/ic/atwvar.h b/sys/dev/ic/atwvar.h index a8be9ed36a7..2b3b3cd29e7 100644 --- a/sys/dev/ic/atwvar.h +++ b/sys/dev/ic/atwvar.h @@ -1,4 +1,4 @@ -/* $OpenBSD: atwvar.h,v 1.18 2009/08/10 20:29:54 deraadt Exp $ */ +/* $OpenBSD: atwvar.h,v 1.19 2009/08/16 17:24:04 jsg Exp $ */ /* $NetBSD: atwvar.h,v 1.13 2004/07/23 07:07:55 dyoung Exp $ */ /* @@ -338,8 +338,8 @@ struct atw_frame { #define ATW_HDRCTL_UNKNOWN1 BIT(15) /* MAC adds FCS? */ #define ATW_HDRCTL_UNKNOWN2 BIT(8) -#define ATW_FRAGTHR_FRAGTHR_MASK BITS(0, 11) -#define ATW_FRAGNUM_FRAGNUM_MASK BITS(4, 7) +#define ATW_FRAGTHR_FRAGTHR_MASK 0x0fff +#define ATW_FRAGNUM_FRAGNUM_MASK 0x00f0 /* Values for sc_flags. */ #define ATWF_MRL 0x00000010 /* memory read line okay */ |