1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Copyright (C) 2017 Etnaviv Project
4 * Copyright (C) 2017 Zodiac Inflight Innovations
7 #ifndef __ETNAVIV_PERFMON_H__
8 #define __ETNAVIV_PERFMON_H__
11 struct drm_etnaviv_pm_domain
;
12 struct drm_etnaviv_pm_signal
;
14 struct etnaviv_perfmon_request
21 /* bo to store a value */
26 int etnaviv_pm_query_dom(struct etnaviv_gpu
*gpu
,
27 struct drm_etnaviv_pm_domain
*domain
);
29 int etnaviv_pm_query_sig(struct etnaviv_gpu
*gpu
,
30 struct drm_etnaviv_pm_signal
*signal
);
32 int etnaviv_pm_req_validate(const struct drm_etnaviv_gem_submit_pmr
*r
,
35 void etnaviv_perfmon_process(struct etnaviv_gpu
*gpu
,
36 const struct etnaviv_perfmon_request
*pmr
, u32 exec_state
);
38 #endif /* __ETNAVIV_PERFMON_H__ */