xref: /linux/drivers/gpu/drm/xe/xe_gt_sriov_pf_policy_types.h (revision db5d28c0bfe566908719bec8e25443aabecbb802)
1 /* SPDX-License-Identifier: MIT */
2 /*
3  * Copyright © 2023-2024 Intel Corporation
4  */
5 
6 #ifndef _XE_GT_SRIOV_PF_POLICY_TYPES_H_
7 #define _XE_GT_SRIOV_PF_POLICY_TYPES_H_
8 
9 #include <linux/types.h>
10 
11 /**
12  * struct xe_gt_sriov_guc_policies - GuC SR-IOV policies.
13  * @sched_if_idle: controls strict scheduling policy.
14  * @reset_engine: controls engines reset on VF switch policy.
15  * @sample_period: adverse events sampling period (in milliseconds).
16  */
17 struct xe_gt_sriov_guc_policies {
18 	bool sched_if_idle;
19 	bool reset_engine;
20 	u32 sample_period;
21 };
22 
23 /**
24  * struct xe_gt_sriov_pf_policy - PF policy data.
25  * @guc: GuC scheduling policies.
26  */
27 struct xe_gt_sriov_pf_policy {
28 	struct xe_gt_sriov_guc_policies guc;
29 };
30 
31 #endif
32