blob: d920a75b5f14143da8fb3b494ede77210b2291b0 [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001/* SPDX-License-Identifier: GPL-2.0 */
David S. Milleraf1ee562008-09-12 00:19:21 -07002#ifndef _SPARC64_MM_INIT_H
3#define _SPARC64_MM_INIT_H
4
David S. Millerbb7b4352013-09-18 15:39:06 -07005#include <asm/page.h>
6
David S. Milleraf1ee562008-09-12 00:19:21 -07007/* Most of the symbols in this file are defined in init.c and
8 * marked non-static so that assembler code can get at them.
9 */
10
David S. Millerbb7b4352013-09-18 15:39:06 -070011#define MAX_PHYS_ADDRESS (1UL << MAX_PHYS_ADDRESS_BITS)
David S. Milleraf1ee562008-09-12 00:19:21 -070012
David S. Miller4f93d212012-09-06 18:13:58 -070013extern unsigned long kern_linear_pte_xor[4];
David S. Milleraf1ee562008-09-12 00:19:21 -070014extern unsigned int sparc64_highest_unlocked_tlb_ent;
15extern unsigned long sparc64_kern_pri_context;
16extern unsigned long sparc64_kern_pri_nuc_bits;
17extern unsigned long sparc64_kern_sec_context;
Sam Ravnborg2e74a742014-05-16 23:25:51 +020018void mmu_info(struct seq_file *m);
David S. Milleraf1ee562008-09-12 00:19:21 -070019
20struct linux_prom_translation {
21 unsigned long virt;
22 unsigned long size;
23 unsigned long data;
24};
25
26/* Exported for kernel TLB miss handling in ktlb.S */
27extern struct linux_prom_translation prom_trans[512];
28extern unsigned int prom_trans_ents;
29
30/* Exported for SMP bootup purposes. */
31extern unsigned long kern_locked_tte_data;
32
Sam Ravnborg2e74a742014-05-16 23:25:51 +020033void prom_world(int enter);
David S. Milleraf1ee562008-09-12 00:19:21 -070034
David S. Milleraf1ee562008-09-12 00:19:21 -070035#endif /* _SPARC64_MM_INIT_H */