]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/blame - arch/powerpc/include/asm/copro.h
Merge tag 'firewire-update' of git://git.kernel.org/pub/scm/linux/kernel/git/ieee1394...
[mirror_ubuntu-focal-kernel.git] / arch / powerpc / include / asm / copro.h
CommitLineData
e83d0169
IM
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
50a7ca3c
SJ
13#include <linux/mm_types.h>
14
73d16a6e
IM
15struct copro_slb
16{
17 u64 esid, vsid;
18};
19
e83d0169 20int copro_handle_mm_fault(struct mm_struct *mm, unsigned long ea,
50a7ca3c 21 unsigned long dsisr, vm_fault_t *flt);
e83d0169 22
73d16a6e
IM
23int copro_calculate_slb(struct mm_struct *mm, u64 ea, struct copro_slb *slb);
24
be3ebfe8
IM
25
26#ifdef CONFIG_PPC_COPRO_BASE
27void copro_flush_all_slbs(struct mm_struct *mm);
28#else
29static inline void copro_flush_all_slbs(struct mm_struct *mm) {}
30#endif
e83d0169 31#endif /* _ASM_POWERPC_COPRO_H */