Merge tag 'block-5.11-2021-01-10' of git://git.kernel.dk/linux-block
[linux/fpc-iii.git] / drivers / gpu / drm / etnaviv / etnaviv_perfmon.h
blob4a9d508f6e10c547872386267fc728b5b42464b3
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3 * Copyright (C) 2017 Etnaviv Project
4 * Copyright (C) 2017 Zodiac Inflight Innovations
5 */
7 #ifndef __ETNAVIV_PERFMON_H__
8 #define __ETNAVIV_PERFMON_H__
10 struct etnaviv_gpu;
11 struct drm_etnaviv_pm_domain;
12 struct drm_etnaviv_pm_signal;
14 struct etnaviv_perfmon_request
16 u32 flags;
17 u8 domain;
18 u8 signal;
19 u32 sequence;
21 /* bo to store a value */
22 u32 *bo_vma;
23 u32 offset;
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,
33 u32 exec_state);
35 void etnaviv_perfmon_process(struct etnaviv_gpu *gpu,
36 const struct etnaviv_perfmon_request *pmr, u32 exec_state);
38 #endif /* __ETNAVIV_PERFMON_H__ */