Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 /*
0003  * Copyright IBM Corp. 2020
0004  *
0005  * Author(s):
0006  *   Niklas Schnelle <schnelle@linux.ibm.com>
0007  *
0008  */
0009 
0010 #ifndef __S390_PCI_IOV_H
0011 #define __S390_PCI_IOV_H
0012 
0013 #ifdef CONFIG_PCI_IOV
0014 void zpci_iov_remove_virtfn(struct pci_dev *pdev, int vfn);
0015 
0016 void zpci_iov_map_resources(struct pci_dev *pdev);
0017 
0018 int zpci_iov_setup_virtfn(struct zpci_bus *zbus, struct pci_dev *virtfn, int vfn);
0019 
0020 #else /* CONFIG_PCI_IOV */
0021 static inline void zpci_iov_remove_virtfn(struct pci_dev *pdev, int vfn) {}
0022 
0023 static inline void zpci_iov_map_resources(struct pci_dev *pdev) {}
0024 
0025 static inline int zpci_iov_setup_virtfn(struct zpci_bus *zbus, struct pci_dev *virtfn, int vfn)
0026 {
0027     return 0;
0028 }
0029 #endif /* CONFIG_PCI_IOV */
0030 #endif /* __S390_PCI_IOV_h */