xref: /linux/drivers/gpu/drm/xe/xe_gt_sriov_pf.h (revision 7ee983c850b40043ac4751836fbd9a2b4d0c5937)
1 /* SPDX-License-Identifier: MIT */
2 /*
3  * Copyright © 2023-2024 Intel Corporation
4  */
5 
6 #ifndef _XE_GT_SRIOV_PF_H_
7 #define _XE_GT_SRIOV_PF_H_
8 
9 struct xe_gt;
10 
11 #ifdef CONFIG_PCI_IOV
12 int xe_gt_sriov_pf_init_early(struct xe_gt *gt);
13 int xe_gt_sriov_pf_init(struct xe_gt *gt);
14 void xe_gt_sriov_pf_init_hw(struct xe_gt *gt);
15 void xe_gt_sriov_pf_sanitize_hw(struct xe_gt *gt, unsigned int vfid);
16 void xe_gt_sriov_pf_restart(struct xe_gt *gt);
17 #else
xe_gt_sriov_pf_init_early(struct xe_gt * gt)18 static inline int xe_gt_sriov_pf_init_early(struct xe_gt *gt)
19 {
20 	return 0;
21 }
22 
xe_gt_sriov_pf_init(struct xe_gt * gt)23 static inline int xe_gt_sriov_pf_init(struct xe_gt *gt)
24 {
25 	return 0;
26 }
27 
xe_gt_sriov_pf_init_hw(struct xe_gt * gt)28 static inline void xe_gt_sriov_pf_init_hw(struct xe_gt *gt)
29 {
30 }
31 
xe_gt_sriov_pf_restart(struct xe_gt * gt)32 static inline void xe_gt_sriov_pf_restart(struct xe_gt *gt)
33 {
34 }
35 #endif
36 
37 #endif
38