2010-02-16 19:40:35 -07:00
|
|
|
#ifndef _LINUX_EARLY_RES_H
|
|
|
|
#define _LINUX_EARLY_RES_H
|
2010-02-10 02:20:24 -07:00
|
|
|
#ifdef __KERNEL__
|
|
|
|
|
|
|
|
extern void reserve_early(u64 start, u64 end, char *name);
|
|
|
|
extern void reserve_early_overlap_ok(u64 start, u64 end, char *name);
|
|
|
|
extern void free_early(u64 start, u64 end);
|
2010-02-24 19:36:53 -07:00
|
|
|
void free_early_partial(u64 start, u64 end);
|
2010-02-10 02:20:24 -07:00
|
|
|
extern void early_res_to_bootmem(u64 start, u64 end);
|
|
|
|
|
|
|
|
void reserve_early_without_check(u64 start, u64 end, char *name);
|
|
|
|
u64 find_early_area(u64 ei_start, u64 ei_last, u64 start, u64 end,
|
|
|
|
u64 size, u64 align);
|
2010-02-10 02:20:26 -07:00
|
|
|
u64 find_early_area_size(u64 ei_start, u64 ei_last, u64 start,
|
|
|
|
u64 *sizep, u64 align);
|
2010-02-10 02:20:30 -07:00
|
|
|
u64 find_fw_memmap_area(u64 start, u64 end, u64 size, u64 align);
|
2010-02-16 19:40:35 -07:00
|
|
|
u64 get_max_mapped(void);
|
2010-02-10 02:20:24 -07:00
|
|
|
#include <linux/range.h>
|
|
|
|
int get_free_all_memory_range(struct range **rangep, int nodeid);
|
|
|
|
|
|
|
|
#endif /* __KERNEL__ */
|
|
|
|
|
2010-02-16 19:40:35 -07:00
|
|
|
#endif /* _LINUX_EARLY_RES_H */
|