Yinghai Lu | fb74fb6 | 2010-08-25 13:39:15 -0700 | [diff] [blame] | 1 | #ifndef _X86_MEMBLOCK_H |
| 2 | #define _X86_MEMBLOCK_H |
| 3 | |
| 4 | #define ARCH_DISCARD_MEMBLOCK |
| 5 | |
| 6 | u64 memblock_x86_find_in_range_size(u64 start, u64 *sizep, u64 align); |
Yinghai Lu | 27de794 | 2010-08-25 13:39:15 -0700 | [diff] [blame] | 7 | void memblock_x86_to_bootmem(u64 start, u64 end); |
Yinghai Lu | fb74fb6 | 2010-08-25 13:39:15 -0700 | [diff] [blame] | 8 | |
Yinghai Lu | 9dc5d56 | 2010-08-25 13:39:15 -0700 | [diff] [blame] | 9 | void memblock_x86_reserve_range(u64 start, u64 end, char *name); |
| 10 | void memblock_x86_free_range(u64 start, u64 end); |
Yinghai Lu | 4d5cf86 | 2010-08-25 13:39:16 -0700 | [diff] [blame] | 11 | struct range; |
Yinghai Lu | 1d93126 | 2010-10-05 16:15:15 -0700 | [diff] [blame] | 12 | int __get_free_all_memory_range(struct range **range, int nodeid, |
| 13 | unsigned long start_pfn, unsigned long end_pfn); |
Yinghai Lu | 4d5cf86 | 2010-08-25 13:39:16 -0700 | [diff] [blame] | 14 | int get_free_all_memory_range(struct range **rangep, int nodeid); |
Yinghai Lu | 9dc5d56 | 2010-08-25 13:39:15 -0700 | [diff] [blame] | 15 | |
Yinghai Lu | 88ba088 | 2010-08-25 13:39:16 -0700 | [diff] [blame] | 16 | void memblock_x86_register_active_regions(int nid, unsigned long start_pfn, |
| 17 | unsigned long last_pfn); |
| 18 | u64 memblock_x86_hole_size(u64 start, u64 end); |
Yinghai Lu | 6bcc817 | 2010-08-25 13:39:16 -0700 | [diff] [blame] | 19 | u64 memblock_x86_find_in_range_node(int nid, u64 start, u64 end, u64 size, u64 align); |
Yinghai Lu | b52c17c | 2010-08-25 13:39:16 -0700 | [diff] [blame] | 20 | u64 memblock_x86_free_memory_in_range(u64 addr, u64 limit); |
Yinghai Lu | e82d42b | 2010-08-25 13:39:17 -0700 | [diff] [blame] | 21 | u64 memblock_x86_memory_in_range(u64 addr, u64 limit); |
Yinghai Lu | 88ba088 | 2010-08-25 13:39:16 -0700 | [diff] [blame] | 22 | |
Yinghai Lu | fb74fb6 | 2010-08-25 13:39:15 -0700 | [diff] [blame] | 23 | #endif |