FILE
xe_pci_sriov.h
File preview with syntax highlighting.
linux-6.19.14/drivers/gpu/drm/xe/xe_pci_sriov.h
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 9struct pci_dev; 10 11#ifdef CONFIG_PCI_IOV 12int xe_pci_sriov_configure(struct pci_dev *pdev, int num_vfs); 13struct pci_dev *xe_pci_sriov_get_vf_pdev(struct pci_dev *pdev, unsigned int vfid); 14#else 15static inline int xe_pci_sriov_configure(struct pci_dev *pdev, int num_vfs) 16{ 17 return 0; 18} 19#endif 20 21#endif
~/
Read-only file preview.