diff options
author | mjacob <mjacob@FreeBSD.org> | 2001-09-04 19:42:13 +0000 |
---|---|---|
committer | mjacob <mjacob@FreeBSD.org> | 2001-09-04 19:42:13 +0000 |
commit | 252e9ce27521909e86446ce38fe8a686312979c0 (patch) | |
tree | 55699c44c6c589a1bf2a673e3d8c1cb6945bca57 /sys | |
parent | acc6b9f38be086704871c430e9de967788967249 (diff) | |
download | FreeBSD-src-252e9ce27521909e86446ce38fe8a686312979c0.zip FreeBSD-src-252e9ce27521909e86446ce38fe8a686312979c0.tar.gz |
Fix SET_IID_VAL/SET_BUS_VAL macros to usable.
MFC after: 4 weeks
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/isp/isp_target.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/isp/isp_target.h b/sys/dev/isp/isp_target.h index df55e1b..bc6627a 100644 --- a/sys/dev/isp/isp_target.h +++ b/sys/dev/isp/isp_target.h @@ -333,8 +333,8 @@ typedef struct { */ #define GET_IID_VAL(x) (x & 0x3f) #define GET_BUS_VAL(x) ((x >> 7) & 0x1) -#define SET_IID_VAL(y, x) (y | (x & 0x3f)) -#define SET_BUS_VAL(y, x) (y | ((x & 0x1) << 7)) +#define SET_IID_VAL(y, x) y = ((y & ~0x3f) | (x & 0x3f)) +#define SET_BUS_VAL(y, x) y = ((y & 0x3f) | ((x & 0x1) << 7)) /* * ct_flags values |