xref: /linux/drivers/gpu/drm/xe/xe_gt_sriov_pf_migration.h (revision 7f71507851fc7764b36a3221839607d3a45c2025)
1 /* SPDX-License-Identifier: MIT */
2 /*
3  * Copyright © 2024 Intel Corporation
4  */
5 
6 #ifndef _XE_GT_SRIOV_PF_MIGRATION_H_
7 #define _XE_GT_SRIOV_PF_MIGRATION_H_
8 
9 #include <linux/types.h>
10 
11 struct xe_gt;
12 
13 int xe_gt_sriov_pf_migration_init(struct xe_gt *gt);
14 int xe_gt_sriov_pf_migration_save_guc_state(struct xe_gt *gt, unsigned int vfid);
15 int xe_gt_sriov_pf_migration_restore_guc_state(struct xe_gt *gt, unsigned int vfid);
16 
17 #ifdef CONFIG_DEBUG_FS
18 ssize_t xe_gt_sriov_pf_migration_read_guc_state(struct xe_gt *gt, unsigned int vfid,
19 						char __user *buf, size_t count, loff_t *pos);
20 ssize_t xe_gt_sriov_pf_migration_write_guc_state(struct xe_gt *gt, unsigned int vfid,
21 						 const char __user *buf, size_t count);
22 #endif
23 
24 #endif
25