Squashed backup commit (no shallow-clone history issues) of xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2 branch, upstream commit 9eece662e) plus all fixes applied to get everpal_defconfig building clean against a modern (GCC 15.2.0) toolchain -- see the previous commit message on the lineage-23.2 branch (also in this repo history is not available here since this is a squashed snapshot; full incremental history lives in the local DL380 checkout and the upstream GitHub remote). Upstream: https://github.com/xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2)
30 lines
655 B
C
30 lines
655 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* arch/arm/include/asm/therm.h: Definitions for Dallas Semiconductor
|
|
* DS1620 thermometer driver (as used in the Rebel.com NetWinder)
|
|
*/
|
|
#ifndef __ASM_THERM_H
|
|
#define __ASM_THERM_H
|
|
|
|
/* ioctl numbers for /dev/therm */
|
|
#define CMD_SET_THERMOSTATE 0x53
|
|
#define CMD_GET_THERMOSTATE 0x54
|
|
#define CMD_GET_STATUS 0x56
|
|
#define CMD_GET_TEMPERATURE 0x57
|
|
#define CMD_SET_THERMOSTATE2 0x58
|
|
#define CMD_GET_THERMOSTATE2 0x59
|
|
#define CMD_GET_TEMPERATURE2 0x5a
|
|
#define CMD_GET_FAN 0x5b
|
|
#define CMD_SET_FAN 0x5c
|
|
|
|
#define FAN_OFF 0
|
|
#define FAN_ON 1
|
|
#define FAN_ALWAYS_ON 2
|
|
|
|
struct therm {
|
|
int hi;
|
|
int lo;
|
|
};
|
|
|
|
#endif
|