patch-2.3.40 linux/include/asm-arm/io.h

Next file: linux/include/asm-arm/iomd.h
Previous file: linux/include/asm-arm/div64.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.39/linux/include/asm-arm/io.h linux/include/asm-arm/io.h
@@ -42,10 +42,6 @@
 
 #ifdef __KERNEL__
 
-#ifndef NULL
-#define NULL	((void *) 0)
-#endif
-
 #include <asm/arch/memory.h>
 
 extern __inline__ unsigned long virt_to_phys(volatile void *x)
@@ -86,6 +82,14 @@
 extern void _memcpy_toio(unsigned long, const void *, unsigned long);
 extern void _memset_io(unsigned long, int, unsigned long);
 
+#define __raw_writeb(val,addr)		__arch_putb(val,addr)
+#define __raw_writew(val,addr)		__arch_putw(val,addr)
+#define __raw_writel(val,addr)		__arch_putl(val,addr)
+
+#define __raw_readb(addr)		__arch_getb(addr)
+#define __raw_readw(addr)		__arch_getw(addr)
+#define __raw_readl(addr)		__arch_getl(addr)
+
 /*
  * If this architecture has PCI memory IO, then define the read/write
  * macros.
@@ -151,11 +155,11 @@
 #define isa_writew(val,addr)		__arch_putw(val,__mem_isa(addr))
 #define isa_writel(val,addr)		__arch_putl(val,__mem_isa(addr))
 #define isa_memset_io(a,b,c)		_memset_io(__mem_isa(a),(b),(c))
-#define isa_memcpy_fromio(a,b,c)	_memcpy_fromio((a),__mem_isa((b)),(c))
+#define isa_memcpy_fromio(a,b,c)	_memcpy_fromio((a),__mem_isa(b),(c))
 #define isa_memcpy_toio(a,b,c)		_memcpy_toio(__mem_isa((a)),(b),(c))
 
 #define isa_eth_io_copy_and_sum(a,b,c,d) \
-				eth_copy_and_sum((a),__mem_isa((b),(c),(d))
+				eth_copy_and_sum((a),__mem_isa(b),(c),(d))
 
 static inline int
 isa_check_signature(unsigned long io_addr, const unsigned char *signature,

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)