sparsemem.h 607 B

1234567891011121314151617181920
  1. #ifndef _ASM_POWERPC_SPARSEMEM_H
  2. #define _ASM_POWERPC_SPARSEMEM_H 1
  3. #ifdef CONFIG_SPARSEMEM
  4. /*
  5. * SECTION_SIZE_BITS 2^N: how big each section will be
  6. * MAX_PHYSADDR_BITS 2^N: how much physical address space we have
  7. * MAX_PHYSMEM_BITS 2^N: how much memory we can have in that space
  8. */
  9. #define SECTION_SIZE_BITS 24
  10. #define MAX_PHYSADDR_BITS 44
  11. #define MAX_PHYSMEM_BITS 44
  12. #ifdef CONFIG_MEMORY_HOTPLUG
  13. extern void create_section_mapping(unsigned long start, unsigned long end);
  14. #endif /* CONFIG_MEMORY_HOTPLUG */
  15. #endif /* CONFIG_SPARSEMEM */
  16. #endif /* _ASM_POWERPC_SPARSEMEM_H */