patch-2.4.6 linux/arch/sh/kernel/io_sh2000.c
Next file: linux/arch/sh/kernel/irq.c
Previous file: linux/arch/sh/kernel/io_hd64465.c
Back to the patch index
Back to the overall index
- Lines: 20
- Date:
Wed Jun 27 13:55:29 2001
- Orig file:
v2.4.5/linux/arch/sh/kernel/io_sh2000.c
- Orig date:
Wed Dec 31 16:00:00 1969
diff -u --recursive --new-file v2.4.5/linux/arch/sh/kernel/io_sh2000.c linux/arch/sh/kernel/io_sh2000.c
@@ -0,0 +1,19 @@
+/*
+ * I/O routine for SH-2000
+ */
+#include <linux/config.h>
+#include <asm/io.h>
+#include <asm/machvec.h>
+
+#define IDE_OFFSET 0xb6200000
+#define NIC_OFFSET 0xb6000000
+#define EXTBUS_OFFSET 0xba000000
+
+unsigned long sh2000_isa_port2addr(unsigned long offset)
+{
+ if((offset & ~7) == 0x1f0 || offset == 0x3f6)
+ return IDE_OFFSET + offset;
+ else if((offset & ~0x1f) == 0x300)
+ return NIC_OFFSET + offset;
+ return EXTBUS_OFFSET + offset;
+}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)