x86/mm/pat: Don't report PAT on CPUs that don't support it
[linux/fpc-iii.git] / arch / x86 / include / asm / e820.h
blob67313f3a987401d845e6c9bfe62eede163a49613
1 #ifndef _ASM_X86_E820_H
2 #define _ASM_X86_E820_H
4 /*
5 * E820_X_MAX is the maximum size of the extended E820 table. The extended
6 * table may contain up to 3 extra E820 entries per possible NUMA node, so we
7 * make room for 3 * MAX_NUMNODES possible entries, beyond the standard 128.
8 * Also note that E820_X_MAX *must* be defined before we include uapi/asm/e820.h.
9 */
10 #include <linux/numa.h>
11 #define E820_X_MAX (E820MAX + 3 * MAX_NUMNODES)
13 #include <uapi/asm/e820.h>
15 #ifndef __ASSEMBLY__
16 /* see comment in arch/x86/kernel/e820.c */
17 extern struct e820map *e820;
18 extern struct e820map *e820_saved;
20 extern unsigned long pci_mem_start;
21 extern int e820_any_mapped(u64 start, u64 end, unsigned type);
22 extern int e820_all_mapped(u64 start, u64 end, unsigned type);
23 extern void e820_add_region(u64 start, u64 size, int type);
24 extern void e820_print_map(char *who);
25 extern int
26 sanitize_e820_map(struct e820entry *biosmap, int max_nr_map, u32 *pnr_map);
27 extern u64 e820_update_range(u64 start, u64 size, unsigned old_type,
28 unsigned new_type);
29 extern u64 e820_remove_range(u64 start, u64 size, unsigned old_type,
30 int checktype);
31 extern void update_e820(void);
32 extern void e820_setup_gap(void);
33 struct setup_data;
34 extern void parse_e820_ext(u64 phys_addr, u32 data_len);
36 #if defined(CONFIG_X86_64) || \
37 (defined(CONFIG_X86_32) && defined(CONFIG_HIBERNATION))
38 extern void e820_mark_nosave_regions(unsigned long limit_pfn);
39 #else
40 static inline void e820_mark_nosave_regions(unsigned long limit_pfn)
43 #endif
45 extern unsigned long e820_end_of_ram_pfn(void);
46 extern unsigned long e820_end_of_low_ram_pfn(void);
47 extern u64 early_reserve_e820(u64 sizet, u64 align);
49 void memblock_x86_fill(void);
50 void memblock_find_dma_reserve(void);
52 extern void finish_e820_parsing(void);
53 extern void e820_reserve_resources(void);
54 extern void e820_reserve_resources_late(void);
55 extern void setup_memory_map(void);
56 extern char *default_machine_specific_memory_setup(void);
58 extern void e820_reallocate_tables(void);
61 * Returns true iff the specified range [s,e) is completely contained inside
62 * the ISA region.
64 static inline bool is_ISA_range(u64 s, u64 e)
66 return s >= ISA_START_ADDRESS && e <= ISA_END_ADDRESS;
69 #endif /* __ASSEMBLY__ */
70 #include <linux/ioport.h>
72 #define HIGH_MEMORY (1024*1024)
73 #endif /* _ASM_X86_E820_H */