treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / arch / parisc / include / asm / ide.h
blob34cdac01ed354dfcbbec31791e2234385f94ae1f
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3 * linux/include/asm-parisc/ide.h
5 * Copyright (C) 1994-1996 Linus Torvalds & authors
6 */
8 /*
9 * This file contains the PARISC architecture specific IDE code.
12 #ifndef __ASM_PARISC_IDE_H
13 #define __ASM_PARISC_IDE_H
15 #ifdef __KERNEL__
17 /* Generic I/O and MEMIO string operations. */
19 #define __ide_insw insw
20 #define __ide_insl insl
21 #define __ide_outsw outsw
22 #define __ide_outsl outsl
24 static __inline__ void __ide_mm_insw(void __iomem *port, void *addr, u32 count)
26 while (count--) {
27 *(u16 *)addr = __raw_readw(port);
28 addr += 2;
32 static __inline__ void __ide_mm_insl(void __iomem *port, void *addr, u32 count)
34 while (count--) {
35 *(u32 *)addr = __raw_readl(port);
36 addr += 4;
40 static __inline__ void __ide_mm_outsw(void __iomem *port, void *addr, u32 count)
42 while (count--) {
43 __raw_writew(*(u16 *)addr, port);
44 addr += 2;
48 static __inline__ void __ide_mm_outsl(void __iomem *port, void *addr, u32 count)
50 while (count--) {
51 __raw_writel(*(u32 *)addr, port);
52 addr += 4;
56 #endif /* __KERNEL__ */
58 #endif /* __ASM_PARISC_IDE_H */