sparsemem.h 677 B

1234567891011121314151617181920212223242526
  1. #ifndef ASMARM_SPARSEMEM_H
  2. #define ASMARM_SPARSEMEM_H
  3. #include <asm/memory.h>
  4. /*
  5. * Two definitions are required for sparsemem:
  6. *
  7. * MAX_PHYSMEM_BITS: The number of physical address bits required
  8. * to address the last byte of memory.
  9. *
  10. * SECTION_SIZE_BITS: The number of physical address bits to cover
  11. * the maximum amount of memory in a section.
  12. *
  13. * Eg, if you have 2 banks of up to 64MB at 0x80000000, 0x84000000,
  14. * then MAX_PHYSMEM_BITS is 32, SECTION_SIZE_BITS is 26.
  15. *
  16. * These can be overridden in your mach/memory.h.
  17. */
  18. #if !defined(MAX_PHYSMEM_BITS) || !defined(SECTION_SIZE_BITS)
  19. #define MAX_PHYSMEM_BITS 36
  20. #define SECTION_SIZE_BITS 28
  21. #endif
  22. #endif