Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input
[linux-btrfs-devel.git] / arch / x86 / include / asm / memblock.h
blob0cd3800f33b9dcf68e39a1288ebf7ccd442f3a97
1 #ifndef _X86_MEMBLOCK_H
2 #define _X86_MEMBLOCK_H
4 #define ARCH_DISCARD_MEMBLOCK
6 u64 memblock_x86_find_in_range_size(u64 start, u64 *sizep, u64 align);
8 void memblock_x86_reserve_range(u64 start, u64 end, char *name);
9 void memblock_x86_free_range(u64 start, u64 end);
10 struct range;
11 int __get_free_all_memory_range(struct range **range, int nodeid,
12 unsigned long start_pfn, unsigned long end_pfn);
13 int get_free_all_memory_range(struct range **rangep, int nodeid);
15 void memblock_x86_register_active_regions(int nid, unsigned long start_pfn,
16 unsigned long last_pfn);
17 u64 memblock_x86_hole_size(u64 start, u64 end);
18 u64 memblock_x86_find_in_range_node(int nid, u64 start, u64 end, u64 size, u64 align);
19 u64 memblock_x86_free_memory_in_range(u64 addr, u64 limit);
20 u64 memblock_x86_memory_in_range(u64 addr, u64 limit);
21 bool memblock_x86_check_reserved_size(u64 *addrp, u64 *sizep, u64 align);
23 #endif