Merge tag 'locking-urgent-2020-12-27' of git://git.kernel.org/pub/scm/linux/kernel...
[linux/fpc-iii.git] / arch / s390 / pci / pci_iov.h
blobb2c828003bad0a74559c374d8bc91e40c4a24ead
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3 * Copyright IBM Corp. 2020
5 * Author(s):
6 * Niklas Schnelle <schnelle@linux.ibm.com>
8 */
10 #ifndef __S390_PCI_IOV_H
11 #define __S390_PCI_IOV_H
13 #ifdef CONFIG_PCI_IOV
14 void zpci_iov_remove_virtfn(struct pci_dev *pdev, int vfn);
16 void zpci_iov_map_resources(struct pci_dev *pdev);
18 int zpci_iov_setup_virtfn(struct zpci_bus *zbus, struct pci_dev *virtfn, int vfn);
20 #else /* CONFIG_PCI_IOV */
21 static inline void zpci_iov_remove_virtfn(struct pci_dev *pdev, int vfn) {}
23 static inline void zpci_iov_map_resources(struct pci_dev *pdev) {}
25 static inline int zpci_iov_setup_virtfn(struct zpci_bus *zbus, struct pci_dev *virtfn, int vfn)
27 return 0;
29 #endif /* CONFIG_PCI_IOV */
30 #endif /* __S390_PCI_IOV_h */