18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 28c2ecf20Sopenharmony_ci#ifndef __X86_MM_INTERNAL_H 38c2ecf20Sopenharmony_ci#define __X86_MM_INTERNAL_H 48c2ecf20Sopenharmony_ci 58c2ecf20Sopenharmony_civoid *alloc_low_pages(unsigned int num); 68c2ecf20Sopenharmony_cistatic inline void *alloc_low_page(void) 78c2ecf20Sopenharmony_ci{ 88c2ecf20Sopenharmony_ci return alloc_low_pages(1); 98c2ecf20Sopenharmony_ci} 108c2ecf20Sopenharmony_ci 118c2ecf20Sopenharmony_civoid early_ioremap_page_table_range_init(void); 128c2ecf20Sopenharmony_ci 138c2ecf20Sopenharmony_ciunsigned long kernel_physical_mapping_init(unsigned long start, 148c2ecf20Sopenharmony_ci unsigned long end, 158c2ecf20Sopenharmony_ci unsigned long page_size_mask, 168c2ecf20Sopenharmony_ci pgprot_t prot); 178c2ecf20Sopenharmony_ciunsigned long kernel_physical_mapping_change(unsigned long start, 188c2ecf20Sopenharmony_ci unsigned long end, 198c2ecf20Sopenharmony_ci unsigned long page_size_mask); 208c2ecf20Sopenharmony_civoid zone_sizes_init(void); 218c2ecf20Sopenharmony_ci 228c2ecf20Sopenharmony_ciextern int after_bootmem; 238c2ecf20Sopenharmony_ci 248c2ecf20Sopenharmony_civoid update_cache_mode_entry(unsigned entry, enum page_cache_mode cache); 258c2ecf20Sopenharmony_ci 268c2ecf20Sopenharmony_ciextern unsigned long tlb_single_page_flush_ceiling; 278c2ecf20Sopenharmony_ci 288c2ecf20Sopenharmony_ci#endif /* __X86_MM_INTERNAL_H */ 29