]>
git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blob - include/asm-powerpc/ide.h
2 * Copyright (C) 1994-1996 Linus Torvalds & authors
4 * This file contains the powerpc architecture specific IDE code.
6 #ifndef _ASM_POWERPC_IDE_H
7 #define _ASM_POWERPC_IDE_H
12 #include <linux/sched.h>
13 #include <asm/mpc8xx.h>
25 #define __ide_mm_insw(p, a, c) readsw((void __iomem *)(p), (a), (c))
26 #define __ide_mm_insl(p, a, c) readsl((void __iomem *)(p), (a), (c))
27 #define __ide_mm_outsw(p, a, c) writesw((void __iomem *)(p), (a), (c))
28 #define __ide_mm_outsl(p, a, c) writesl((void __iomem *)(p), (a), (c))
31 #include <linux/hdreg.h>
32 #include <linux/ioport.h>
34 /* FIXME: use ide_platform host driver */
35 static __inline__
int ide_default_irq(unsigned long base
)
39 case 0x1f0: return 14;
40 case 0x170: return 15;
43 #ifdef CONFIG_PPC_PREP
45 case 0x1f0: return 13;
46 case 0x170: return 13;
47 case 0x1e8: return 11;
48 case 0x168: return 10;
49 case 0xfff0: return 14; /* MCP(N)750 ide0 */
50 case 0xffe0: return 15; /* MCP(N)750 ide1 */
56 /* FIXME: use ide_platform host driver */
57 static __inline__
unsigned long ide_default_io_base(int index
)
65 #ifdef CONFIG_PPC_PREP
76 #ifdef CONFIG_BLK_DEV_MPC8xx_IDE
77 #define IDE_ARCH_ACK_INTR 1
78 #define ide_ack_intr(hwif) ((hwif)->ack_intr ? (hwif)->ack_intr(hwif) : 1)
81 #endif /* __powerpc64__ */
83 #endif /* __KERNEL__ */
85 #endif /* _ASM_POWERPC_IDE_H */