summaryrefslogtreecommitdiffstats
path: root/arch/s390/include/asm/pci.h
diff options
context:
space:
mode:
authorMartin Schwidefsky <schwidefsky@de.ibm.com>2016-07-18 14:05:21 +0200
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2016-08-24 09:23:56 +0200
commitbd3a172557d6685f5fbd4b09713f74b84872e2b9 (patch)
tree92adc43266a1f53cfc70114ddbd89652bb582724 /arch/s390/include/asm/pci.h
parent6c29588578edc9ae2c9fae27ff96f443cf39c0f3 (diff)
downloadlinux-stable-bd3a172557d6685f5fbd4b09713f74b84872e2b9.tar.gz
linux-stable-bd3a172557d6685f5fbd4b09713f74b84872e2b9.tar.bz2
linux-stable-bd3a172557d6685f5fbd4b09713f74b84872e2b9.zip
s390/pci: add zpci_report_error interface
The 'report_error' interface for PCI devices found on s390 can be used by a user space program to inject an adapter error notification. Add a new kernel interface zpci_report_error to allow a PCI device driver to inject these error notifications without a detour over user space. Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390/include/asm/pci.h')
-rw-r--r--arch/s390/include/asm/pci.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/s390/include/asm/pci.h b/arch/s390/include/asm/pci.h
index 0da91c4d30fd..8769cbf9d7cf 100644
--- a/arch/s390/include/asm/pci.h
+++ b/arch/s390/include/asm/pci.h
@@ -11,6 +11,7 @@
#include <asm-generic/pci.h>
#include <asm/pci_clp.h>
#include <asm/pci_debug.h>
+#include <asm/sclp.h>
#define PCIBIOS_MIN_IO 0x1000
#define PCIBIOS_MIN_MEM 0x10000000
@@ -216,6 +217,9 @@ void zpci_debug_init_device(struct zpci_dev *, const char *);
void zpci_debug_exit_device(struct zpci_dev *);
void zpci_debug_info(struct zpci_dev *, struct seq_file *);
+/* Error reporting */
+int zpci_report_error(struct pci_dev *, struct zpci_report_error_header *);
+
#ifdef CONFIG_NUMA
/* Returns the node based on PCI bus */