xref: /linux/drivers/gpu/drm/xe/xe_gt_sriov_pf_monitor.h (revision a1ff5a7d78a036d6c2178ee5acd6ba4946243800)
1 /* SPDX-License-Identifier: MIT */
2 /*
3  * Copyright © 2023-2024 Intel Corporation
4  */
5 
6 #ifndef _XE_GT_SRIOV_PF_MONITOR_H_
7 #define _XE_GT_SRIOV_PF_MONITOR_H_
8 
9 #include <linux/errno.h>
10 #include <linux/types.h>
11 
12 struct drm_printer;
13 struct xe_gt;
14 
15 void xe_gt_sriov_pf_monitor_flr(struct xe_gt *gt, u32 vfid);
16 void xe_gt_sriov_pf_monitor_print_events(struct xe_gt *gt, struct drm_printer *p);
17 
18 #ifdef CONFIG_PCI_IOV
19 int xe_gt_sriov_pf_monitor_process_guc2pf(struct xe_gt *gt, const u32 *msg, u32 len);
20 #else
xe_gt_sriov_pf_monitor_process_guc2pf(struct xe_gt * gt,const u32 * msg,u32 len)21 static inline int xe_gt_sriov_pf_monitor_process_guc2pf(struct xe_gt *gt, const u32 *msg, u32 len)
22 {
23 	return -EPROTO;
24 }
25 #endif
26 
27 #endif
28