blob: 5a4d2eb8e79c9f95bbf6d24eb5709149968470cf [file] [log] [blame]
Yinghai Lua678c2b2010-02-10 01:20:24 -08001#ifndef _ASM_X86_EARLY_RES_H
2#define _ASM_X86_EARLY_RES_H
3#ifdef __KERNEL__
4
Yinghai Lua678c2b2010-02-10 01:20:24 -08005extern 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);
Yinghai Luefdd0e82010-02-10 01:20:26 -080013u64 find_early_area_size(u64 ei_start, u64 ei_last, u64 start,
14 u64 *sizep, u64 align);
Yinghai Lua678c2b2010-02-10 01:20:24 -080015#include <linux/range.h>
16int get_free_all_memory_range(struct range **rangep, int nodeid);
17
18#endif /* __KERNEL__ */
19
20#endif /* _ASM_X86_EARLY_RES_H */