patch-2.1.96 linux/include/asm-arm/arch-arc/ide.h
Next file: linux/include/asm-arm/arch-arc/io.h
Previous file: linux/include/asm-arm/arch-arc/hardware.h
Back to the patch index
Back to the overall index
- Lines: 34
- Date:
Sun Apr 12 11:42:15 1998
- Orig file:
v2.1.95/linux/include/asm-arm/arch-arc/ide.h
- Orig date:
Tue Jan 20 16:39:42 1998
diff -u --recursive --new-file v2.1.95/linux/include/asm-arm/arch-arc/ide.h linux/include/asm-arm/arch-arc/ide.h
@@ -2,17 +2,33 @@
* linux/include/asm-arm/arch-arc/ide.h
*
* Copyright (c) 1997,1998 Russell King
+ *
+ * IDE definitions for the Acorn Archimedes/A5000
+ * architecture
+ *
+ * Modifications:
+ * 04-04-1998 PJB Merged `arc' and `a5k' versions
*/
+#include <linux/config.h>
+
static __inline__ int
ide_default_irq(ide_ioreg_t base)
{
+#ifdef CONFIG_ARCH_A5K
+ if (base == 0x1f0)
+ return 11;
+#endif
return 0;
}
static __inline__ ide_ioreg_t
ide_default_io_base(int index)
{
+#ifdef CONFIG_ARCH_A5K
+ if (index == 0)
+ return 0x1f0;
+#endif
return 0;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov