blk: rq_data_dir() should not return a boolean
[cris-mirror.git] / arch / parisc / include / asm / ide.h
blob81700a2321cff3926bbf60320a2bed1cba248118
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 /* Generic I/O and MEMIO string operations. */
18 #define __ide_insw insw
19 #define __ide_insl insl
20 #define __ide_outsw outsw
21 #define __ide_outsl outsl
23 static __inline__ void __ide_mm_insw(void __iomem *port, void *addr, u32 count)
25 while (count--) {
26 *(u16 *)addr = __raw_readw(port);
27 addr += 2;
31 static __inline__ void __ide_mm_insl(void __iomem *port, void *addr, u32 count)
33 while (count--) {
34 *(u32 *)addr = __raw_readl(port);
35 addr += 4;
39 static __inline__ void __ide_mm_outsw(void __iomem *port, void *addr, u32 count)
41 while (count--) {
42 __raw_writew(*(u16 *)addr, port);
43 addr += 2;
47 static __inline__ void __ide_mm_outsl(void __iomem *port, void *addr, u32 count)
49 while (count--) {
50 __raw_writel(*(u32 *)addr, port);
51 addr += 4;
55 #endif /* __KERNEL__ */
57 #endif /* __ASM_PARISC_IDE_H */