kmilo
i8k.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef _LINUX_I8K_H
00018 #define _LINUX_I8K_H
00019
00020 #define I8K_PROC "/proc/i8k"
00021 #define I8K_PROC_FMT "1.0"
00022
00023 #define I8K_BIOS_VERSION _IOR ('i', 0x80, int)
00024 #define I8K_MACHINE_ID _IOR ('i', 0x81, int)
00025 #define I8K_POWER_STATUS _IOR ('i', 0x82, size_t)
00026 #define I8K_FN_STATUS _IOR ('i', 0x83, size_t)
00027 #define I8K_GET_TEMP _IOR ('i', 0x84, size_t)
00028 #define I8K_GET_SPEED _IOWR('i', 0x85, size_t)
00029 #define I8K_GET_FAN _IOWR('i', 0x86, size_t)
00030 #define I8K_SET_FAN _IOWR('i', 0x87, size_t)
00031
00032 #define I8K_FAN_LEFT 1
00033 #define I8K_FAN_RIGHT 0
00034 #define I8K_FAN_OFF 0
00035 #define I8K_FAN_LOW 1
00036 #define I8K_FAN_HIGH 2
00037 #define I8K_FAN_MAX I8K_FAN_HIGH
00038
00039 #define I8K_VOL_UP 1
00040 #define I8K_VOL_DOWN 2
00041 #define I8K_VOL_MUTE 4
00042
00043 #define I8K_AC 1
00044 #define I8K_BATTERY 0
00045
00046 #endif