Fedora kernel-2.6.17-1.2142_FC4 patched with stable patch-2.6.17.4-vs2.0.2-rc26.diff
[linux-2.6.git] / include / asm-arm / arch-rpc / hardware.h
index 9dc5f5d..7480f4e 100644 (file)
 
 #include <asm/arch/memory.h>
 
+#ifndef __ASSEMBLY__
+#define IOMEM(x) ((void __iomem *)(unsigned long)(x))
+#else
+#define IOMEM(x) x
+#endif /* __ASSEMBLY__ */
+
 /*
  * What hardware must be present
  */
 
 #define IO_START               0x03000000      /* I/O */
 #define IO_SIZE                        0x01000000
-#define IO_BASE                        0xe0000000
+#define IO_BASE                        IOMEM(0xe0000000)
 
 #define SCREEN_START           0x02000000      /* VRAM */
 #define SCREEN_END             0xdfc00000
 #define SCREEN_BASE            0xdf800000
 
-#define FLUSH_BASE             0xdf000000
 #define UNCACHEABLE_ADDR       0xdf010000
 
 /*
  * IO Addresses
  */
-#define VIDC_BASE              0xe0400000
+#define VIDC_BASE              IOMEM(0xe0400000)
 #define EXPMASK_BASE           0xe0360000
-#define IOMD_BASE              0xe0200000
-#define IOC_BASE               0xe0200000
-#define PCIO_BASE              0xe0010000
-#define FLOPPYDMA_BASE         0xe002a000
-
-#define FLUSH_BASE_PHYS                0x00000000      /* ROM */
+#define IOMD_BASE              IOMEM(0xe0200000)
+#define IOC_BASE               IOMEM(0xe0200000)
+#define PCIO_BASE              IOMEM(0xe0010000)
+#define FLOPPYDMA_BASE         IOMEM(0xe002a000)
 
 #define vidc_writel(val)       __raw_writel(val, VIDC_BASE)