Graeme Russ | 1bab104 | 2010-04-24 00:05:49 +1000 | [diff] [blame] | 1 | #ifndef _ASM_X86_E820_H |
| 2 | #define _ASM_X86_E820_H |
Graeme Russ | 1bab104 | 2010-04-24 00:05:49 +1000 | [diff] [blame] | 3 | |
Bin Meng | 27947c9 | 2015-04-21 12:21:35 +0800 | [diff] [blame^] | 4 | #define E820MAX 128 /* number of entries in E820MAP */ |
Graeme Russ | 1bab104 | 2010-04-24 00:05:49 +1000 | [diff] [blame] | 5 | |
| 6 | #define E820_RAM 1 |
| 7 | #define E820_RESERVED 2 |
| 8 | #define E820_ACPI 3 |
| 9 | #define E820_NVS 4 |
| 10 | #define E820_UNUSABLE 5 |
| 11 | |
Graeme Russ | 1bab104 | 2010-04-24 00:05:49 +1000 | [diff] [blame] | 12 | #ifndef __ASSEMBLY__ |
| 13 | #include <linux/types.h> |
Bin Meng | 27947c9 | 2015-04-21 12:21:35 +0800 | [diff] [blame^] | 14 | |
Graeme Russ | 1bab104 | 2010-04-24 00:05:49 +1000 | [diff] [blame] | 15 | struct e820entry { |
| 16 | __u64 addr; /* start of memory segment */ |
| 17 | __u64 size; /* size of memory segment */ |
| 18 | __u32 type; /* type of memory segment */ |
| 19 | } __attribute__((packed)); |
| 20 | |
Graeme Russ | 1bab104 | 2010-04-24 00:05:49 +1000 | [diff] [blame] | 21 | #define ISA_START_ADDRESS 0xa0000 |
| 22 | #define ISA_END_ADDRESS 0x100000 |
| 23 | |
Graeme Russ | 1bab104 | 2010-04-24 00:05:49 +1000 | [diff] [blame] | 24 | #endif /* __ASSEMBLY__ */ |
| 25 | |
Graeme Russ | 1bab104 | 2010-04-24 00:05:49 +1000 | [diff] [blame] | 26 | #endif /* _ASM_X86_E820_H */ |