1 #ifndef _ASM_X86_E820_H
2 #define _ASM_X86_E820_H
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.
10 #include <linux/numa.h>
11 #define E820_X_MAX (E820MAX + 3 * MAX_NUMNODES)
13 #include <uapi/asm/e820.h>
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
);
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
,
29 extern u64
e820_remove_range(u64 start
, u64 size
, unsigned old_type
,
31 extern void update_e820(void);
32 extern void e820_setup_gap(void);
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
);
40 static inline void e820_mark_nosave_regions(unsigned long limit_pfn
)
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
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 */