Yinghai Lu | 580e0ad | 2010-02-16 18:40:35 -0800 | [diff] [blame] | 1 | #ifndef _LINUX_EARLY_RES_H |
| 2 | #define _LINUX_EARLY_RES_H |
Yinghai Lu | a678c2b | 2010-02-10 01:20:24 -0800 | [diff] [blame] | 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); |
Yinghai Lu | fb90ef9 | 2010-02-24 18:36:53 -0800 | [diff] [blame] | 8 | void free_early_partial(u64 start, u64 end); |
Yinghai Lu | a678c2b | 2010-02-10 01:20:24 -0800 | [diff] [blame] | 9 | extern void early_res_to_bootmem(u64 start, u64 end); |
| 10 | |
| 11 | void reserve_early_without_check(u64 start, u64 end, char *name); |
| 12 | u64 find_early_area(u64 ei_start, u64 ei_last, u64 start, u64 end, |
| 13 | u64 size, u64 align); |
Yinghai Lu | efdd0e8 | 2010-02-10 01:20:26 -0800 | [diff] [blame] | 14 | u64 find_early_area_size(u64 ei_start, u64 ei_last, u64 start, |
| 15 | u64 *sizep, u64 align); |
Yinghai Lu | dd645ce | 2010-02-10 01:20:30 -0800 | [diff] [blame] | 16 | u64 find_fw_memmap_area(u64 start, u64 end, u64 size, u64 align); |
Yinghai Lu | 580e0ad | 2010-02-16 18:40:35 -0800 | [diff] [blame] | 17 | u64 get_max_mapped(void); |
Yinghai Lu | a678c2b | 2010-02-10 01:20:24 -0800 | [diff] [blame] | 18 | #include <linux/range.h> |
| 19 | int get_free_all_memory_range(struct range **rangep, int nodeid); |
| 20 | |
| 21 | #endif /* __KERNEL__ */ |
| 22 | |
Yinghai Lu | 580e0ad | 2010-02-16 18:40:35 -0800 | [diff] [blame] | 23 | #endif /* _LINUX_EARLY_RES_H */ |