summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authormjacob <mjacob@FreeBSD.org>2001-09-04 19:42:13 +0000
committermjacob <mjacob@FreeBSD.org>2001-09-04 19:42:13 +0000
commit252e9ce27521909e86446ce38fe8a686312979c0 (patch)
tree55699c44c6c589a1bf2a673e3d8c1cb6945bca57 /sys
parentacc6b9f38be086704871c430e9de967788967249 (diff)
downloadFreeBSD-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.h4
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
OpenPOWER on IntegriCloud