arm64: dts: Revert "specify console via command line"
[linux/fpc-iii.git] / arch / m68k / include / asm / nubus.h
blobc2281da6c51a32f9b7d04d7e79c8486cd1d76487
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _ASM_M68K_NUBUS_H
3 #define _ASM_M68K_NUBUS_H
5 #include <asm/raw_io.h>
6 #include <asm/kmap.h>
8 #define nubus_readb raw_inb
9 #define nubus_readw raw_inw
10 #define nubus_readl raw_inl
12 #define nubus_writeb raw_outb
13 #define nubus_writew raw_outw
14 #define nubus_writel raw_outl
16 #define nubus_memset_io(a,b,c) memset((void *)(a),(b),(c))
17 #define nubus_memcpy_fromio(a,b,c) memcpy((a),(void *)(b),(c))
18 #define nubus_memcpy_toio(a,b,c) memcpy((void *)(a),(b),(c))
20 static inline void *nubus_remap_nocache_ser(unsigned long physaddr,
21 unsigned long size)
23 return __ioremap(physaddr, size, IOMAP_NOCACHE_SER);
26 static inline void *nubus_remap_nocache_nonser(unsigned long physaddr,
27 unsigned long size)
29 return __ioremap(physaddr, size, IOMAP_NOCACHE_NONSER);
32 static inline void *nbus_remap_writethrough(unsigned long physaddr,
33 unsigned long size)
35 return __ioremap(physaddr, size, IOMAP_WRITETHROUGH);
38 static inline void *nubus_remap_fullcache(unsigned long physaddr,
39 unsigned long size)
41 return __ioremap(physaddr, size, IOMAP_FULL_CACHING);
44 #define nubus_unmap iounmap
45 #define nubus_iounmap iounmap
46 #define nubus_ioremap nubus_remap_nocache_ser
48 #endif /* _ASM_NUBUS_H */