xref: /linux/arch/arm/include/asm/therm.h (revision 8e07e0e3964ca4e23ce7b68e2096fe660a888942)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3  * arch/arm/include/asm/therm.h: Definitions for Dallas Semiconductor
4  *  DS1620 thermometer driver (as used in the Rebel.com NetWinder)
5  */
6 #ifndef __ASM_THERM_H
7 #define __ASM_THERM_H
8 
9 /* ioctl numbers for /dev/therm */
10 #define CMD_SET_THERMOSTATE	0x53
11 #define CMD_GET_THERMOSTATE	0x54
12 #define CMD_GET_STATUS		0x56
13 #define CMD_GET_TEMPERATURE	0x57
14 #define CMD_SET_THERMOSTATE2	0x58
15 #define CMD_GET_THERMOSTATE2	0x59
16 #define CMD_GET_TEMPERATURE2	0x5a
17 #define CMD_GET_FAN		0x5b
18 #define CMD_SET_FAN		0x5c
19 
20 #define FAN_OFF			0
21 #define FAN_ON			1
22 #define FAN_ALWAYS_ON		2
23 
24 struct therm {
25 	int hi;
26 	int lo;
27 };
28 
29 #endif
30