1 /* SPDX-License-Identifier: GPL-2.0 */
3 * linux/include/asm-parisc/ide.h
5 * Copyright (C) 1994-1996 Linus Torvalds & authors
9 * This file contains the PARISC architecture specific IDE code.
12 #ifndef __ASM_PARISC_IDE_H
13 #define __ASM_PARISC_IDE_H
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
)
27 *(u16
*)addr
= __raw_readw(port
);
32 static __inline__
void __ide_mm_insl(void __iomem
*port
, void *addr
, u32 count
)
35 *(u32
*)addr
= __raw_readl(port
);
40 static __inline__
void __ide_mm_outsw(void __iomem
*port
, void *addr
, u32 count
)
43 __raw_writew(*(u16
*)addr
, port
);
48 static __inline__
void __ide_mm_outsl(void __iomem
*port
, void *addr
, u32 count
)
51 __raw_writel(*(u32
*)addr
, port
);
56 #endif /* __KERNEL__ */
58 #endif /* __ASM_PARISC_IDE_H */