sparsemem_64.h 678 B

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