Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci Fix macro definitions. No binary change.
details: https://anonhg.NetBSD.org/src/rev/2e2074b9b8db
branches: trunk
changeset: 785145:2e2074b9b8db
user: msaitoh <msaitoh%NetBSD.org@localhost>
date: Wed Feb 27 13:53:51 2013 +0000
description:
Fix macro definitions. No binary change.
diffstat:
sys/dev/pci/if_bgevar.h | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (28 lines):
diff -r 91ef8253f3ae -r 2e2074b9b8db sys/dev/pci/if_bgevar.h
--- a/sys/dev/pci/if_bgevar.h Wed Feb 27 09:29:21 2013 +0000
+++ b/sys/dev/pci/if_bgevar.h Wed Feb 27 13:53:51 2013 +0000
@@ -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
Home |
Main Index |
Thread Index |
Old Index