Yinghai Lu | a678c2b | 2010-02-10 01:20:24 -0800 | [diff] [blame] | 1 | #ifndef _ASM_X86_EARLY_RES_H |
| 2 | #define _ASM_X86_EARLY_RES_H |
| 3 | #ifdef __KERNEL__ |
| 4 | |
Yinghai Lu | a678c2b | 2010-02-10 01:20:24 -0800 | [diff] [blame] | 5 | extern void reserve_early(u64 start, u64 end, char *name); |
| 6 | extern void reserve_early_overlap_ok(u64 start, u64 end, char *name); |
| 7 | extern void free_early(u64 start, u64 end); |
| 8 | extern void early_res_to_bootmem(u64 start, u64 end); |
| 9 | |
| 10 | void reserve_early_without_check(u64 start, u64 end, char *name); |
| 11 | u64 find_early_area(u64 ei_start, u64 ei_last, u64 start, u64 end, |
| 12 | u64 size, u64 align); |
Yinghai Lu | efdd0e8 | 2010-02-10 01:20:26 -0800 | [diff] [blame^] | 13 | u64 find_early_area_size(u64 ei_start, u64 ei_last, u64 start, |
| 14 | u64 *sizep, u64 align); |
Yinghai Lu | a678c2b | 2010-02-10 01:20:24 -0800 | [diff] [blame] | 15 | #include <linux/range.h> |
| 16 | int get_free_all_memory_range(struct range **rangep, int nodeid); |
| 17 | |
| 18 | #endif /* __KERNEL__ */ |
| 19 | |
| 20 | #endif /* _ASM_X86_EARLY_RES_H */ |