patch-2.1.110 linux/include/asm-arm/io.h
Next file: linux/include/asm-arm/proc-armo/pgtable.h
Previous file: linux/include/asm-arm/init.h
Back to the patch index
Back to the overall index
-  Lines: 21
-  Date:
Sat Jul 18 11:55:25 1998
-  Orig file: 
v2.1.109/linux/include/asm-arm/io.h
-  Orig date: 
Tue Jun 23 10:01:26 1998
diff -u --recursive --new-file v2.1.109/linux/include/asm-arm/io.h linux/include/asm-arm/io.h
@@ -170,5 +170,20 @@
 #undef ARCH_IO_DELAY
 #undef ARCH_IO_CONSTANT
 
+#ifdef __KERNEL__
+
+/*
+ * String version of IO memory access ops:
+ */
+extern void _memcpy_fromio(void *, unsigned long, unsigned long);
+extern void _memcpy_toio(unsigned long, void *, unsigned long);
+extern void _memset_io(unsigned long, int, unsigned long);
+
+#define memcpy_fromio(to,from,len)	_memcpy_fromio((to),(unsigned long)(from),(len))
+#define memcpy_toio(to,from,len)	_memcpy_toio((unsigned long)(to),(from),(len))
+#define memset_io(addr,c,len)		_memset_io((unsigned long)(addr),(c),(len))
+
+#endif
+
 #endif
 
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov