162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
262306a36Sopenharmony_ci#ifndef _SPARC64_MM_INIT_H
362306a36Sopenharmony_ci#define _SPARC64_MM_INIT_H
462306a36Sopenharmony_ci
562306a36Sopenharmony_ci#include <asm/page.h>
662306a36Sopenharmony_ci
762306a36Sopenharmony_ci/* Most of the symbols in this file are defined in init.c and
862306a36Sopenharmony_ci * marked non-static so that assembler code can get at them.
962306a36Sopenharmony_ci */
1062306a36Sopenharmony_ci
1162306a36Sopenharmony_ci#define MAX_PHYS_ADDRESS	(1UL << MAX_PHYS_ADDRESS_BITS)
1262306a36Sopenharmony_ci
1362306a36Sopenharmony_ciextern unsigned long kern_linear_pte_xor[4];
1462306a36Sopenharmony_ciextern unsigned int sparc64_highest_unlocked_tlb_ent;
1562306a36Sopenharmony_ciextern unsigned long sparc64_kern_pri_context;
1662306a36Sopenharmony_ciextern unsigned long sparc64_kern_pri_nuc_bits;
1762306a36Sopenharmony_ciextern unsigned long sparc64_kern_sec_context;
1862306a36Sopenharmony_civoid mmu_info(struct seq_file *m);
1962306a36Sopenharmony_ci
2062306a36Sopenharmony_cistruct linux_prom_translation {
2162306a36Sopenharmony_ci	unsigned long virt;
2262306a36Sopenharmony_ci	unsigned long size;
2362306a36Sopenharmony_ci	unsigned long data;
2462306a36Sopenharmony_ci};
2562306a36Sopenharmony_ci
2662306a36Sopenharmony_ci/* Exported for kernel TLB miss handling in ktlb.S */
2762306a36Sopenharmony_ciextern struct linux_prom_translation prom_trans[512];
2862306a36Sopenharmony_ciextern unsigned int prom_trans_ents;
2962306a36Sopenharmony_ci
3062306a36Sopenharmony_ci/* Exported for SMP bootup purposes. */
3162306a36Sopenharmony_ciextern unsigned long kern_locked_tte_data;
3262306a36Sopenharmony_ci
3362306a36Sopenharmony_civoid prom_world(int enter);
3462306a36Sopenharmony_ci
3562306a36Sopenharmony_ci#endif /* _SPARC64_MM_INIT_H */
36