xref: /linux/drivers/gpu/drm/panfrost/panfrost_perfcnt.h (revision c532de5a67a70f8533d495f8f2aaa9a0491c3ad0)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /* Copyright 2019 Collabora Ltd */
3 #ifndef __PANFROST_PERFCNT_H__
4 #define __PANFROST_PERFCNT_H__
5 
6 #include "panfrost_device.h"
7 
8 void panfrost_perfcnt_sample_done(struct panfrost_device *pfdev);
9 void panfrost_perfcnt_clean_cache_done(struct panfrost_device *pfdev);
10 int panfrost_perfcnt_init(struct panfrost_device *pfdev);
11 void panfrost_perfcnt_fini(struct panfrost_device *pfdev);
12 void panfrost_perfcnt_close(struct drm_file *file_priv);
13 int panfrost_ioctl_perfcnt_enable(struct drm_device *dev, void *data,
14 				  struct drm_file *file_priv);
15 int panfrost_ioctl_perfcnt_dump(struct drm_device *dev, void *data,
16 				struct drm_file *file_priv);
17 
18 #endif
19