summaryrefslogtreecommitdiff
path: root/arch/s390/pci/pci_iov.h
diff options
context:
space:
mode:
authorMarc Zyngier <maz@kernel.org>2020-11-12 21:20:43 +0000
committerMarc Zyngier <maz@kernel.org>2020-11-12 21:20:43 +0000
commit4f6b838c378a52ea3ae0b15f12ca8a20849072fa (patch)
treefbd8c2346320f97eda221b9150d787f9006e8b35 /arch/s390/pci/pci_iov.h
parentc512298eed0360923d0cbc4a1f30bc0509af0d50 (diff)
parent3650b228f83adda7e5ee532e2b90429c03f7b9ec (diff)
Merge tag 'v5.10-rc1' into kvmarm-master/next
Linux 5.10-rc1 Signed-off-by: Marc Zyngier <maz@kernel.org>
Diffstat (limited to 'arch/s390/pci/pci_iov.h')
-rw-r--r--arch/s390/pci/pci_iov.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/arch/s390/pci/pci_iov.h b/arch/s390/pci/pci_iov.h
new file mode 100644
index 000000000000..b2c828003bad
--- /dev/null
+++ b/arch/s390/pci/pci_iov.h
@@ -0,0 +1,30 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+/*
+ * Copyright IBM Corp. 2020
+ *
+ * Author(s):
+ * Niklas Schnelle <schnelle@linux.ibm.com>
+ *
+ */
+
+#ifndef __S390_PCI_IOV_H
+#define __S390_PCI_IOV_H
+
+#ifdef CONFIG_PCI_IOV
+void zpci_iov_remove_virtfn(struct pci_dev *pdev, int vfn);
+
+void zpci_iov_map_resources(struct pci_dev *pdev);
+
+int zpci_iov_setup_virtfn(struct zpci_bus *zbus, struct pci_dev *virtfn, int vfn);
+
+#else /* CONFIG_PCI_IOV */
+static inline void zpci_iov_remove_virtfn(struct pci_dev *pdev, int vfn) {}
+
+static inline void zpci_iov_map_resources(struct pci_dev *pdev) {}
+
+static inline int zpci_iov_setup_virtfn(struct zpci_bus *zbus, struct pci_dev *virtfn, int vfn)
+{
+ return 0;
+}
+#endif /* CONFIG_PCI_IOV */
+#endif /* __S390_PCI_IOV_h */