1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _ASM_M68K_ZORRO_H
3 #define _ASM_M68K_ZORRO_H
5 #include <asm/raw_io.h>
8 #define z_readb raw_inb
9 #define z_readw raw_inw
10 #define z_readl raw_inl
12 #define z_writeb raw_outb
13 #define z_writew raw_outw
14 #define z_writel raw_outl
16 #define z_memset_io(a,b,c) memset((void *)(a),(b),(c))
17 #define z_memcpy_fromio(a,b,c) memcpy((a),(void *)(b),(c))
18 #define z_memcpy_toio(a,b,c) memcpy((void *)(a),(b),(c))
20 static inline void __iomem
*z_remap_nocache_ser(unsigned long physaddr
,
23 return __ioremap(physaddr
, size
, IOMAP_NOCACHE_SER
);
26 static inline void __iomem
*z_remap_nocache_nonser(unsigned long physaddr
,
29 return __ioremap(physaddr
, size
, IOMAP_NOCACHE_NONSER
);
32 static inline void __iomem
*z_remap_writethrough(unsigned long physaddr
,
35 return __ioremap(physaddr
, size
, IOMAP_WRITETHROUGH
);
37 static inline void __iomem
*z_remap_fullcache(unsigned long physaddr
,
40 return __ioremap(physaddr
, size
, IOMAP_FULL_CACHING
);
43 #define z_unmap iounmap
44 #define z_iounmap iounmap
45 #define z_ioremap z_remap_nocache_ser
47 #endif /* _ASM_M68K_ZORRO_H */