18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * Copyright IBM Corp. 2020
48c2ecf20Sopenharmony_ci *
58c2ecf20Sopenharmony_ci * Author(s):
68c2ecf20Sopenharmony_ci *   Niklas Schnelle <schnelle@linux.ibm.com>
78c2ecf20Sopenharmony_ci *
88c2ecf20Sopenharmony_ci */
98c2ecf20Sopenharmony_ci
108c2ecf20Sopenharmony_ci#ifndef __S390_PCI_IOV_H
118c2ecf20Sopenharmony_ci#define __S390_PCI_IOV_H
128c2ecf20Sopenharmony_ci
138c2ecf20Sopenharmony_ci#ifdef CONFIG_PCI_IOV
148c2ecf20Sopenharmony_civoid zpci_iov_remove_virtfn(struct pci_dev *pdev, int vfn);
158c2ecf20Sopenharmony_ci
168c2ecf20Sopenharmony_civoid zpci_iov_map_resources(struct pci_dev *pdev);
178c2ecf20Sopenharmony_ci
188c2ecf20Sopenharmony_ciint zpci_iov_setup_virtfn(struct zpci_bus *zbus, struct pci_dev *virtfn, int vfn);
198c2ecf20Sopenharmony_ci
208c2ecf20Sopenharmony_ci#else /* CONFIG_PCI_IOV */
218c2ecf20Sopenharmony_cistatic inline void zpci_iov_remove_virtfn(struct pci_dev *pdev, int vfn) {}
228c2ecf20Sopenharmony_ci
238c2ecf20Sopenharmony_cistatic inline void zpci_iov_map_resources(struct pci_dev *pdev) {}
248c2ecf20Sopenharmony_ci
258c2ecf20Sopenharmony_cistatic inline int zpci_iov_setup_virtfn(struct zpci_bus *zbus, struct pci_dev *virtfn, int vfn)
268c2ecf20Sopenharmony_ci{
278c2ecf20Sopenharmony_ci	return 0;
288c2ecf20Sopenharmony_ci}
298c2ecf20Sopenharmony_ci#endif /* CONFIG_PCI_IOV */
308c2ecf20Sopenharmony_ci#endif /* __S390_PCI_IOV_h */
31