e820_32.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*
  2. * structures and definitions for the int 15, ax=e820 memory map
  3. * scheme.
  4. *
  5. * In a nutshell, arch/i386/boot/setup.S populates a scratch table
  6. * in the empty_zero_block that contains a list of usable address/size
  7. * duples. In arch/i386/kernel/setup.c, this information is
  8. * transferred into the e820map, and in arch/i386/mm/init.c, that
  9. * new information is used to mark pages reserved or not.
  10. *
  11. */
  12. #ifndef __E820_HEADER
  13. #define __E820_HEADER
  14. #define HIGH_MEMORY (1024*1024)
  15. #ifndef __ASSEMBLY__
  16. extern struct e820map e820;
  17. extern int e820_all_mapped(unsigned long start, unsigned long end,
  18. unsigned type);
  19. extern int e820_any_mapped(u64 start, u64 end, unsigned type);
  20. extern void find_max_pfn(void);
  21. extern void register_bootmem_low_pages(unsigned long max_low_pfn);
  22. extern void e820_register_memory(void);
  23. extern void limit_regions(unsigned long long size);
  24. extern void print_memory_map(char *who);
  25. #if defined(CONFIG_PM) && defined(CONFIG_HIBERNATION)
  26. extern void e820_mark_nosave_regions(void);
  27. #else
  28. static inline void e820_mark_nosave_regions(void)
  29. {
  30. }
  31. #endif
  32. #endif/*!__ASSEMBLY__*/
  33. #endif/*__E820_HEADER*/