1/* SPDX-License-Identifier: GPL-2.0 or MIT */
2/* Copyright 2019 Collabora ltd. */
3
4#ifndef __PANTHOR_DEVFREQ_H__
5#define __PANTHOR_DEVFREQ_H__
6
7struct devfreq;
8struct thermal_cooling_device;
9
10struct panthor_device;
11struct panthor_devfreq;
12
13int panthor_devfreq_init(struct panthor_device *ptdev);
14
15void panthor_devfreq_resume(struct panthor_device *ptdev);
16void panthor_devfreq_suspend(struct panthor_device *ptdev);
17
18void panthor_devfreq_record_busy(struct panthor_device *ptdev);
19void panthor_devfreq_record_idle(struct panthor_device *ptdev);
20
21unsigned long panthor_devfreq_get_freq(struct panthor_device *ptdev);
22
23#endif /* __PANTHOR_DEVFREQ_H__ */
24

source code of linux/drivers/gpu/drm/panthor/panthor_devfreq.h