You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

memmap.h 638B

123456789101112131415161718192021222324252627282930313233343536
  1. #ifndef _IPXE_MEMMAP_H
  2. #define _IPXE_MEMMAP_H
  3. #include <stdint.h>
  4. /**
  5. * @file
  6. *
  7. * Memory mapping
  8. *
  9. */
  10. FILE_LICENCE ( GPL2_OR_LATER );
  11. /** A usable memory region */
  12. struct memory_region {
  13. /** Physical start address */
  14. uint64_t start;
  15. /** Physical end address */
  16. uint64_t end;
  17. };
  18. /** Maximum number of memory regions we expect to encounter */
  19. #define MAX_MEMORY_REGIONS 8
  20. /** A memory map */
  21. struct memory_map {
  22. /** Memory regions */
  23. struct memory_region regions[MAX_MEMORY_REGIONS];
  24. /** Number of used regions */
  25. unsigned int count;
  26. };
  27. extern void get_memmap ( struct memory_map *memmap );
  28. #endif /* _IPXE_MEMMAP_H */