patch-2.4.0-test12 linux/arch/arm/lib/io-pcio.S

Next file: linux/arch/arm/lib/io-readsb.S
Previous file: linux/arch/arm/lib/io-footbridge.S
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.0-test11/linux/arch/arm/lib/io-pcio.S linux/arch/arm/lib/io-pcio.S
@@ -0,0 +1,38 @@
+#include <linux/linkage.h>
+#include <asm/hardware.h>
+
+		.equ	pcio_high, PCIO_BASE & 0xff000000
+		.equ	pcio_low,  PCIO_BASE & 0x00ffffff
+
+		.macro	ioaddr, rd,rn
+		add	\rd, \rn, #pcio_high
+		.if	pcio_low
+		add	\rd, \rd, #pcio_low
+		.endif
+		.endm
+
+ENTRY(insl)
+		ioaddr	r0, r0
+		b	__arch_readsl
+
+ENTRY(outsl)
+		ioaddr	r0, r0
+		b	__arch_writesl
+
+		/* Nobody could say these are optimal, but not to worry. */
+
+ENTRY(outsw)
+		ioaddr	r0, r0
+		b	__arch_writesw
+
+ENTRY(insw)
+		ioaddr	r0, r0
+		b	__arch_readsw
+
+ENTRY(insb)
+		ioaddr	r0, r0
+		b	__arch_readsb
+
+ENTRY(outsb)
+		ioaddr	r0, r0
+		b	__arch_writesb

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