blob: 423682f69d8a8af94af1034b089238d481cb1cc9 [file] [log] [blame]
Elliott Hughes180edef2023-11-02 00:08:05 +00001/*
2 * This file is auto-generated. Modifications will be lost.
3 *
4 * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/
5 * for more information.
6 */
Ben Cheng655a7c02013-10-16 16:09:24 -07007#ifndef _LINUX_I8K_H
8#define _LINUX_I8K_H
9#define I8K_PROC "/proc/i8k"
10#define I8K_PROC_FMT "1.0"
Tao Baod7db5942015-01-28 10:07:51 -080011#define I8K_BIOS_VERSION _IOR('i', 0x80, int)
12#define I8K_MACHINE_ID _IOR('i', 0x81, int)
13#define I8K_POWER_STATUS _IOR('i', 0x82, size_t)
14#define I8K_FN_STATUS _IOR('i', 0x83, size_t)
Tao Baod7db5942015-01-28 10:07:51 -080015#define I8K_GET_TEMP _IOR('i', 0x84, size_t)
Ben Cheng655a7c02013-10-16 16:09:24 -070016#define I8K_GET_SPEED _IOWR('i', 0x85, size_t)
17#define I8K_GET_FAN _IOWR('i', 0x86, size_t)
18#define I8K_SET_FAN _IOWR('i', 0x87, size_t)
Ben Cheng655a7c02013-10-16 16:09:24 -070019#define I8K_FAN_LEFT 1
20#define I8K_FAN_RIGHT 0
21#define I8K_FAN_OFF 0
22#define I8K_FAN_LOW 1
Ben Cheng655a7c02013-10-16 16:09:24 -070023#define I8K_FAN_HIGH 2
Christopher Ferris82d75042015-01-26 10:57:07 -080024#define I8K_FAN_TURBO 3
25#define I8K_FAN_MAX I8K_FAN_TURBO
Ben Cheng655a7c02013-10-16 16:09:24 -070026#define I8K_VOL_UP 1
Christopher Ferris82d75042015-01-26 10:57:07 -080027#define I8K_VOL_DOWN 2
Ben Cheng655a7c02013-10-16 16:09:24 -070028#define I8K_VOL_MUTE 4
29#define I8K_AC 1
30#define I8K_BATTERY 0
Christopher Ferris82d75042015-01-26 10:57:07 -080031#endif