diff options
author | alfred <alfred@FreeBSD.org> | 2002-11-09 12:55:07 +0000 |
---|---|---|
committer | alfred <alfred@FreeBSD.org> | 2002-11-09 12:55:07 +0000 |
commit | 533541c47bc98b118c55a2c646188e129abde3b8 (patch) | |
tree | 00d1b1f343ceacaa4c61b263e81e4f79e7449948 /sys/pci/if_ste.c | |
parent | 75770c482cd1308590f40a83da5eccefb24a2d44 (diff) | |
download | FreeBSD-src-533541c47bc98b118c55a2c646188e129abde3b8.zip FreeBSD-src-533541c47bc98b118c55a2c646188e129abde3b8.tar.gz |
Fix instances of macros with improperly parenthasized arguments.
Verified by: md5
Diffstat (limited to 'sys/pci/if_ste.c')
-rw-r--r-- | sys/pci/if_ste.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/pci/if_ste.c b/sys/pci/if_ste.c index e494437..d6b79fa 100644 --- a/sys/pci/if_ste.c +++ b/sys/pci/if_ste.c @@ -165,22 +165,22 @@ DRIVER_MODULE(if_ste, pci, ste_driver, ste_devclass, 0, 0); DRIVER_MODULE(miibus, ste, miibus_driver, miibus_devclass, 0, 0); #define STE_SETBIT4(sc, reg, x) \ - CSR_WRITE_4(sc, reg, CSR_READ_4(sc, reg) | x) + CSR_WRITE_4(sc, reg, CSR_READ_4(sc, reg) | (x)) #define STE_CLRBIT4(sc, reg, x) \ - CSR_WRITE_4(sc, reg, CSR_READ_4(sc, reg) & ~x) + CSR_WRITE_4(sc, reg, CSR_READ_4(sc, reg) & ~(x)) #define STE_SETBIT2(sc, reg, x) \ - CSR_WRITE_2(sc, reg, CSR_READ_2(sc, reg) | x) + CSR_WRITE_2(sc, reg, CSR_READ_2(sc, reg) | (x)) #define STE_CLRBIT2(sc, reg, x) \ - CSR_WRITE_2(sc, reg, CSR_READ_2(sc, reg) & ~x) + CSR_WRITE_2(sc, reg, CSR_READ_2(sc, reg) & ~(x)) #define STE_SETBIT1(sc, reg, x) \ - CSR_WRITE_1(sc, reg, CSR_READ_1(sc, reg) | x) + CSR_WRITE_1(sc, reg, CSR_READ_1(sc, reg) | (x)) #define STE_CLRBIT1(sc, reg, x) \ - CSR_WRITE_1(sc, reg, CSR_READ_1(sc, reg) & ~x) + CSR_WRITE_1(sc, reg, CSR_READ_1(sc, reg) & ~(x)) #define MII_SET(x) STE_SETBIT1(sc, STE_PHYCTL, x) |