1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Copyright IBM Corp. 2020
6 * Niklas Schnelle <schnelle@linux.ibm.com>
10 #ifndef __S390_PCI_IOV_H
11 #define __S390_PCI_IOV_H
13 #include <linux/pci.h>
16 void zpci_iov_remove_virtfn(struct pci_dev
*pdev
, int vfn
);
18 void zpci_iov_map_resources(struct pci_dev
*pdev
);
20 int zpci_iov_setup_virtfn(struct zpci_bus
*zbus
, struct pci_dev
*virtfn
, int vfn
);
22 #else /* CONFIG_PCI_IOV */
23 static inline void zpci_iov_remove_virtfn(struct pci_dev
*pdev
, int vfn
) {}
25 static inline void zpci_iov_map_resources(struct pci_dev
*pdev
) {}
27 static inline int zpci_iov_setup_virtfn(struct zpci_bus
*zbus
, struct pci_dev
*virtfn
, int vfn
)
31 #endif /* CONFIG_PCI_IOV */
32 #endif /* __S390_PCI_IOV_h */