xref: /linux/drivers/gpu/drm/xe/xe_gt_sriov_vf.h (revision 9557b4376d02088a33e5f4116bcc324d35a3b64c)
1 /* SPDX-License-Identifier: MIT */
2 /*
3  * Copyright © 2023-2024 Intel Corporation
4  */
5 
6 #ifndef _XE_GT_SRIOV_VF_H_
7 #define _XE_GT_SRIOV_VF_H_
8 
9 #include <linux/types.h>
10 
11 struct drm_printer;
12 struct xe_gt;
13 struct xe_reg;
14 
15 int xe_gt_sriov_vf_bootstrap(struct xe_gt *gt);
16 int xe_gt_sriov_vf_query_config(struct xe_gt *gt);
17 int xe_gt_sriov_vf_connect(struct xe_gt *gt);
18 int xe_gt_sriov_vf_query_runtime(struct xe_gt *gt);
19 int xe_gt_sriov_vf_prepare_ggtt(struct xe_gt *gt);
20 
21 u32 xe_gt_sriov_vf_gmdid(struct xe_gt *gt);
22 u16 xe_gt_sriov_vf_guc_ids(struct xe_gt *gt);
23 u64 xe_gt_sriov_vf_lmem(struct xe_gt *gt);
24 u32 xe_gt_sriov_vf_read32(struct xe_gt *gt, struct xe_reg reg);
25 
26 void xe_gt_sriov_vf_print_config(struct xe_gt *gt, struct drm_printer *p);
27 void xe_gt_sriov_vf_print_runtime(struct xe_gt *gt, struct drm_printer *p);
28 void xe_gt_sriov_vf_print_version(struct xe_gt *gt, struct drm_printer *p);
29 
30 #endif
31