Skip to content

Commit 3ae960a

Browse files
author
Ingo Molnar
committed
- 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>
1 parent 1a98fd1 commit 3ae960a

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

include/asm-x86/io.h

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,20 @@
55

66
#include <linux/compiler.h>
77

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__
14+
extern void early_ioremap_init(void);
15+
extern void early_ioremap_clear(void);
16+
extern void early_ioremap_reset(void);
17+
extern void *early_ioremap(unsigned long offset, unsigned long size);
18+
extern void early_iounmap(void *addr, unsigned long size);
19+
extern void __iomem *fix_ioremap(unsigned idx, unsigned long phys);
20+
#endif
21+
822
#define build_mmio_read(name, size, type, reg, barrier) \
923
static inline type name(const volatile void __iomem *addr) \
1024
{ type ret; asm volatile("mov" size " %1,%0":"=" reg (ret) \

0 commit comments

Comments
 (0)