xref: /linux/arch/powerpc/include/asm/kexec_ranges.h (revision 8e1bb4a41aa78d6105e59186af3dcd545fc66e70)
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 #ifndef _ASM_POWERPC_KEXEC_RANGES_H
3 #define _ASM_POWERPC_KEXEC_RANGES_H
4 
5 #define MEM_RANGE_CHUNK_SZ		2048	/* Memory ranges size chunk */
6 
7 void sort_memory_ranges(struct crash_mem *mrngs, bool merge);
8 struct crash_mem *realloc_mem_ranges(struct crash_mem **mem_ranges);
9 int add_mem_range(struct crash_mem **mem_ranges, u64 base, u64 size);
10 int remove_mem_range(struct crash_mem **mem_ranges, u64 base, u64 size);
11 int get_exclude_memory_ranges(struct crash_mem **mem_ranges);
12 int get_reserved_memory_ranges(struct crash_mem **mem_ranges);
13 int get_crash_memory_ranges(struct crash_mem **mem_ranges);
14 int get_usable_memory_ranges(struct crash_mem **mem_ranges);
15 #endif /* _ASM_POWERPC_KEXEC_RANGES_H */
16