2 * linux/include/asm-x86_64/ide.h
4 * Copyright (C) 1994-1996 Linus Torvalds & authors
8 * This file contains the x86_64 architecture specific IDE code.
11 #ifndef __ASMx86_64_IDE_H
12 #define __ASMx86_64_IDE_H
16 #include <linux/config.h>
19 # ifdef CONFIG_BLK_DEV_IDEPCI
26 static __inline__ int ide_default_irq(unsigned long base)
29 case 0x1f0: return 14;
30 case 0x170: return 15;
31 case 0x1e8: return 11;
32 case 0x168: return 10;
34 case 0x160: return 12;
40 static __inline__ unsigned long ide_default_io_base(int index)
54 #ifdef CONFIG_BLK_DEV_IDEPCI
55 #define ide_init_default_irq(base) (0)
57 #define ide_init_default_irq(base) ide_default_irq(base)
60 #include <asm-generic/ide_iops.h>
62 #endif /* __KERNEL__ */
64 #endif /* __ASMx86_64_IDE_H */