aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-x86/io.h
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2008-06-30 04:33:47 -0400
committerIngo Molnar <mingo@elte.hu>2008-07-08 07:16:12 -0400
commit3ae960a598b9dfe87b29eb70738d91a13e692498 (patch)
treece088a7df3018570a70ea4a93b7a95f55712f346 /include/asm-x86/io.h
parent1a98fd14f44cfade4af3e6ed96ba55065fa17ee4 (diff)
- x86: move early_ioremap prototypes to io.h
now that the early-ioremap code is unified, move the prototypes too from io_32.h to io.h. this fixes: arch/x86/kernel/setup.c:531: error: implicit declaration of function ‘early_ioremap_init' on 64-bit. Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/asm-x86/io.h')
-rw-r--r--include/asm-x86/io.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/asm-x86/io.h b/include/asm-x86/io.h
index c63563df4ac8..bf5d629b3a39 100644
--- a/include/asm-x86/io.h
+++ b/include/asm-x86/io.h
@@ -5,6 +5,20 @@
5 5
6#include <linux/compiler.h> 6#include <linux/compiler.h>
7 7
8/*
9 * early_ioremap() and early_iounmap() are for temporary early boot-time
10 * mappings, before the real ioremap() is functional.
11 * A boot-time mapping is currently limited to at most 16 pages.
12 */
13#ifndef __ASSEMBLY__
14extern void early_ioremap_init(void);
15extern void early_ioremap_clear(void);
16extern void early_ioremap_reset(void);
17extern void *early_ioremap(unsigned long offset, unsigned long size);
18extern void early_iounmap(void *addr, unsigned long size);
19extern void __iomem *fix_ioremap(unsigned idx, unsigned long phys);
20#endif
21
8#define build_mmio_read(name, size, type, reg, barrier) \ 22#define build_mmio_read(name, size, type, reg, barrier) \
9static inline type name(const volatile void __iomem *addr) \ 23static inline type name(const volatile void __iomem *addr) \
10{ type ret; asm volatile("mov" size " %1,%0":"=" reg (ret) \ 24{ type ret; asm volatile("mov" size " %1,%0":"=" reg (ret) \