1 /* SPDX-License-Identifier: GPL-2.0 */
2 /* Generic I/O and MEMIO string operations. */
4 #define __ide_insw insw
5 #define __ide_insl insl
6 #define __ide_outsw outsw
7 #define __ide_outsl outsl
9 static __inline__ void __ide_mm_insw(void __iomem *port, void *addr, u32 count)
12 *(u16 *)addr = readw(port);
17 static __inline__ void __ide_mm_insl(void __iomem *port, void *addr, u32 count)
20 *(u32 *)addr = readl(port);
25 static __inline__ void __ide_mm_outsw(void __iomem *port, void *addr, u32 count)
28 writew(*(u16 *)addr, port);
33 static __inline__ void __ide_mm_outsl(void __iomem * port, void *addr, u32 count)
36 writel(*(u32 *)addr, port);