[PATCH 1/5] common: Add define for IOMEM helper macro.
Marek Belisko
marek.belisko at open-nandra.com
Thu Nov 18 08:29:27 EST 2010
IOMEM helper macro is used for address casting which then
is used in read(bwl)/write(bwl) functions.
Signed-off-by: Marek Belisko <marek.belisko at open-nandra.com>
---
include/common.h | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/include/common.h b/include/common.h
index 394542f..a14bfc1 100644
--- a/include/common.h
+++ b/include/common.h
@@ -220,4 +220,6 @@ int memory_display(char *addr, ulong offs, ulong nbytes, int size);
extern const char version_string[];
+#define IOMEM(addr) ((void __force __iomem *)(addr))
+
#endif /* __COMMON_H_ */
--
1.7.1
More information about the barebox
mailing list