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