path: root/flash.h
diff options
authorCarl-Daniel Hailfinger <>2009-03-06 22:26:00 +0000
committerCarl-Daniel Hailfinger <>2009-03-06 22:26:00 +0000
commit0472f3d82624dcb19f25746172c6d59532e2463c (patch)
treea396b47eb0133b6a7543d69216933227a2c26b5c /flash.h
parentb88556979b65914d8b0fc85861efeaa9ad9a1d3c (diff)
FreeBSD definitions of (read|write)[bwl] collide with our own
Before we attempt trickery, we can simply rename the accessor functions. Patch created with the help of Coccinelle. Corresponding to flashrom svn r420 and coreboot v2 svn r3984. Signed-off-by: Carl-Daniel Hailfinger <> Acked-by: Idwer Vollering <> Acked-by: Patrick Georgi <>
Diffstat (limited to 'flash.h')
1 files changed, 6 insertions, 6 deletions
diff --git a/flash.h b/flash.h
index b33e133..38f3bcb 100644
--- a/flash.h
+++ b/flash.h
@@ -58,32 +58,32 @@
#define INL inl
-static inline void writeb(uint8_t b, volatile void *addr)
+static inline void chip_writeb(uint8_t b, volatile void *addr)
*(volatile uint8_t *) addr = b;
-static inline void writew(uint16_t b, volatile void *addr)
+static inline void chip_writew(uint16_t b, volatile void *addr)
*(volatile uint16_t *) addr = b;
-static inline void writel(uint32_t b, volatile void *addr)
+static inline void chip_writel(uint32_t b, volatile void *addr)
*(volatile uint32_t *) addr = b;
-static inline uint8_t readb(const volatile void *addr)
+static inline uint8_t chip_readb(const volatile void *addr)
return *(volatile uint8_t *) addr;
-static inline uint16_t readw(const volatile void *addr)
+static inline uint16_t chip_readw(const volatile void *addr)
return *(volatile uint16_t *) addr;
-static inline uint32_t readl(const volatile void *addr)
+static inline uint32_t chip_readl(const volatile void *addr)
return *(volatile uint32_t *) addr;
OpenPOWER on IntegriCloud