]>
Commit | Line | Data |
---|---|---|
2874c5fd | 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ |
e83d0169 IM |
2 | /* |
3 | * Copyright 2014 IBM Corp. | |
e83d0169 IM |
4 | */ |
5 | ||
6 | #ifndef _ASM_POWERPC_COPRO_H | |
7 | #define _ASM_POWERPC_COPRO_H | |
8 | ||
50a7ca3c SJ |
9 | #include <linux/mm_types.h> |
10 | ||
73d16a6e IM |
11 | struct copro_slb |
12 | { | |
13 | u64 esid, vsid; | |
14 | }; | |
15 | ||
e83d0169 | 16 | int copro_handle_mm_fault(struct mm_struct *mm, unsigned long ea, |
50a7ca3c | 17 | unsigned long dsisr, vm_fault_t *flt); |
e83d0169 | 18 | |
73d16a6e IM |
19 | int copro_calculate_slb(struct mm_struct *mm, u64 ea, struct copro_slb *slb); |
20 | ||
be3ebfe8 IM |
21 | |
22 | #ifdef CONFIG_PPC_COPRO_BASE | |
23 | void copro_flush_all_slbs(struct mm_struct *mm); | |
24 | #else | |
25 | static inline void copro_flush_all_slbs(struct mm_struct *mm) {} | |
26 | #endif | |
e83d0169 | 27 | #endif /* _ASM_POWERPC_COPRO_H */ |