provide linux-style readl()/writel() in reg.h

This commit is contained in:
Brian Swetland
2008-12-07 21:53:03 -08:00
committed by Travis Geiselbrecht
parent 7d7380c460
commit 9c19412187

View File

@@ -31,4 +31,7 @@
#define REG16(addr) ((volatile uint16_t *)(addr))
#define REG8(addr) ((volatile uint8_t *)(addr))
#define writel(v, a) (*REG32(a) = (v))
#define readl(a) (*REG32(a))
#endif