pci_iov.h 752 B

123456789101112131415161718192021222324252627282930
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /*
  3. * Copyright IBM Corp. 2020
  4. *
  5. * Author(s):
  6. * Niklas Schnelle <[email protected]>
  7. *
  8. */
  9. #ifndef __S390_PCI_IOV_H
  10. #define __S390_PCI_IOV_H
  11. #ifdef CONFIG_PCI_IOV
  12. void zpci_iov_remove_virtfn(struct pci_dev *pdev, int vfn);
  13. void zpci_iov_map_resources(struct pci_dev *pdev);
  14. int zpci_iov_setup_virtfn(struct zpci_bus *zbus, struct pci_dev *virtfn, int vfn);
  15. #else /* CONFIG_PCI_IOV */
  16. static inline void zpci_iov_remove_virtfn(struct pci_dev *pdev, int vfn) {}
  17. static inline void zpci_iov_map_resources(struct pci_dev *pdev) {}
  18. static inline int zpci_iov_setup_virtfn(struct zpci_bus *zbus, struct pci_dev *virtfn, int vfn)
  19. {
  20. return 0;
  21. }
  22. #endif /* CONFIG_PCI_IOV */
  23. #endif /* __S390_PCI_IOV_h */