e820_32.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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. #include <linux/ioport.h>
  15. #define HIGH_MEMORY (1024*1024)
  16. #ifndef __ASSEMBLY__
  17. extern void setup_memory_map(void);
  18. extern void finish_e820_parsing(void);
  19. extern void propagate_e820_map(void);
  20. extern void register_bootmem_low_pages(unsigned long max_low_pfn);
  21. extern void limit_regions(unsigned long long size);
  22. extern void init_iomem_resources(struct resource *code_resource,
  23. struct resource *data_resource,
  24. struct resource *bss_resource);
  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*/