2 * linux/include/asm-parisc/ide.h
4 * Copyright (C) 1994-1996 Linus Torvalds & authors
8 * This file contains the PARISC architecture specific IDE code.
11 #ifndef __ASM_PARISC_IDE_H
12 #define __ASM_PARISC_IDE_H
20 #define ide_request_irq(irq,hand,flg,dev,id) request_irq((irq),(hand),(flg),(dev),(id))
21 #define ide_free_irq(irq,dev_id) free_irq((irq), (dev_id))
22 #define ide_request_region(from,extent,name) request_region((from), (extent), (name))
23 #define ide_release_region(from,extent) release_region((from), (extent))
24 /* Generic I/O and MEMIO string operations. */
26 #define __ide_insw insw
27 #define __ide_insl insl
28 #define __ide_outsw outsw
29 #define __ide_outsl outsl
31 static __inline__ void __ide_mm_insw(void __iomem *port, void *addr, u32 count)
34 *(u16 *)addr = __raw_readw(port);
39 static __inline__ void __ide_mm_insl(void __iomem *port, void *addr, u32 count)
42 *(u32 *)addr = __raw_readl(port);
47 static __inline__ void __ide_mm_outsw(void __iomem *port, void *addr, u32 count)
50 __raw_writew(*(u16 *)addr, port);
55 static __inline__ void __ide_mm_outsl(void __iomem *port, void *addr, u32 count)
58 __raw_writel(*(u32 *)addr, port);
63 #endif /* __KERNEL__ */
65 #endif /* __ASM_PARISC_IDE_H */