blob: a4c09603b05c09d8f1478d68004398e4ef4dbc1d [file] [log] [blame]
David S. Milleraf1ee562008-09-12 00:19:21 -07001#ifndef _SPARC64_MM_INIT_H
2#define _SPARC64_MM_INIT_H
3
David S. Millerbb7b4352013-09-18 15:39:06 -07004#include <asm/page.h>
5
David S. Milleraf1ee562008-09-12 00:19:21 -07006/* Most of the symbols in this file are defined in init.c and
7 * marked non-static so that assembler code can get at them.
8 */
9
David S. Millerbb7b4352013-09-18 15:39:06 -070010#define MAX_PHYS_ADDRESS (1UL << MAX_PHYS_ADDRESS_BITS)
David S. Milleraf1ee562008-09-12 00:19:21 -070011
David S. Miller4f93d212012-09-06 18:13:58 -070012extern unsigned long kern_linear_pte_xor[4];
David S. Milleraf1ee562008-09-12 00:19:21 -070013extern unsigned int sparc64_highest_unlocked_tlb_ent;
14extern unsigned long sparc64_kern_pri_context;
15extern unsigned long sparc64_kern_pri_nuc_bits;
16extern unsigned long sparc64_kern_sec_context;
Sam Ravnborg2e74a742014-05-16 23:25:51 +020017void mmu_info(struct seq_file *m);
David S. Milleraf1ee562008-09-12 00:19:21 -070018
19struct linux_prom_translation {
20 unsigned long virt;
21 unsigned long size;
22 unsigned long data;
23};
24
25/* Exported for kernel TLB miss handling in ktlb.S */
26extern struct linux_prom_translation prom_trans[512];
27extern unsigned int prom_trans_ents;
28
29/* Exported for SMP bootup purposes. */
30extern unsigned long kern_locked_tte_data;
31
Sam Ravnborg2e74a742014-05-16 23:25:51 +020032void prom_world(int enter);
David S. Milleraf1ee562008-09-12 00:19:21 -070033
David S. Milleraf1ee562008-09-12 00:19:21 -070034#endif /* _SPARC64_MM_INIT_H */