summaryrefslogtreecommitdiffstats
path: root/sys/dev/twe
diff options
context:
space:
mode:
authoralfred <alfred@FreeBSD.org>2002-11-09 12:55:07 +0000
committeralfred <alfred@FreeBSD.org>2002-11-09 12:55:07 +0000
commit533541c47bc98b118c55a2c646188e129abde3b8 (patch)
tree00d1b1f343ceacaa4c61b263e81e4f79e7449948 /sys/dev/twe
parent75770c482cd1308590f40a83da5eccefb24a2d44 (diff)
downloadFreeBSD-src-533541c47bc98b118c55a2c646188e129abde3b8.zip
FreeBSD-src-533541c47bc98b118c55a2c646188e129abde3b8.tar.gz
Fix instances of macros with improperly parenthasized arguments.
Verified by: md5
Diffstat (limited to 'sys/dev/twe')
-rw-r--r--sys/dev/twe/twe_compat.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/twe/twe_compat.h b/sys/dev/twe/twe_compat.h
index ed82631..2dc17b5 100644
--- a/sys/dev/twe/twe_compat.h
+++ b/sys/dev/twe/twe_compat.h
@@ -95,10 +95,10 @@
/*
* Wrappers for bus-space actions
*/
-#define TWE_CONTROL(sc, val) bus_space_write_4(sc->twe_btag, sc->twe_bhandle, 0x0, (u_int32_t)val)
-#define TWE_STATUS(sc) (u_int32_t)bus_space_read_4(sc->twe_btag, sc->twe_bhandle, 0x4)
-#define TWE_COMMAND_QUEUE(sc, val) bus_space_write_4(sc->twe_btag, sc->twe_bhandle, 0x8, (u_int32_t)val)
-#define TWE_RESPONSE_QUEUE(sc) (TWE_Response_Queue)bus_space_read_4(sc->twe_btag, sc->twe_bhandle, 0xc)
+#define TWE_CONTROL(sc, val) bus_space_write_4((sc)->twe_btag, (sc)->twe_bhandle, 0x0, (u_int32_t)val)
+#define TWE_STATUS(sc) (u_int32_t)bus_space_read_4((sc)->twe_btag, (sc)->twe_bhandle, 0x4)
+#define TWE_COMMAND_QUEUE(sc, val) bus_space_write_4((sc)->twe_btag, (sc)->twe_bhandle, 0x8, (u_int32_t)val)
+#define TWE_RESPONSE_QUEUE(sc) (TWE_Response_Queue)bus_space_read_4((sc)->twe_btag, (sc)->twe_bhandle, 0xc)
/*
* FreeBSD-specific softc elements
OpenPOWER on IntegriCloud