thermal_dm.h 658 B

123456789101112131415161718192021222324252627
  1. /*
  2. * Copyright (c) 2006-2022, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2022-3-08 GuEe-GUI the first version
  9. */
  10. #ifndef __THERMAL_DM_H__
  11. #define __THERMAL_DM_H__
  12. #include <rthw.h>
  13. #include <rtthread.h>
  14. #include <rtdevice.h>
  15. #include <drivers/ofw.h>
  16. enum rt_thermal_trip_type thermal_type(const char *type);
  17. rt_err_t thermal_bind(struct rt_thermal_cooling_device *cdev,
  18. struct rt_thermal_zone_device *zdev);
  19. rt_err_t thermal_unbind(struct rt_thermal_cooling_device *cdev,
  20. struct rt_thermal_zone_device *zdev);
  21. #endif /* __THERMAL_DM_H__ */