xref: /linux/drivers/gpu/drm/xe/xe_guc_engine_activity.h (revision 17e548405a81665fd14cee960db7d093d1396400)
1 /* SPDX-License-Identifier: MIT */
2 /*
3  * Copyright © 2025 Intel Corporation
4  */
5 
6 #ifndef _XE_GUC_ENGINE_ACTIVITY_H_
7 #define _XE_GUC_ENGINE_ACTIVITY_H_
8 
9 #include <linux/types.h>
10 
11 struct xe_hw_engine;
12 struct xe_guc;
13 
14 int xe_guc_engine_activity_init(struct xe_guc *guc);
15 bool xe_guc_engine_activity_supported(struct xe_guc *guc);
16 void xe_guc_engine_activity_enable_stats(struct xe_guc *guc);
17 u64 xe_guc_engine_activity_active_ticks(struct xe_guc *guc, struct xe_hw_engine *hwe);
18 u64 xe_guc_engine_activity_total_ticks(struct xe_guc *guc, struct xe_hw_engine *hwe);
19 #endif
20