summaryrefslogtreecommitdiffstats
path: root/include/asm-mips/io.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-mips/io.h')
-rw-r--r--include/asm-mips/io.h19
1 files changed, 18 insertions, 1 deletions
diff --git a/include/asm-mips/io.h b/include/asm-mips/io.h
index 20bdbeb34..d4c77dd78 100644
--- a/include/asm-mips/io.h
+++ b/include/asm-mips/io.h
@@ -1,4 +1,4 @@
-/* $Id$
+/* $Id: io.h,v 1.7 1999/10/09 00:01:43 ralf Exp $
*
* This file is subject to the terms and conditions of the GNU General Public
* License. See the file "COPYING" in the main directory of this archive
@@ -174,6 +174,23 @@ extern inline void iounmap(void *addr)
/* END SNI HACKS ... */
/*
+ * ISA space is 'always mapped' on currently supported MIPS systems, no need
+ * to explicitly ioremap() it. The fact that the ISA IO space is mapped
+ * to PAGE_OFFSET is pure coincidence - it does not mean ISA values
+ * are physical addresses. The following constant pointer can be
+ * used as the IO-area pointer (it can be iounmapped as well, so the
+ * analogy with PCI is quite large):
+ */
+#define __ISA_IO_base ((char *)(PAGE_OFFSET))
+
+#define isa_readb(a) readb(a)
+#define isa_readw(a) readb(a)
+#define isa_readl(a) readb(a)
+#define isa_writeb(b,a) writeb(b,a)
+#define isa_writew(w,a) writeb(w,a)
+#define isa_writel(l,a) writeb(l,a)
+
+/*
* We don't have csum_partial_copy_fromio() yet, so we cheat here and
* just copy it. The net code will then do the checksum later.
*/