summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/xe/xe_gt_sriov_pf_policy_types.h
blob: 4de532af135e630a5ac90c4d741d51bb11141fb1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/* SPDX-License-Identifier: MIT */
/*
 * Copyright © 2023-2024 Intel Corporation
 */

#ifndef _XE_GT_SRIOV_PF_POLICY_TYPES_H_
#define _XE_GT_SRIOV_PF_POLICY_TYPES_H_

#include <linux/types.h>

/**
 * struct xe_gt_sriov_guc_policies - GuC SR-IOV policies.
 * @sched_if_idle: controls strict scheduling policy.
 * @reset_engine: controls engines reset on VF switch policy.
 * @sample_period: adverse events sampling period (in milliseconds).
 */
struct xe_gt_sriov_guc_policies {
	bool sched_if_idle;
	bool reset_engine;
	u32 sample_period;
};

/**
 * struct xe_gt_sriov_pf_policy - PF policy data.
 * @guc: GuC scheduling policies.
 */
struct xe_gt_sriov_pf_policy {
	struct xe_gt_sriov_guc_policies guc;
};

#endif