summaryrefslogtreecommitdiff
path: root/components/drivers/thermal/thermal_dm.h
blob: cc8df32d3f698b5d3aaa2c364ef621824dd9b18c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/*
 * Copyright (c) 2006-2022, RT-Thread Development Team
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author       Notes
 * 2022-3-08      GuEe-GUI     the first version
 */

#ifndef __THERMAL_DM_H__
#define __THERMAL_DM_H__

#include <rthw.h>
#include <rtthread.h>
#include <rtdevice.h>

#include <drivers/ofw.h>

enum rt_thermal_trip_type thermal_type(const char *type);

rt_err_t thermal_bind(struct rt_thermal_cooling_device *cdev,
        struct rt_thermal_zone_device *zdev);
rt_err_t thermal_unbind(struct rt_thermal_cooling_device *cdev,
        struct rt_thermal_zone_device *zdev);

void thermal_cooling_device_bind_zones(struct rt_thermal_cooling_device *cdev);

#endif /* __THERMAL_DM_H__ */