1 #ifndef _ASM_X86_64_SPARSEMEM_H
2 #define _ASM_X86_64_SPARSEMEM_H 1
4 #ifdef CONFIG_SPARSEMEM
7 * generic non-linear memory support:
9 * 1) we will not split memory into more chunks than will fit into the flags
10 * field of the struct page
12 * SECTION_SIZE_BITS 2^n: size of each section
13 * MAX_PHYSADDR_BITS 2^n: max size of physical address space
14 * MAX_PHYSMEM_BITS 2^n: how much memory we can have in that space
18 #define SECTION_SIZE_BITS 27 /* matt - 128 is convenient right now */
19 #define MAX_PHYSADDR_BITS 40
20 #define MAX_PHYSMEM_BITS 40
22 extern int early_pfn_to_nid(unsigned long pfn);
24 #endif /* CONFIG_SPARSEMEM */
26 #endif /* _ASM_X86_64_SPARSEMEM_H */