2 * linux/include/asm-sh/ide.h
4 * Copyright (C) 1994-1996 Linus Torvalds & authors
8 * This file contains the i386 architecture specific IDE code.
9 * In future, SuperH code.
12 #ifndef __ASM_SH_IDE_H
13 #define __ASM_SH_IDE_H
17 #include <linux/config.h>
18 #include <asm/machvec.h>
21 /* Should never have less than 2, ide-pci.c(ide_match_hwif) requires it */
25 static inline int ide_default_irq_hp600(unsigned long base)
28 case 0x01f0: return 93;
29 case 0x0170: return 94;
35 static inline int ide_default_irq(unsigned long base)
38 return ide_default_irq_hp600(base);
41 case 0x01f0: return 14;
42 case 0x0170: return 15;
48 static inline unsigned long ide_default_io_base_hp600(int index)
60 static inline unsigned long ide_default_io_base(int index)
63 return ide_default_io_base_hp600(index);
75 #define IDE_ARCH_OBSOLETE_INIT
76 #define ide_default_io_ctl(base) ((base) + 0x206) /* obsolete */
79 #define ide_init_default_irq(base) (0)
81 #define ide_init_default_irq(base) ide_default_irq(base)
84 #include <asm-generic/ide_iops.h>
86 #endif /* __KERNEL__ */
88 #endif /* __ASM_SH_IDE_H */