162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 262306a36Sopenharmony_ci#ifndef _ASM_IA64_SPARSEMEM_H 362306a36Sopenharmony_ci#define _ASM_IA64_SPARSEMEM_H 462306a36Sopenharmony_ci 562306a36Sopenharmony_ci#ifdef CONFIG_SPARSEMEM 662306a36Sopenharmony_ci#include <asm/page.h> 762306a36Sopenharmony_ci/* 862306a36Sopenharmony_ci * SECTION_SIZE_BITS 2^N: how big each section will be 962306a36Sopenharmony_ci * MAX_PHYSMEM_BITS 2^N: how much memory we can have in that space 1062306a36Sopenharmony_ci */ 1162306a36Sopenharmony_ci 1262306a36Sopenharmony_ci#define SECTION_SIZE_BITS (30) 1362306a36Sopenharmony_ci#define MAX_PHYSMEM_BITS (50) 1462306a36Sopenharmony_ci#ifdef CONFIG_ARCH_FORCE_MAX_ORDER 1562306a36Sopenharmony_ci#if (CONFIG_ARCH_FORCE_MAX_ORDER + PAGE_SHIFT > SECTION_SIZE_BITS) 1662306a36Sopenharmony_ci#undef SECTION_SIZE_BITS 1762306a36Sopenharmony_ci#define SECTION_SIZE_BITS (CONFIG_ARCH_FORCE_MAX_ORDER + PAGE_SHIFT) 1862306a36Sopenharmony_ci#endif 1962306a36Sopenharmony_ci#endif 2062306a36Sopenharmony_ci 2162306a36Sopenharmony_ci#endif /* CONFIG_SPARSEMEM */ 2262306a36Sopenharmony_ci 2362306a36Sopenharmony_ci#ifdef CONFIG_MEMORY_HOTPLUG 2462306a36Sopenharmony_ciint memory_add_physaddr_to_nid(u64 addr); 2562306a36Sopenharmony_ci#define memory_add_physaddr_to_nid memory_add_physaddr_to_nid 2662306a36Sopenharmony_ci#endif 2762306a36Sopenharmony_ci 2862306a36Sopenharmony_ci#endif /* _ASM_IA64_SPARSEMEM_H */ 29