patch-2.4.20 linux-2.4.20/arch/x86_64/lib/io.c

Next file: linux-2.4.20/arch/x86_64/lib/iodebug.c
Previous file: linux-2.4.20/arch/x86_64/lib/getuser.S
Back to the patch index
Back to the overall index

diff -urN linux-2.4.19/arch/x86_64/lib/io.c linux-2.4.20/arch/x86_64/lib/io.c
@@ -0,0 +1,13 @@
+#include <linux/string.h>
+#include <linux/module.h>
+#include <asm/io.h>
+
+void *memcpy_toio(void *dst,const void*src,unsigned len)
+{
+	return __inline_memcpy(__io_virt(dst),src,len);
+}
+
+void *memcpy_fromio(void *dst,const void*src,unsigned len)
+{
+	return __inline_memcpy(dst,__io_virt(src),len);
+}

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