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.

memsizes.h 763B

123456789101112131415161718192021222324252627282930313233343536
  1. #ifndef MEMSIZES_H
  2. #define MEMSIZES_H
  3. #warning "This header is no longer functional; use memmap.h instead"
  4. /*
  5. * These structures seem to be very i386 (and, in fact, PCBIOS)
  6. * specific, so I've moved them out of etherboot.h.
  7. *
  8. */
  9. struct e820entry {
  10. uint64_t addr;
  11. uint64_t size;
  12. uint32_t type;
  13. #define E820_RAM 1
  14. #define E820_RESERVED 2
  15. #define E820_ACPI 3 /* usable as RAM once ACPI tables have been read */
  16. #define E820_NVS 4
  17. } __attribute__ (( packed ));
  18. #define E820ENTRY_SIZE 20
  19. #define E820MAX 32
  20. struct meminfo {
  21. uint16_t basememsize;
  22. uint16_t pad;
  23. uint32_t memsize;
  24. uint32_t map_count;
  25. struct e820entry map[E820MAX];
  26. } __attribute__ (( packed ));
  27. extern struct meminfo meminfo;
  28. extern void get_memsizes ( void );
  29. #endif /* MEMSIZES_H */