patch-2.3.99-pre6 linux/include/asm-ia64/ide.h
Next file: linux/include/asm-ia64/io.h
Previous file: linux/include/asm-ia64/ia32.h
Back to the patch index
Back to the overall index
- Lines: 28
- Date:
Fri Apr 21 15:21:24 2000
- Orig file:
v2.3.99-pre5/linux/include/asm-ia64/ide.h
- Orig date:
Fri Mar 10 16:40:49 2000
diff -u --recursive --new-file v2.3.99-pre5/linux/include/asm-ia64/ide.h linux/include/asm-ia64/ide.h
@@ -15,6 +15,8 @@
#include <linux/config.h>
+#include <linux/irq.h>
+
#ifndef MAX_HWIFS
# ifdef CONFIG_BLK_DEV_IDEPCI
#define MAX_HWIFS 10
@@ -29,12 +31,12 @@
ide_default_irq (ide_ioreg_t base)
{
switch (base) {
- case 0x1f0: return 14;
- case 0x170: return 15;
- case 0x1e8: return 11;
- case 0x168: return 10;
- case 0x1e0: return 8;
- case 0x160: return 12;
+ case 0x1f0: return isa_irq_to_vector(14);
+ case 0x170: return isa_irq_to_vector(15);
+ case 0x1e8: return isa_irq_to_vector(11);
+ case 0x168: return isa_irq_to_vector(10);
+ case 0x1e0: return isa_irq_to_vector(8);
+ case 0x160: return isa_irq_to_vector(12);
default:
return 0;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)