copro.h 593 B

123456789101112131415161718192021222324252627
  1. /* SPDX-License-Identifier: GPL-2.0-or-later */
  2. /*
  3. * Copyright 2014 IBM Corp.
  4. */
  5. #ifndef _ASM_POWERPC_COPRO_H
  6. #define _ASM_POWERPC_COPRO_H
  7. #include <linux/mm_types.h>
  8. struct copro_slb
  9. {
  10. u64 esid, vsid;
  11. };
  12. int copro_handle_mm_fault(struct mm_struct *mm, unsigned long ea,
  13. unsigned long dsisr, vm_fault_t *flt);
  14. int copro_calculate_slb(struct mm_struct *mm, u64 ea, struct copro_slb *slb);
  15. #ifdef CONFIG_PPC_COPRO_BASE
  16. void copro_flush_all_slbs(struct mm_struct *mm);
  17. #else
  18. static inline void copro_flush_all_slbs(struct mm_struct *mm) {}
  19. #endif
  20. #endif /* _ASM_POWERPC_COPRO_H */