162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
262306a36Sopenharmony_ci#ifndef __X86_MM_INTERNAL_H
362306a36Sopenharmony_ci#define __X86_MM_INTERNAL_H
462306a36Sopenharmony_ci
562306a36Sopenharmony_civoid *alloc_low_pages(unsigned int num);
662306a36Sopenharmony_cistatic inline void *alloc_low_page(void)
762306a36Sopenharmony_ci{
862306a36Sopenharmony_ci	return alloc_low_pages(1);
962306a36Sopenharmony_ci}
1062306a36Sopenharmony_ci
1162306a36Sopenharmony_civoid early_ioremap_page_table_range_init(void);
1262306a36Sopenharmony_ci
1362306a36Sopenharmony_ciunsigned long kernel_physical_mapping_init(unsigned long start,
1462306a36Sopenharmony_ci					     unsigned long end,
1562306a36Sopenharmony_ci					     unsigned long page_size_mask,
1662306a36Sopenharmony_ci					     pgprot_t prot);
1762306a36Sopenharmony_ciunsigned long kernel_physical_mapping_change(unsigned long start,
1862306a36Sopenharmony_ci					     unsigned long end,
1962306a36Sopenharmony_ci					     unsigned long page_size_mask);
2062306a36Sopenharmony_civoid zone_sizes_init(void);
2162306a36Sopenharmony_ci
2262306a36Sopenharmony_ciextern int after_bootmem;
2362306a36Sopenharmony_ci
2462306a36Sopenharmony_civoid update_cache_mode_entry(unsigned entry, enum page_cache_mode cache);
2562306a36Sopenharmony_ci
2662306a36Sopenharmony_ciextern unsigned long tlb_single_page_flush_ceiling;
2762306a36Sopenharmony_ci
2862306a36Sopenharmony_ci#endif	/* __X86_MM_INTERNAL_H */
29