e820_64.h 879 B

1234567891011121314151617181920212223242526
  1. /*
  2. * structures and definitions for the int 15, ax=e820 memory map
  3. * scheme.
  4. *
  5. * In a nutshell, setup.S populates a scratch table in the
  6. * empty_zero_block that contains a list of usable address/size
  7. * duples. setup.c, this information is transferred into the e820map,
  8. * and in init.c/numa.c, that new information is used to mark pages
  9. * reserved or not.
  10. */
  11. #ifndef __E820_HEADER
  12. #define __E820_HEADER
  13. #include <linux/ioport.h>
  14. #ifndef __ASSEMBLY__
  15. extern void setup_memory_region(void);
  16. extern void contig_e820_setup(void);
  17. extern int e820_any_non_reserved(unsigned long start, unsigned long end);
  18. extern int is_memory_any_valid(unsigned long start, unsigned long end);
  19. extern int e820_all_non_reserved(unsigned long start, unsigned long end);
  20. extern int is_memory_all_valid(unsigned long start, unsigned long end);
  21. #endif/*!__ASSEMBLY__*/
  22. #endif/*__E820_HEADER*/