blob: 190a38586c52eafd40fa63afd0a2bad652140ede (
plain) (
blame)
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
/*
* arch/arm/mach-tegra/include/mach/tsensor.h
*
* Tegra tsensor header file
*
* Copyright (c) 2011, NVIDIA Corporation.
*
* This software is licensed under the terms of the GNU General Public
* License version 2, as published by the Free Software Foundation, and
* may be copied, distributed, and modified under those terms.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
*/
#ifndef __MACH_TEGRA_TSENSOR_H
#define __MACH_TEGRA_TSENSOR_H
#include <linux/types.h>
#include <mach/edp.h>
#define MAX_ZONES 16
struct tegra_tsensor_data;
struct tegra_tsensor_platform_data {
void (*probe_callback)(struct tegra_tsensor_data *);
};
int tsensor_thermal_get_temp(struct tegra_tsensor_data *data,
long *milli_temp);
int tsensor_thermal_get_temp_low(struct tegra_tsensor_data *data,
long *milli_temp);
int tsensor_thermal_set_limits(struct tegra_tsensor_data *data,
long lo_limit_milli,
long hi_limit_milli);
int tsensor_thermal_set_alert(struct tegra_tsensor_data *data,
void (*alert_func)(void *),
void *alert_data);
int tsensor_thermal_set_shutdown_temp(struct tegra_tsensor_data *data,
long shutdown_temp_milli);
#endif /* __MACH_TEGRA_TSENSOR_H */
|