e820.h 709 B

123456789101112131415161718192021222324252627282930
  1. #ifndef _ASM_X86_E820_H
  2. #define _ASM_X86_E820_H
  3. #define E820MAX 128 /* number of entries in E820MAP */
  4. #define E820_RAM 1
  5. #define E820_RESERVED 2
  6. #define E820_ACPI 3
  7. #define E820_NVS 4
  8. #define E820_UNUSABLE 5
  9. #ifndef __ASSEMBLY__
  10. #include <linux/types.h>
  11. struct e820_entry {
  12. __u64 addr; /* start of memory segment */
  13. __u64 size; /* size of memory segment */
  14. __u32 type; /* type of memory segment */
  15. } __attribute__((packed));
  16. #define ISA_START_ADDRESS 0xa0000
  17. #define ISA_END_ADDRESS 0x100000
  18. #endif /* __ASSEMBLY__ */
  19. /* Implementation defined function to install an e820 map */
  20. unsigned int install_e820_map(unsigned int max_entries,
  21. struct e820_entry *);
  22. #endif /* _ASM_X86_E820_H */