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__local_flush_tlb_pwc(struct mmu_gather *tlb, unsigned long addr);
22 extern void radix__tlb_flush(struct mmu_gather *tlb);
23 #ifdef CONFIG_SMP
24 extern void radix__flush_tlb_mm(struct mm_struct *mm);
25 extern void radix__flush_tlb_page(struct vm_area_struct *vma, unsigned long vmaddr);
26 extern void radix___flush_tlb_page(struct mm_struct *mm, unsigned long vmaddr,
27 			      unsigned long ap, int nid);
28 extern void radix__flush_tlb_pwc(struct mmu_gather *tlb, unsigned long addr);
29 #else
30 #define radix__flush_tlb_mm(mm)		radix__local_flush_tlb_mm(mm)
31 #define radix__flush_tlb_page(vma,addr)	radix__local_flush_tlb_page(vma,addr)
32 #define radix___flush_tlb_page(mm,addr,p,i)	radix___local_flush_tlb_page(mm,addr,p,i)
33 #define radix__flush_tlb_pwc(tlb, addr)	radix__local_flush_tlb_pwc(tlb, addr)
34 #endif
35 
36 #endif
37