1 #ifndef _ASM_X86_E820_H
2 #define _ASM_X86_E820_H
5 #include <linux/numa.h>
6 #define E820_X_MAX (E820MAX + 3 * MAX_NUMNODES)
7 #else /* ! CONFIG_EFI */
8 #define E820_X_MAX E820MAX
10 #include <uapi/asm/e820.h>
12 /* see comment in arch/x86/kernel/e820.c */
13 extern struct e820map e820
;
14 extern struct e820map e820_saved
;
16 extern unsigned long pci_mem_start
;
17 extern int e820_any_mapped(u64 start
, u64 end
, unsigned type
);
18 extern int e820_all_mapped(u64 start
, u64 end
, unsigned type
);
19 extern void e820_add_region(u64 start
, u64 size
, int type
);
20 extern void e820_print_map(char *who
);
22 sanitize_e820_map(struct e820entry
*biosmap
, int max_nr_map
, u32
*pnr_map
);
23 extern u64
e820_update_range(u64 start
, u64 size
, unsigned old_type
,
25 extern u64
e820_remove_range(u64 start
, u64 size
, unsigned old_type
,
27 extern void update_e820(void);
28 extern void e820_setup_gap(void);
29 extern int e820_search_gap(unsigned long *gapstart
, unsigned long *gapsize
,
30 unsigned long start_addr
, unsigned long long end_addr
);
32 extern void parse_e820_ext(u64 phys_addr
, u32 data_len
);
34 #if defined(CONFIG_X86_64) || \
35 (defined(CONFIG_X86_32) && defined(CONFIG_HIBERNATION))
36 extern void e820_mark_nosave_regions(unsigned long limit_pfn
);
38 static inline void e820_mark_nosave_regions(unsigned long limit_pfn
)
44 extern void early_memtest(unsigned long start
, unsigned long end
);
46 static inline void early_memtest(unsigned long start
, unsigned long end
)
51 extern unsigned long e820_end_of_ram_pfn(void);
52 extern unsigned long e820_end_of_low_ram_pfn(void);
53 extern u64
early_reserve_e820(u64 sizet
, u64 align
);
55 void memblock_x86_fill(void);
56 void memblock_find_dma_reserve(void);
58 extern void finish_e820_parsing(void);
59 extern void e820_reserve_resources(void);
60 extern void e820_reserve_resources_late(void);
61 extern void setup_memory_map(void);
62 extern char *default_machine_specific_memory_setup(void);
65 * Returns true iff the specified range [s,e) is completely contained inside
68 static inline bool is_ISA_range(u64 s
, u64 e
)
70 return s
>= ISA_START_ADDRESS
&& e
<= ISA_END_ADDRESS
;
73 #endif /* __ASSEMBLY__ */
74 #include <linux/ioport.h>
76 #define HIGH_MEMORY (1024*1024)
77 #endif /* _ASM_X86_E820_H */