xref: /linux/drivers/gpu/drm/xe/xe_gt_sriov_pf_policy.h (revision db5d28c0bfe566908719bec8e25443aabecbb802)
1 /* SPDX-License-Identifier: MIT */
2 /*
3  * Copyright © 2023-2024 Intel Corporation
4  */
5 
6 #ifndef _XE_GT_SRIOV_PF_POLICY_H_
7 #define _XE_GT_SRIOV_PF_POLICY_H_
8 
9 #include <linux/types.h>
10 
11 struct drm_printer;
12 struct xe_gt;
13 
14 int xe_gt_sriov_pf_policy_set_sched_if_idle(struct xe_gt *gt, bool enable);
15 bool xe_gt_sriov_pf_policy_get_sched_if_idle(struct xe_gt *gt);
16 int xe_gt_sriov_pf_policy_set_reset_engine(struct xe_gt *gt, bool enable);
17 bool xe_gt_sriov_pf_policy_get_reset_engine(struct xe_gt *gt);
18 int xe_gt_sriov_pf_policy_set_sample_period(struct xe_gt *gt, u32 value);
19 u32 xe_gt_sriov_pf_policy_get_sample_period(struct xe_gt *gt);
20 
21 void xe_gt_sriov_pf_policy_sanitize(struct xe_gt *gt);
22 int xe_gt_sriov_pf_policy_reprovision(struct xe_gt *gt, bool reset);
23 int xe_gt_sriov_pf_policy_print(struct xe_gt *gt, struct drm_printer *p);
24 
25 #endif
26