xref: /linux/drivers/gpu/drm/xe/xe_sriov_pf_service.h (revision 220994d61cebfc04f071d69049127657c7e8191b)
1 /* SPDX-License-Identifier: MIT */
2 /*
3  * Copyright © 2025 Intel Corporation
4  */
5 
6 #ifndef _XE_SRIOV_PF_SERVICE_H_
7 #define _XE_SRIOV_PF_SERVICE_H_
8 
9 #include <linux/types.h>
10 
11 struct drm_printer;
12 struct xe_device;
13 
14 void xe_sriov_pf_service_init(struct xe_device *xe);
15 void xe_sriov_pf_service_print_versions(struct xe_device *xe, struct drm_printer *p);
16 
17 int xe_sriov_pf_service_handshake_vf(struct xe_device *xe, u32 vfid,
18 				     u32 wanted_major, u32 wanted_minor,
19 				     u32 *major, u32 *minor);
20 bool xe_sriov_pf_service_is_negotiated(struct xe_device *xe, u32 vfid, u32 major, u32 minor);
21 void xe_sriov_pf_service_reset_vf(struct xe_device *xe, unsigned int vfid);
22 
23 #endif
24