]> Git Repo - linux.git/blob - drivers/gpu/drm/xe/xe_sriov_pf.h
Linux 6.14-rc3
[linux.git] / drivers / gpu / drm / xe / xe_sriov_pf.h
1 /* SPDX-License-Identifier: MIT */
2 /*
3  * Copyright © 2023-2024 Intel Corporation
4  */
5
6 #ifndef _XE_SRIOV_PF_H_
7 #define _XE_SRIOV_PF_H_
8
9 #include <linux/types.h>
10
11 struct drm_printer;
12 struct xe_device;
13
14 #ifdef CONFIG_PCI_IOV
15 bool xe_sriov_pf_readiness(struct xe_device *xe);
16 int xe_sriov_pf_init_early(struct xe_device *xe);
17 void xe_sriov_pf_print_vfs_summary(struct xe_device *xe, struct drm_printer *p);
18 #else
19 static inline bool xe_sriov_pf_readiness(struct xe_device *xe)
20 {
21         return false;
22 }
23
24 static inline int xe_sriov_pf_init_early(struct xe_device *xe)
25 {
26         return 0;
27 }
28 #endif
29
30 #endif
This page took 0.033447 seconds and 4 git commands to generate.