diff options
author | Gavin Shan <gwshan@linux.vnet.ibm.com> | 2015-03-26 16:42:08 +1100 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2015-05-12 20:33:35 +1000 |
commit | ec33d36e5ab5d52d59a8f696f7efb682bfc58494 (patch) | |
tree | 631d4367a6b9a0231962506744d5ffab9ca1e152 /arch/powerpc/include/asm/eeh.h | |
parent | ed3e81ff2016b180d8f439a1981f2c8b59b0b53c (diff) | |
download | talos-op-linux-ec33d36e5ab5d52d59a8f696f7efb682bfc58494.tar.gz talos-op-linux-ec33d36e5ab5d52d59a8f696f7efb682bfc58494.zip |
powerpc/eeh: Introduce eeh_pe_inject_err()
The patch defines PCI error types and functions in uapi/asm/eeh.h
and exports function eeh_pe_inject_err(), which will be called by
VFIO driver to inject the specified PCI error to the indicated
PE for testing purpose.
Signed-off-by: Gavin Shan <gwshan@linux.vnet.ibm.com>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/include/asm/eeh.h')
-rw-r--r-- | arch/powerpc/include/asm/eeh.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/eeh.h b/arch/powerpc/include/asm/eeh.h index 7fd7b5429e5a..c5eb86f3d452 100644 --- a/arch/powerpc/include/asm/eeh.h +++ b/arch/powerpc/include/asm/eeh.h @@ -291,6 +291,8 @@ int eeh_pe_set_option(struct eeh_pe *pe, int option); int eeh_pe_get_state(struct eeh_pe *pe); int eeh_pe_reset(struct eeh_pe *pe, int option); int eeh_pe_configure(struct eeh_pe *pe); +int eeh_pe_inject_err(struct eeh_pe *pe, int type, int func, + unsigned long addr, unsigned long mask); /** * EEH_POSSIBLE_ERROR() -- test for possible MMIO failure. |