patch-2.4.22 linux-2.4.22/include/asm-arm/arch-rpc/io.h
Next file: linux-2.4.22/include/asm-arm/arch-rpc/memory.h
Previous file: linux-2.4.22/include/asm-arm/arch-rpc/hardware.h
Back to the patch index
Back to the overall index
- Lines: 18
- Date:
2003-08-25 04:44:43.000000000 -0700
- Orig file:
linux-2.4.21/include/asm-arm/arch-rpc/io.h
- Orig date:
2002-08-02 17:39:45.000000000 -0700
diff -urN linux-2.4.21/include/asm-arm/arch-rpc/io.h linux-2.4.22/include/asm-arm/arch-rpc/io.h
@@ -249,5 +249,17 @@
#define iomem_valid_addr(o,s) (1)
#define iomem_to_phys(a) (a)
+/*
+ * 1:1 mapping for ioremapped regions.
+ */
+#define __mem_pci(x) (x)
+
+#define __arch_getw(a) ((*(unsigned int *)(a)) & 0xffff)
+#define __arch_putw(v,a) \
+ do { \
+ unsigned int __v = v & 0xffff; \
+ __v |= __v << 16; \
+ *(unsigned int *)(a) = __v; \
+ } while (0)
#endif
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)