[PATCH] fixes to include/asm-linux/io.h

Arnaldo Carvalho de Melo (acme@conectiva.com.br)
Tue, 26 Oct 1999 17:51:31 -0200 (EDT)


Linus,

Please apply this patch, which fixes isa_read[wl] and isa_write[wl]
and adds isa_memcpy_fromio and friends, relative to 2.3.24-pre1.

- Arnaldo

--- linux.orig/include/asm-i386/io.h Tue Oct 26 10:08:01 1999
+++ linux/include/asm-i386/io.h Tue Oct 26 14:34:22 1999
@@ -28,6 +28,10 @@
/*
* Bit simplified and optimized by Jan Hubicka
* Support of BIGMEM added by Gerhard Wichert, Siemens AG, July 1999.
+ *
+ * isa_memset_io, isa_memcpy_fromio, isa_memcpy_toio added,
+ * isa_read[wl] and isa_write[wl] fixed
+ * - Arnaldo Carvalho de Melo <acme@conectiva.com.br>
*/

#ifdef SLOW_IO_BY_JUMPING
@@ -192,11 +196,14 @@
#define __ISA_IO_base ((char *)(PAGE_OFFSET))

#define isa_readb(a) readb(__ISA_IO_base + (a))
-#define isa_readw(a) readb(__ISA_IO_base + (a))
-#define isa_readl(a) readb(__ISA_IO_base + (a))
+#define isa_readw(a) readw(__ISA_IO_base + (a))
+#define isa_readl(a) readl(__ISA_IO_base + (a))
#define isa_writeb(b,a) writeb(b,__ISA_IO_base + (a))
-#define isa_writew(w,a) writeb(w,__ISA_IO_base + (a))
-#define isa_writel(l,a) writeb(l,__ISA_IO_base + (a))
+#define isa_writew(w,a) writew(w,__ISA_IO_base + (a))
+#define isa_writel(l,a) writel(l,__ISA_IO_base + (a))
+#define isa_memset_io(a,b,c) memset_io(__ISA_IO_base + (a),(b),(c))
+#define isa_memcpy_fromio(a,b,c) memcpy_fromio((a),__ISA_IO_base + (b),(c))
+#define isa_memcpy_toio(a,b,c) memcpy_toio(__ISA_IO_base + (a),(b),(c))

/*
* Again, i386 does not require mem IO specific function.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/