Ian Munsie | e83d016 | 2014-10-08 19:54:50 +1100 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2014 IBM Corp. |
| 3 | * |
| 4 | * This program is free software; you can redistribute it and/or |
| 5 | * modify it under the terms of the GNU General Public License |
| 6 | * as published by the Free Software Foundation; either version |
| 7 | * 2 of the License, or (at your option) any later version. |
| 8 | */ |
| 9 | |
| 10 | #ifndef _ASM_POWERPC_COPRO_H |
| 11 | #define _ASM_POWERPC_COPRO_H |
| 12 | |
Ian Munsie | 73d16a6 | 2014-10-08 19:54:51 +1100 | [diff] [blame] | 13 | struct copro_slb |
| 14 | { |
| 15 | u64 esid, vsid; |
| 16 | }; |
| 17 | |
Ian Munsie | e83d016 | 2014-10-08 19:54:50 +1100 | [diff] [blame] | 18 | int copro_handle_mm_fault(struct mm_struct *mm, unsigned long ea, |
| 19 | unsigned long dsisr, unsigned *flt); |
| 20 | |
Ian Munsie | 73d16a6 | 2014-10-08 19:54:51 +1100 | [diff] [blame] | 21 | int copro_calculate_slb(struct mm_struct *mm, u64 ea, struct copro_slb *slb); |
| 22 | |
Ian Munsie | be3ebfe | 2014-10-08 19:54:52 +1100 | [diff] [blame] | 23 | |
| 24 | #ifdef CONFIG_PPC_COPRO_BASE |
| 25 | void copro_flush_all_slbs(struct mm_struct *mm); |
| 26 | #else |
| 27 | static inline void copro_flush_all_slbs(struct mm_struct *mm) {} |
| 28 | #endif |
Ian Munsie | e83d016 | 2014-10-08 19:54:50 +1100 | [diff] [blame] | 29 | #endif /* _ASM_POWERPC_COPRO_H */ |