sparsemem.h 788 B

12345678910111213141516171819202122232425262728
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef _ASM_IA64_SPARSEMEM_H
  3. #define _ASM_IA64_SPARSEMEM_H
  4. #ifdef CONFIG_SPARSEMEM
  5. #include <asm/page.h>
  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. */
  10. #define SECTION_SIZE_BITS (30)
  11. #define MAX_PHYSMEM_BITS (50)
  12. #ifdef CONFIG_ARCH_FORCE_MAX_ORDER
  13. #if ((CONFIG_ARCH_FORCE_MAX_ORDER - 1 + PAGE_SHIFT) > SECTION_SIZE_BITS)
  14. #undef SECTION_SIZE_BITS
  15. #define SECTION_SIZE_BITS (CONFIG_ARCH_FORCE_MAX_ORDER - 1 + PAGE_SHIFT)
  16. #endif
  17. #endif
  18. #endif /* CONFIG_SPARSEMEM */
  19. #ifdef CONFIG_MEMORY_HOTPLUG
  20. int memory_add_physaddr_to_nid(u64 addr);
  21. #define memory_add_physaddr_to_nid memory_add_physaddr_to_nid
  22. #endif
  23. #endif /* _ASM_IA64_SPARSEMEM_H */