1 /* SPDX-License-Identifier: MIT */ 2 /* 3 * Copyright © 2023-2024 Intel Corporation 4 */ 5 6 #ifndef _XE_PCI_SRIOV_H_ 7 #define _XE_PCI_SRIOV_H_ 8 9 struct pci_dev; 10 11 #ifdef CONFIG_PCI_IOV 12 int xe_pci_sriov_configure(struct pci_dev *pdev, int num_vfs); 13 struct pci_dev *xe_pci_sriov_get_vf_pdev(struct pci_dev *pdev, unsigned int vfid); 14 #else 15 static inline int xe_pci_sriov_configure(struct pci_dev *pdev, int num_vfs) 16 { 17 return 0; 18 } 19 #endif 20 21 #endif 22