aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/early_res.h
diff options
context:
space:
mode:
authorYinghai Lu <yinghai@kernel.org>2010-02-16 21:40:35 -0500
committerH. Peter Anvin <hpa@zytor.com>2010-02-17 00:43:39 -0500
commit580e0ad21d6d6f932461d24b47041e3dd499c23f (patch)
tree3476c71849c0f9aa54c160b9a994bf4d211bd697 /include/linux/early_res.h
parentdd645cee7b50b61cb2d05b59eb6027679c437af6 (diff)
core: Move early_res from arch/x86 to kernel/
This makes the range reservation feature available to other architectures. -v2: add get_max_mapped, max_pfn_mapped only defined in x86... to fix PPC compiling -v3: according to hpa, add CONFIG_HAVE_EARLY_RES -v4: fix typo about EARLY_RES in config Signed-off-by: Yinghai Lu <yinghai@kernel.org> LKML-Reference: <4B7B5723.4070009@kernel.org> Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'include/linux/early_res.h')
-rw-r--r--include/linux/early_res.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/include/linux/early_res.h b/include/linux/early_res.h
new file mode 100644
index 000000000000..50f7663bb8b1
--- /dev/null
+++ b/include/linux/early_res.h
@@ -0,0 +1,22 @@
1#ifndef _LINUX_EARLY_RES_H
2#define _LINUX_EARLY_RES_H
3#ifdef __KERNEL__
4
5extern void reserve_early(u64 start, u64 end, char *name);
6extern void reserve_early_overlap_ok(u64 start, u64 end, char *name);
7extern void free_early(u64 start, u64 end);
8extern void early_res_to_bootmem(u64 start, u64 end);
9
10void reserve_early_without_check(u64 start, u64 end, char *name);
11u64 find_early_area(u64 ei_start, u64 ei_last, u64 start, u64 end,
12 u64 size, u64 align);
13u64 find_early_area_size(u64 ei_start, u64 ei_last, u64 start,
14 u64 *sizep, u64 align);
15u64 find_fw_memmap_area(u64 start, u64 end, u64 size, u64 align);
16u64 get_max_mapped(void);
17#include <linux/range.h>
18int get_free_all_memory_range(struct range **rangep, int nodeid);
19
20#endif /* __KERNEL__ */
21
22#endif /* _LINUX_EARLY_RES_H */