e820.h 690 B

1234567891011121314151617181920212223242526272829
  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 e820entry {
  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 install_e820_map(unsigned max_entries, struct e820entry *);
  21. #endif /* _ASM_X86_E820_H */