patch-2.4.2 linux/include/asm-alpha/io.h

Next file: linux/include/asm-alpha/page.h
Previous file: linux/include/asm-alpha/errno.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.1/linux/include/asm-alpha/io.h linux/include/asm-alpha/io.h
@@ -440,6 +440,22 @@
 	return retval;
 }
 
+
+/*
+ * ISA space is mapped to some machine-specific location on Alpha.
+ * Call into the existing hooks to get the address translated.
+ */
+#define isa_readb(a)			readb(__ioremap(a))
+#define isa_readw(a)			readw(__ioremap(a))
+#define isa_readl(a)			readl(__ioremap(a))
+#define isa_writeb(b,a)			writeb((b),__ioremap(a))
+#define isa_writew(w,a)			writew((w),__ioremap(a))
+#define isa_writel(l,a)			writel((l),__ioremap(a))
+#define isa_memset_io(a,b,c)		memset_io(__ioremap(a),(b),(c))
+#define isa_memcpy_fromio(a,b,c)	memcpy_fromio((a),__ioremap(b),(c))
+#define isa_memcpy_toio(a,b,c)		memcpy_toio(__ioremap(a),(b),(c))
+
+
 /*
  * The Alpha Jensen hardware for some rather strange reason puts
  * the RTC clock at 0x170 instead of 0x70. Probably due to some

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