WIP FPC-III support
[linux/fpc-iii.git] / arch / ia64 / include / asm / sparsemem.h
blobdd8c166ffd7b5ffbf56e3217a209512745d7e65b
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _ASM_IA64_SPARSEMEM_H
3 #define _ASM_IA64_SPARSEMEM_H
5 #ifdef CONFIG_SPARSEMEM
6 /*
7 * SECTION_SIZE_BITS 2^N: how big each section will be
8 * MAX_PHYSMEM_BITS 2^N: how much memory we can have in that space
9 */
11 #define SECTION_SIZE_BITS (30)
12 #define MAX_PHYSMEM_BITS (50)
13 #ifdef CONFIG_FORCE_MAX_ZONEORDER
14 #if ((CONFIG_FORCE_MAX_ZONEORDER - 1 + PAGE_SHIFT) > SECTION_SIZE_BITS)
15 #undef SECTION_SIZE_BITS
16 #define SECTION_SIZE_BITS (CONFIG_FORCE_MAX_ZONEORDER - 1 + PAGE_SHIFT)
17 #endif
18 #endif
20 #endif /* CONFIG_SPARSEMEM */
22 #ifdef CONFIG_MEMORY_HOTPLUG
23 int memory_add_physaddr_to_nid(u64 addr);
24 #define memory_add_physaddr_to_nid memory_add_physaddr_to_nid
25 #endif
27 #endif /* _ASM_IA64_SPARSEMEM_H */