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
16 #include <linux/config.h>
22 #define IDE_ARCH_OBSOLETE_INIT
23 #define ide_default_io_ctl(base) ((base) + 0x206) /* obsolete */
25 #define ide_request_irq(irq,hand,flg,dev,id) request_irq((irq),(hand),(flg),(dev),(id))
26 #define ide_free_irq(irq,dev_id) free_irq((irq), (dev_id))
27 #define ide_check_region(from,extent) check_region((from), (extent))
28 #define ide_request_region(from,extent,name) request_region((from), (extent), (name))
29 #define ide_release_region(from,extent) release_region((from), (extent))
30 /* Generic I/O and MEMIO string operations. */
32 #define __ide_insw insw
33 #define __ide_insl insl
34 #define __ide_outsw outsw
35 #define __ide_outsl outsl
37 static __inline__ void __ide_mm_insw(unsigned long port, void *addr, u32 count)
40 *(u16 *)addr = __raw_readw(port);
45 static __inline__ void __ide_mm_insl(unsigned long port, void *addr, u32 count)
48 *(u32 *)addr = __raw_readl(port);
53 static __inline__ void __ide_mm_outsw(unsigned long port, void *addr, u32 count)
56 __raw_writew(*(u16 *)addr, port);
61 static __inline__ void __ide_mm_outsl(unsigned long port, void *addr, u32 count)
64 __raw_writel(*(u32 *)addr, port);
69 #endif /* __KERNEL__ */
71 #endif /* __ASM_PARISC_IDE_H */