xref: /linux/drivers/gpu/drm/panfrost/panfrost_perfcnt.h (revision c95baf12f5077419db01313ab61c2aac007d40cd)
17786fd10SBoris Brezillon /* SPDX-License-Identifier: GPL-2.0 */
27786fd10SBoris Brezillon /* Copyright 2019 Collabora Ltd */
37786fd10SBoris Brezillon #ifndef __PANFROST_PERFCNT_H__
47786fd10SBoris Brezillon #define __PANFROST_PERFCNT_H__
57786fd10SBoris Brezillon 
67786fd10SBoris Brezillon #include "panfrost_device.h"
77786fd10SBoris Brezillon 
87786fd10SBoris Brezillon void panfrost_perfcnt_sample_done(struct panfrost_device *pfdev);
97786fd10SBoris Brezillon void panfrost_perfcnt_clean_cache_done(struct panfrost_device *pfdev);
107786fd10SBoris Brezillon int panfrost_perfcnt_init(struct panfrost_device *pfdev);
117786fd10SBoris Brezillon void panfrost_perfcnt_fini(struct panfrost_device *pfdev);
12*0a523998SBoris Brezillon void panfrost_perfcnt_close(struct drm_file *file_priv);
137786fd10SBoris Brezillon int panfrost_ioctl_perfcnt_enable(struct drm_device *dev, void *data,
147786fd10SBoris Brezillon 				  struct drm_file *file_priv);
157786fd10SBoris Brezillon int panfrost_ioctl_perfcnt_dump(struct drm_device *dev, void *data,
167786fd10SBoris Brezillon 				struct drm_file *file_priv);
177786fd10SBoris Brezillon 
187786fd10SBoris Brezillon #endif
19