David S. Miller | af1ee56 | 2008-09-12 00:19:21 -0700 | [diff] [blame] | 1 | #ifndef _SPARC64_MM_INIT_H |
| 2 | #define _SPARC64_MM_INIT_H |
| 3 | |
David S. Miller | bb7b435 | 2013-09-18 15:39:06 -0700 | [diff] [blame] | 4 | #include <asm/page.h> |
| 5 | |
David S. Miller | af1ee56 | 2008-09-12 00:19:21 -0700 | [diff] [blame] | 6 | /* 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. Miller | bb7b435 | 2013-09-18 15:39:06 -0700 | [diff] [blame] | 10 | #define MAX_PHYS_ADDRESS (1UL << MAX_PHYS_ADDRESS_BITS) |
David S. Miller | af1ee56 | 2008-09-12 00:19:21 -0700 | [diff] [blame] | 11 | |
David S. Miller | 4f93d21 | 2012-09-06 18:13:58 -0700 | [diff] [blame] | 12 | extern unsigned long kern_linear_pte_xor[4]; |
David S. Miller | af1ee56 | 2008-09-12 00:19:21 -0700 | [diff] [blame] | 13 | extern unsigned int sparc64_highest_unlocked_tlb_ent; |
| 14 | extern unsigned long sparc64_kern_pri_context; |
| 15 | extern unsigned long sparc64_kern_pri_nuc_bits; |
| 16 | extern unsigned long sparc64_kern_sec_context; |
Sam Ravnborg | 2e74a74 | 2014-05-16 23:25:51 +0200 | [diff] [blame] | 17 | void mmu_info(struct seq_file *m); |
David S. Miller | af1ee56 | 2008-09-12 00:19:21 -0700 | [diff] [blame] | 18 | |
| 19 | struct 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 */ |
| 26 | extern struct linux_prom_translation prom_trans[512]; |
| 27 | extern unsigned int prom_trans_ents; |
| 28 | |
| 29 | /* Exported for SMP bootup purposes. */ |
| 30 | extern unsigned long kern_locked_tte_data; |
| 31 | |
Sam Ravnborg | 2e74a74 | 2014-05-16 23:25:51 +0200 | [diff] [blame] | 32 | void prom_world(int enter); |
David S. Miller | af1ee56 | 2008-09-12 00:19:21 -0700 | [diff] [blame] | 33 | |
David S. Miller | af1ee56 | 2008-09-12 00:19:21 -0700 | [diff] [blame] | 34 | #endif /* _SPARC64_MM_INIT_H */ |