forked from Qortal/Brooklyn
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
752 B
30 lines
752 B
/* SPDX-License-Identifier: GPL-2.0 */ |
|
/* |
|
* Copyright IBM Corp. 2020 |
|
* |
|
* Author(s): |
|
* Niklas Schnelle <[email protected]> |
|
* |
|
*/ |
|
|
|
#ifndef __S390_PCI_IOV_H |
|
#define __S390_PCI_IOV_H |
|
|
|
#ifdef CONFIG_PCI_IOV |
|
void zpci_iov_remove_virtfn(struct pci_dev *pdev, int vfn); |
|
|
|
void zpci_iov_map_resources(struct pci_dev *pdev); |
|
|
|
int zpci_iov_setup_virtfn(struct zpci_bus *zbus, struct pci_dev *virtfn, int vfn); |
|
|
|
#else /* CONFIG_PCI_IOV */ |
|
static inline void zpci_iov_remove_virtfn(struct pci_dev *pdev, int vfn) {} |
|
|
|
static inline void zpci_iov_map_resources(struct pci_dev *pdev) {} |
|
|
|
static inline int zpci_iov_setup_virtfn(struct zpci_bus *zbus, struct pci_dev *virtfn, int vfn) |
|
{ |
|
return 0; |
|
} |
|
#endif /* CONFIG_PCI_IOV */ |
|
#endif /* __S390_PCI_IOV_h */
|
|
|