firmware: create firmware binaries during 'make modules'.
[linux-2.6/linux-acpi-2.6/ibm-acpi-2.6.git] / include / asm-parisc / ide.h
blobc246ef75017db7fc048699577c0603121bb19f51
1 /*
2 * linux/include/asm-parisc/ide.h
4 * Copyright (C) 1994-1996 Linus Torvalds & authors
5 */
7 /*
8 * This file contains the PARISC architecture specific IDE code.
9 */
11 #ifndef __ASM_PARISC_IDE_H
12 #define __ASM_PARISC_IDE_H
14 #ifdef __KERNEL__
16 #define ide_request_irq(irq,hand,flg,dev,id) request_irq((irq),(hand),(flg),(dev),(id))
17 #define ide_free_irq(irq,dev_id) free_irq((irq), (dev_id))
18 #define ide_request_region(from,extent,name) request_region((from), (extent), (name))
19 #define ide_release_region(from,extent) release_region((from), (extent))
20 /* Generic I/O and MEMIO string operations. */
22 #define __ide_insw insw
23 #define __ide_insl insl
24 #define __ide_outsw outsw
25 #define __ide_outsl outsl
27 static __inline__ void __ide_mm_insw(void __iomem *port, void *addr, u32 count)
29 while (count--) {
30 *(u16 *)addr = __raw_readw(port);
31 addr += 2;
35 static __inline__ void __ide_mm_insl(void __iomem *port, void *addr, u32 count)
37 while (count--) {
38 *(u32 *)addr = __raw_readl(port);
39 addr += 4;
43 static __inline__ void __ide_mm_outsw(void __iomem *port, void *addr, u32 count)
45 while (count--) {
46 __raw_writew(*(u16 *)addr, port);
47 addr += 2;
51 static __inline__ void __ide_mm_outsl(void __iomem *port, void *addr, u32 count)
53 while (count--) {
54 __raw_writel(*(u32 *)addr, port);
55 addr += 4;
59 #endif /* __KERNEL__ */
61 #endif /* __ASM_PARISC_IDE_H */