Commit 6ade2cd2 authored by Geert Uytterhoeven's avatar Geert Uytterhoeven Committed by Linus Torvalds

[PATCH] M68k iomap cleanup

Move m68k low-level iomap definitions from asm/io.h to asm/raw_io.h, so zorro.h
and nubus.h can include raw_io.h instead of io.h (as suggested by Richard
Zidlicky)
parent 7de7b525
...@@ -280,18 +280,6 @@ static inline void isa_delay(void) ...@@ -280,18 +280,6 @@ static inline void isa_delay(void)
#endif /* CONFIG_PCI */ #endif /* CONFIG_PCI */
/* Values for nocacheflag and cmode */
#define IOMAP_FULL_CACHING 0
#define IOMAP_NOCACHE_SER 1
#define IOMAP_NOCACHE_NONSER 2
#define IOMAP_WRITETHROUGH 3
extern void iounmap(void *addr);
extern void *__ioremap(unsigned long physaddr, unsigned long size,
int cacheflag);
extern void __iounmap(void *addr, unsigned long size);
extern inline void *ioremap(unsigned long physaddr, unsigned long size) extern inline void *ioremap(unsigned long physaddr, unsigned long size)
{ {
return __ioremap(physaddr, size, IOMAP_NOCACHE_SER); return __ioremap(physaddr, size, IOMAP_NOCACHE_SER);
......
#ifndef _ASM_M68K_NUBUS_H #ifndef _ASM_M68K_NUBUS_H
#define _ASM_M68K_NUBUS_H #define _ASM_M68K_NUBUS_H
#include <asm/io.h> #include <asm/raw_io.h>
#define nubus_readb raw_inb #define nubus_readb raw_inb
#define nubus_readw raw_inw #define nubus_readw raw_inw
......
...@@ -11,6 +11,19 @@ ...@@ -11,6 +11,19 @@
#ifdef __KERNEL__ #ifdef __KERNEL__
/* Values for nocacheflag and cmode */
#define IOMAP_FULL_CACHING 0
#define IOMAP_NOCACHE_SER 1
#define IOMAP_NOCACHE_NONSER 2
#define IOMAP_WRITETHROUGH 3
extern void iounmap(void *addr);
extern void *__ioremap(unsigned long physaddr, unsigned long size,
int cacheflag);
extern void __iounmap(void *addr, unsigned long size);
/* ++roman: The assignments to temp. vars avoid that gcc sometimes generates /* ++roman: The assignments to temp. vars avoid that gcc sometimes generates
* two accesses to memory, which may be undesirable for some devices. * two accesses to memory, which may be undesirable for some devices.
*/ */
......
#ifndef _ASM_M68K_ZORRO_H #ifndef _ASM_M68K_ZORRO_H
#define _ASM_M68K_ZORRO_H #define _ASM_M68K_ZORRO_H
#include <asm/io.h> #include <asm/raw_io.h>
#define z_readb raw_inb #define z_readb raw_inb
#define z_readw raw_inw #define z_readw raw_inw
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment