X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=include%2Fasm-arm%2Farch-rpc%2Fhardware.h;h=7480f4e8d9747e480e78bccd708d3ea7388800cb;hb=43bc926fffd92024b46cafaf7350d669ba9ca884;hp=9dc5f5d4b912235fa2838e2678b0bd97aebe5bc6;hpb=5273a3df6485dc2ad6aa7ddd441b9a21970f003b;p=linux-2.6.git diff --git a/include/asm-arm/arch-rpc/hardware.h b/include/asm-arm/arch-rpc/hardware.h index 9dc5f5d4b..7480f4e8d 100644 --- a/include/asm-arm/arch-rpc/hardware.h +++ b/include/asm-arm/arch-rpc/hardware.h @@ -14,6 +14,12 @@ #include +#ifndef __ASSEMBLY__ +#define IOMEM(x) ((void __iomem *)(unsigned long)(x)) +#else +#define IOMEM(x) x +#endif /* __ASSEMBLY__ */ + /* * What hardware must be present */ @@ -34,26 +40,23 @@ #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)