blob: 4e1f6e1b8159e7ddc78d46c8ebb6a4e8d05f4964 [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001/* SPDX-License-Identifier: GPL-2.0 */
Yinghai Lu5c51bdb2012-11-16 19:39:01 -08002#ifndef __X86_MM_INTERNAL_H
3#define __X86_MM_INTERNAL_H
4
Yinghai Lu22c8ca22012-11-16 19:39:04 -08005void *alloc_low_pages(unsigned int num);
6static inline void *alloc_low_page(void)
7{
8 return alloc_low_pages(1);
9}
Yinghai Lu5c51bdb2012-11-16 19:39:01 -080010
Yinghai Luc8dcdb92012-11-16 19:39:10 -080011void early_ioremap_page_table_range_init(void);
12
13unsigned long kernel_physical_mapping_init(unsigned long start,
14 unsigned long end,
15 unsigned long page_size_mask);
16void zone_sizes_init(void);
17
Yinghai Lu60a8f422012-11-16 19:39:17 -080018extern int after_bootmem;
19
Juergen Grossbd809af2014-11-03 14:02:03 +010020void update_cache_mode_entry(unsigned entry, enum page_cache_mode cache);
21
Yinghai Lu5c51bdb2012-11-16 19:39:01 -080022#endif /* __X86_MM_INTERNAL_H */