summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/xe/xe_pci_sriov.h
blob: c76dd0d90495e79234f1f8f7ace129998a79a5d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* 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);
#else
static inline int xe_pci_sriov_configure(struct pci_dev *pdev, int num_vfs)
{
	return 0;
}
#endif

#endif