Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-or-later */
0002 /*
0003  * Copyright 2014 IBM Corp.
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 /* _ASM_POWERPC_COPRO_H */