OSHW-DEIMOS/SOFTWARE/A64-TERES/linux-a64/drivers/thermal/sunxi_gpu_cooling.h
Dimitar Gamishev f9b0e7a283 linux
2017-10-13 14:07:04 +03:00

22 lines
425 B
C
Executable File

#ifndef SUNXI_GPU_COOLING_H
#define SUNXI_GPU_COOLING_H
#include <linux/thermal.h>
#define GPU_FREQ_TABLE_MAX (10)
struct sunxi_gpu_cooling_device {
struct device *dev;
struct thermal_cooling_device *cool_dev;
int (*cool) (int);
u32 cooling_state;
u32 state_num;
u32 gpu_freq_limit;
u32 gpu_freq_roof;
u32 gpu_freq_floor;
u32 freq_table[GPU_FREQ_TABLE_MAX];
spinlock_t lock;
};
#endif /* SUNXI_GPU_COOLING_H */