[PATCH] m68k: basic iomem annotations
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Cc: Roman Zippel <zippel@linux-m68k.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
@@ -15,24 +15,24 @@
|
||||
#define z_memcpy_fromio(a,b,c) memcpy((a),(void *)(b),(c))
|
||||
#define z_memcpy_toio(a,b,c) memcpy((void *)(a),(b),(c))
|
||||
|
||||
static inline void *z_remap_nocache_ser(unsigned long physaddr,
|
||||
static inline void __iomem *z_remap_nocache_ser(unsigned long physaddr,
|
||||
unsigned long size)
|
||||
{
|
||||
return __ioremap(physaddr, size, IOMAP_NOCACHE_SER);
|
||||
}
|
||||
|
||||
static inline void *z_remap_nocache_nonser(unsigned long physaddr,
|
||||
static inline void __iomem *z_remap_nocache_nonser(unsigned long physaddr,
|
||||
unsigned long size)
|
||||
{
|
||||
return __ioremap(physaddr, size, IOMAP_NOCACHE_NONSER);
|
||||
}
|
||||
|
||||
static inline void *z_remap_writethrough(unsigned long physaddr,
|
||||
static inline void __iomem *z_remap_writethrough(unsigned long physaddr,
|
||||
unsigned long size)
|
||||
{
|
||||
return __ioremap(physaddr, size, IOMAP_WRITETHROUGH);
|
||||
}
|
||||
static inline void *z_remap_fullcache(unsigned long physaddr,
|
||||
static inline void __iomem *z_remap_fullcache(unsigned long physaddr,
|
||||
unsigned long size)
|
||||
{
|
||||
return __ioremap(physaddr, size, IOMAP_FULL_CACHING);
|
||||
|
Reference in New Issue
Block a user