xref: /linux/drivers/gpu/drm/i915/gt/uc/intel_guc_ads.h (revision 4f2c0a4acffbec01079c28f839422e64ddeff004)
1 /* SPDX-License-Identifier: MIT */
2 /*
3  * Copyright © 2014-2019 Intel Corporation
4  */
5 
6 #ifndef _INTEL_GUC_ADS_H_
7 #define _INTEL_GUC_ADS_H_
8 
9 #include <linux/types.h>
10 #include <linux/iosys-map.h>
11 
12 struct intel_guc;
13 struct drm_printer;
14 struct intel_engine_cs;
15 
16 int intel_guc_ads_create(struct intel_guc *guc);
17 void intel_guc_ads_destroy(struct intel_guc *guc);
18 void intel_guc_ads_init_late(struct intel_guc *guc);
19 void intel_guc_ads_reset(struct intel_guc *guc);
20 void intel_guc_ads_print_policy_info(struct intel_guc *guc,
21 				     struct drm_printer *p);
22 struct iosys_map intel_guc_engine_usage_record_map(struct intel_engine_cs *engine);
23 u32 intel_guc_engine_usage_offset(struct intel_guc *guc);
24 
25 #endif
26