aboutsummaryrefslogtreecommitdiffstats
path: root/arch/microblaze/include/asm/io.h
diff options
context:
space:
mode:
authorMichal Simek <monstr@monstr.eu>2010-01-14 09:40:11 -0500
committerMichal Simek <monstr@monstr.eu>2010-03-11 08:00:09 -0500
commit2ddafeab6f159640299d17fb9b73b57f65011d85 (patch)
tree980ce95b224ad41f8bef20c9fd35b12c21c694fd /arch/microblaze/include/asm/io.h
parentc6ba01a4c7806d134c8d483525997559071d0990 (diff)
microblaze: io.h include asm-generic/iomap.h
I need to use generic/iomap.h for PCI that's why is necessary to include it and fix ioport_{map,unmap} functions. Signed-off-by: Michal Simek <monstr@monstr.eu>
Diffstat (limited to 'arch/microblaze/include/asm/io.h')
-rw-r--r--arch/microblaze/include/asm/io.h13
1 files changed, 3 insertions, 10 deletions
diff --git a/arch/microblaze/include/asm/io.h b/arch/microblaze/include/asm/io.h
index 9ac409ad906b..f82df5d221a8 100644
--- a/arch/microblaze/include/asm/io.h
+++ b/arch/microblaze/include/asm/io.h
@@ -15,6 +15,7 @@
15#include <asm/page.h> 15#include <asm/page.h>
16#include <linux/types.h> 16#include <linux/types.h>
17#include <linux/mm.h> /* Get struct page {...} */ 17#include <linux/mm.h> /* Get struct page {...} */
18#include <asm-generic/iomap.h>
18 19
19#define PCI_DRAM_OFFSET 0 20#define PCI_DRAM_OFFSET 0
20 21
@@ -228,15 +229,7 @@ static inline void __iomem *__ioremap(phys_addr_t address, unsigned long size,
228#define out_8(a, v) __raw_writeb((v), (a)) 229#define out_8(a, v) __raw_writeb((v), (a))
229#define in_8(a) __raw_readb(a) 230#define in_8(a) __raw_readb(a)
230 231
231/* FIXME */ 232#define ioport_map(port, nr) ((void __iomem *)(port))
232static inline void __iomem *ioport_map(unsigned long port, unsigned int len) 233#define ioport_unmap(addr)
233{
234 return (void __iomem *) (port);
235}
236
237static inline void ioport_unmap(void __iomem *addr)
238{
239 /* Nothing to do */
240}
241 234
242#endif /* _ASM_MICROBLAZE_IO_H */ 235#endif /* _ASM_MICROBLAZE_IO_H */