summaryrefslogtreecommitdiff
path: root/src/common.h
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2007-03-13 10:21:06 -0700
committerEric Anholt <eric@anholt.net>2007-03-13 16:59:38 -0700
commit5135b3a79f9c30ebce78c84c49846bba83607fed (patch)
tree8ea1d50eda1059e9b7fc93490dc9c501500a0f2e /src/common.h
parent578da7ca705c5a58c0bd397b0831e2f95140f8ae (diff)
Use a POSTING_READ(reg) macro instead of using the (void)INREG(reg) pattern.
Diffstat (limited to 'src/common.h')
-rw-r--r--src/common.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/common.h b/src/common.h
index f596eb87..a6348950 100644
--- a/src/common.h
+++ b/src/common.h
@@ -233,6 +233,7 @@ union intfloat {
#define INREG8(addr) *(volatile CARD8 *)(RecPtr->MMIOBase + (addr))
#define INREG16(addr) *(volatile CARD16 *)(RecPtr->MMIOBase + (addr))
#define INREG(addr) *(volatile CARD32 *)(RecPtr->MMIOBase + (addr))
+#define POSTING_READ(addr) (void)INREG(addr)
#define OUTREG8(addr, val) do { \
*(volatile CARD8 *)(RecPtr->MMIOBase + (addr)) = (val); \