]>
Commit | Line | Data |
---|---|---|
1a472c9d AK |
1 | #ifndef _ASM_POWERPC_TLBFLUSH_RADIX_H |
2 | #define _ASM_POWERPC_TLBFLUSH_RADIX_H | |
3 | ||
4 | struct vm_area_struct; | |
5 | struct mm_struct; | |
6 | struct mmu_gather; | |
7 | ||
8 | static inline int mmu_get_ap(int psize) | |
9 | { | |
10 | return mmu_psize_defs[psize].ap; | |
11 | } | |
12 | ||
5491ae7b AK |
13 | extern void radix__flush_hugetlb_tlb_range(struct vm_area_struct *vma, |
14 | unsigned long start, unsigned long end); | |
8cb8140c AK |
15 | extern void radix__flush_tlb_range_psize(struct mm_struct *mm, unsigned long start, |
16 | unsigned long end, int psize); | |
d8e91e93 AK |
17 | extern void radix__flush_pmd_tlb_range(struct vm_area_struct *vma, |
18 | unsigned long start, unsigned long end); | |
1a472c9d AK |
19 | extern void radix__flush_tlb_range(struct vm_area_struct *vma, unsigned long start, |
20 | unsigned long end); | |
21 | extern void radix__flush_tlb_kernel_range(unsigned long start, unsigned long end); | |
22 | ||
23 | extern void radix__local_flush_tlb_mm(struct mm_struct *mm); | |
24 | extern void radix__local_flush_tlb_page(struct vm_area_struct *vma, unsigned long vmaddr); | |
a145abf1 | 25 | extern void radix__local_flush_tlb_pwc(struct mmu_gather *tlb, unsigned long addr); |
f22dfc91 | 26 | extern void radix__local_flush_tlb_page_psize(struct mm_struct *mm, unsigned long vmaddr, |
fbfa26d8 | 27 | int psize); |
1a472c9d AK |
28 | extern void radix__tlb_flush(struct mmu_gather *tlb); |
29 | #ifdef CONFIG_SMP | |
30 | extern void radix__flush_tlb_mm(struct mm_struct *mm); | |
31 | extern void radix__flush_tlb_page(struct vm_area_struct *vma, unsigned long vmaddr); | |
a145abf1 | 32 | extern void radix__flush_tlb_pwc(struct mmu_gather *tlb, unsigned long addr); |
f22dfc91 | 33 | extern void radix__flush_tlb_page_psize(struct mm_struct *mm, unsigned long vmaddr, |
fbfa26d8 | 34 | int psize); |
1a472c9d AK |
35 | #else |
36 | #define radix__flush_tlb_mm(mm) radix__local_flush_tlb_mm(mm) | |
37 | #define radix__flush_tlb_page(vma,addr) radix__local_flush_tlb_page(vma,addr) | |
f22dfc91 | 38 | #define radix__flush_tlb_page_psize(mm,addr,p) radix__local_flush_tlb_page_psize(mm,addr,p) |
a145abf1 | 39 | #define radix__flush_tlb_pwc(tlb, addr) radix__local_flush_tlb_pwc(tlb, addr) |
1a472c9d | 40 | #endif |
912cc87a AK |
41 | extern void radix__flush_tlb_lpid_va(unsigned long lpid, unsigned long gpa, |
42 | unsigned long page_size); | |
43 | extern void radix__flush_tlb_lpid(unsigned long lpid); | |
be34d300 | 44 | extern void radix__flush_tlb_all(void); |
1a472c9d | 45 | #endif |