18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
28c2ecf20Sopenharmony_ci#ifndef _SPARC64_MM_INIT_H
38c2ecf20Sopenharmony_ci#define _SPARC64_MM_INIT_H
48c2ecf20Sopenharmony_ci
58c2ecf20Sopenharmony_ci#include <asm/page.h>
68c2ecf20Sopenharmony_ci
78c2ecf20Sopenharmony_ci/* Most of the symbols in this file are defined in init.c and
88c2ecf20Sopenharmony_ci * marked non-static so that assembler code can get at them.
98c2ecf20Sopenharmony_ci */
108c2ecf20Sopenharmony_ci
118c2ecf20Sopenharmony_ci#define MAX_PHYS_ADDRESS	(1UL << MAX_PHYS_ADDRESS_BITS)
128c2ecf20Sopenharmony_ci
138c2ecf20Sopenharmony_ciextern unsigned long kern_linear_pte_xor[4];
148c2ecf20Sopenharmony_ciextern unsigned int sparc64_highest_unlocked_tlb_ent;
158c2ecf20Sopenharmony_ciextern unsigned long sparc64_kern_pri_context;
168c2ecf20Sopenharmony_ciextern unsigned long sparc64_kern_pri_nuc_bits;
178c2ecf20Sopenharmony_ciextern unsigned long sparc64_kern_sec_context;
188c2ecf20Sopenharmony_civoid mmu_info(struct seq_file *m);
198c2ecf20Sopenharmony_ci
208c2ecf20Sopenharmony_cistruct linux_prom_translation {
218c2ecf20Sopenharmony_ci	unsigned long virt;
228c2ecf20Sopenharmony_ci	unsigned long size;
238c2ecf20Sopenharmony_ci	unsigned long data;
248c2ecf20Sopenharmony_ci};
258c2ecf20Sopenharmony_ci
268c2ecf20Sopenharmony_ci/* Exported for kernel TLB miss handling in ktlb.S */
278c2ecf20Sopenharmony_ciextern struct linux_prom_translation prom_trans[512];
288c2ecf20Sopenharmony_ciextern unsigned int prom_trans_ents;
298c2ecf20Sopenharmony_ci
308c2ecf20Sopenharmony_ci/* Exported for SMP bootup purposes. */
318c2ecf20Sopenharmony_ciextern unsigned long kern_locked_tte_data;
328c2ecf20Sopenharmony_ci
338c2ecf20Sopenharmony_civoid prom_world(int enter);
348c2ecf20Sopenharmony_ci
358c2ecf20Sopenharmony_ci#endif /* _SPARC64_MM_INIT_H */
36