[PATCH] s390: fix slab debugging
[linux-2.6/openmoko-kernel/knife-kernel.git] / include / asm-m68k / zorro.h
blob5ce97c22b582e316aac672db4887ee8486aa239d
1 #ifndef _ASM_M68K_ZORRO_H
2 #define _ASM_M68K_ZORRO_H
4 #include <asm/raw_io.h>
6 #define z_readb raw_inb
7 #define z_readw raw_inw
8 #define z_readl raw_inl
10 #define z_writeb raw_outb
11 #define z_writew raw_outw
12 #define z_writel raw_outl
14 #define z_memset_io(a,b,c) memset((void *)(a),(b),(c))
15 #define z_memcpy_fromio(a,b,c) memcpy((a),(void *)(b),(c))
16 #define z_memcpy_toio(a,b,c) memcpy((void *)(a),(b),(c))
18 static inline void __iomem *z_remap_nocache_ser(unsigned long physaddr,
19 unsigned long size)
21 return __ioremap(physaddr, size, IOMAP_NOCACHE_SER);
24 static inline void __iomem *z_remap_nocache_nonser(unsigned long physaddr,
25 unsigned long size)
27 return __ioremap(physaddr, size, IOMAP_NOCACHE_NONSER);
30 static inline void __iomem *z_remap_writethrough(unsigned long physaddr,
31 unsigned long size)
33 return __ioremap(physaddr, size, IOMAP_WRITETHROUGH);
35 static inline void __iomem *z_remap_fullcache(unsigned long physaddr,
36 unsigned long size)
38 return __ioremap(physaddr, size, IOMAP_FULL_CACHING);
41 #define z_unmap iounmap
42 #define z_iounmap iounmap
43 #define z_ioremap z_remap_nocache_ser
45 #endif /* _ASM_M68K_ZORRO_H */