xref: /linux/drivers/gpu/drm/xe/xe_sriov_pf.h (revision ffe8ac927d935d7d4a0bd9ac94afd705df79982b)
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 dentry;
12 struct drm_printer;
13 struct xe_device;
14 
15 #ifdef CONFIG_PCI_IOV
16 bool xe_sriov_pf_readiness(struct xe_device *xe);
17 int xe_sriov_pf_init_early(struct xe_device *xe);
18 int xe_sriov_pf_wait_ready(struct xe_device *xe);
19 void xe_sriov_pf_debugfs_register(struct xe_device *xe, struct dentry *root);
20 void xe_sriov_pf_print_vfs_summary(struct xe_device *xe, struct drm_printer *p);
21 #else
xe_sriov_pf_readiness(struct xe_device * xe)22 static inline bool xe_sriov_pf_readiness(struct xe_device *xe)
23 {
24 	return false;
25 }
26 
xe_sriov_pf_init_early(struct xe_device * xe)27 static inline int xe_sriov_pf_init_early(struct xe_device *xe)
28 {
29 	return 0;
30 }
31 
xe_sriov_pf_debugfs_register(struct xe_device * xe,struct dentry * root)32 static inline void xe_sriov_pf_debugfs_register(struct xe_device *xe, struct dentry *root)
33 {
34 }
35 #endif
36 
37 #endif
38