xref: /linux/arch/powerpc/include/asm/book3s/64/tlbflush-radix.h (revision 0883c2c06fb5bcf5b9e008270827e63c09a88c1e)
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 
13 extern void radix__flush_tlb_range(struct vm_area_struct *vma, unsigned long start,
14 			    unsigned long end);
15 extern void radix__flush_tlb_kernel_range(unsigned long start, unsigned long end);
16 
17 extern void radix__local_flush_tlb_mm(struct mm_struct *mm);
18 extern void radix__local_flush_tlb_page(struct vm_area_struct *vma, unsigned long vmaddr);
19 extern void radix___local_flush_tlb_page(struct mm_struct *mm, unsigned long vmaddr,
20 				    unsigned long ap, int nid);
21 extern void radix__tlb_flush(struct mmu_gather *tlb);
22 #ifdef CONFIG_SMP
23 extern void radix__flush_tlb_mm(struct mm_struct *mm);
24 extern void radix__flush_tlb_page(struct vm_area_struct *vma, unsigned long vmaddr);
25 extern void radix___flush_tlb_page(struct mm_struct *mm, unsigned long vmaddr,
26 			      unsigned long ap, int nid);
27 #else
28 #define radix__flush_tlb_mm(mm)		radix__local_flush_tlb_mm(mm)
29 #define radix__flush_tlb_page(vma,addr)	radix__local_flush_tlb_page(vma,addr)
30 #define radix___flush_tlb_page(mm,addr,p,i)	radix___local_flush_tlb_page(mm,addr,p,i)
31 #endif
32 
33 #endif
34