0001
0002
0003
0004
0005
0006 #ifndef _ASM_POWERPC_COPRO_H
0007 #define _ASM_POWERPC_COPRO_H
0008
0009 #include <linux/mm_types.h>
0010
0011 struct copro_slb
0012 {
0013 u64 esid, vsid;
0014 };
0015
0016 int copro_handle_mm_fault(struct mm_struct *mm, unsigned long ea,
0017 unsigned long dsisr, vm_fault_t *flt);
0018
0019 int copro_calculate_slb(struct mm_struct *mm, u64 ea, struct copro_slb *slb);
0020
0021
0022 #ifdef CONFIG_PPC_COPRO_BASE
0023 void copro_flush_all_slbs(struct mm_struct *mm);
0024 #else
0025 static inline void copro_flush_all_slbs(struct mm_struct *mm) {}
0026 #endif
0027 #endif