mirror of
https://github.com/torvalds/linux.git
synced 2026-05-03 22:12:32 -04:00
In the upcoming patch we would like to use this private helper during preparation of the sysfs links. Promote it. Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com> Reviewed-by: Piotr Piórkowski <piotr.piorkowski@intel.com> Link: https://patch.msgid.link/20251030222348.186658-15-michal.wajdeczko@intel.com
22 lines
435 B
C
22 lines
435 B
C
/* SPDX-License-Identifier: MIT */
|
|
/*
|
|
* Copyright © 2023-2024 Intel Corporation
|
|
*/
|
|
|
|
#ifndef _XE_PCI_SRIOV_H_
|
|
#define _XE_PCI_SRIOV_H_
|
|
|
|
struct pci_dev;
|
|
|
|
#ifdef CONFIG_PCI_IOV
|
|
int xe_pci_sriov_configure(struct pci_dev *pdev, int num_vfs);
|
|
struct pci_dev *xe_pci_sriov_get_vf_pdev(struct pci_dev *pdev, unsigned int vfid);
|
|
#else
|
|
static inline int xe_pci_sriov_configure(struct pci_dev *pdev, int num_vfs)
|
|
{
|
|
return 0;
|
|
}
|
|
#endif
|
|
|
|
#endif
|