Module Name:    src
Committed By:   msaitoh
Date:           Wed Feb 27 13:53:51 UTC 2013

Modified Files:
        src/sys/dev/pci: if_bgevar.h

Log Message:
Fix macro definitions. No binary change.


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/sys/dev/pci/if_bgevar.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/pci/if_bgevar.h
diff -u src/sys/dev/pci/if_bgevar.h:1.9 src/sys/dev/pci/if_bgevar.h:1.10
--- src/sys/dev/pci/if_bgevar.h:1.9	Thu Feb  2 19:43:05 2012
+++ src/sys/dev/pci/if_bgevar.h	Wed Feb 27 13:53:51 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: if_bgevar.h,v 1.9 2012/02/02 19:43:05 tls Exp $	*/
+/*	$NetBSD: if_bgevar.h,v 1.10 2013/02/27 13:53:51 msaitoh Exp $	*/
 /*
  * Copyright (c) 2001 Wind River Systems
  * Copyright (c) 1997, 1998, 1999, 2001
@@ -100,14 +100,14 @@
 	bus_space_read_4(sc->bge_btag, sc->bge_bhandle, reg)
 
 #define BGE_SETBIT(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 BGE_CLRBIT(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 PCI_SETBIT(pc, tag, reg, x)	\
-	pci_conf_write(pc, tag, reg, (pci_conf_read(pc, tag, reg) | x))
+	pci_conf_write(pc, tag, reg, (pci_conf_read(pc, tag, reg) | (x)))
 #define PCI_CLRBIT(pc, tag, reg, x)	\
-	pci_conf_write(pc, tag, reg, (pci_conf_read(pc, tag, reg) & ~x))
+	pci_conf_write(pc, tag, reg, (pci_conf_read(pc, tag, reg) & ~(x)))
 
 /*
  * Memory management stuff. Note: the SSLOTS, MSLOTS and JSLOTS

Reply via email to