1 /**************************************************************************** 2 **************************************************************************** 3 *** 4 *** This header was automatically generated from a Linux kernel header 5 *** of the same name, to make information necessary for userspace to 6 *** call into the kernel available to libc. It contains only constants, 7 *** structures, and macros generated from the original header, and thus, 8 *** contains no copyrightable information. 9 *** 10 *** To edit the content of this header, modify the corresponding 11 *** source file (e.g. under external/kernel-headers/original/) then 12 *** run bionic/libc/kernel/tools/update_all.py 13 *** 14 *** Any manual change here will be lost the next time this script will 15 *** be run. You've been warned! 16 *** 17 **************************************************************************** 18 ****************************************************************************/ 19 #ifndef _UAPI_SONYPI_H_ 20 #define _UAPI_SONYPI_H_ 21 #include <linux/types.h> 22 #define SONYPI_EVENT_IGNORE 0 23 #define SONYPI_EVENT_JOGDIAL_DOWN 1 24 #define SONYPI_EVENT_JOGDIAL_UP 2 25 #define SONYPI_EVENT_JOGDIAL_DOWN_PRESSED 3 26 #define SONYPI_EVENT_JOGDIAL_UP_PRESSED 4 27 #define SONYPI_EVENT_JOGDIAL_PRESSED 5 28 #define SONYPI_EVENT_JOGDIAL_RELEASED 6 29 #define SONYPI_EVENT_CAPTURE_PRESSED 7 30 #define SONYPI_EVENT_CAPTURE_RELEASED 8 31 #define SONYPI_EVENT_CAPTURE_PARTIALPRESSED 9 32 #define SONYPI_EVENT_CAPTURE_PARTIALRELEASED 10 33 #define SONYPI_EVENT_FNKEY_ESC 11 34 #define SONYPI_EVENT_FNKEY_F1 12 35 #define SONYPI_EVENT_FNKEY_F2 13 36 #define SONYPI_EVENT_FNKEY_F3 14 37 #define SONYPI_EVENT_FNKEY_F4 15 38 #define SONYPI_EVENT_FNKEY_F5 16 39 #define SONYPI_EVENT_FNKEY_F6 17 40 #define SONYPI_EVENT_FNKEY_F7 18 41 #define SONYPI_EVENT_FNKEY_F8 19 42 #define SONYPI_EVENT_FNKEY_F9 20 43 #define SONYPI_EVENT_FNKEY_F10 21 44 #define SONYPI_EVENT_FNKEY_F11 22 45 #define SONYPI_EVENT_FNKEY_F12 23 46 #define SONYPI_EVENT_FNKEY_1 24 47 #define SONYPI_EVENT_FNKEY_2 25 48 #define SONYPI_EVENT_FNKEY_D 26 49 #define SONYPI_EVENT_FNKEY_E 27 50 #define SONYPI_EVENT_FNKEY_F 28 51 #define SONYPI_EVENT_FNKEY_S 29 52 #define SONYPI_EVENT_FNKEY_B 30 53 #define SONYPI_EVENT_BLUETOOTH_PRESSED 31 54 #define SONYPI_EVENT_PKEY_P1 32 55 #define SONYPI_EVENT_PKEY_P2 33 56 #define SONYPI_EVENT_PKEY_P3 34 57 #define SONYPI_EVENT_BACK_PRESSED 35 58 #define SONYPI_EVENT_LID_CLOSED 36 59 #define SONYPI_EVENT_LID_OPENED 37 60 #define SONYPI_EVENT_BLUETOOTH_ON 38 61 #define SONYPI_EVENT_BLUETOOTH_OFF 39 62 #define SONYPI_EVENT_HELP_PRESSED 40 63 #define SONYPI_EVENT_FNKEY_ONLY 41 64 #define SONYPI_EVENT_JOGDIAL_FAST_DOWN 42 65 #define SONYPI_EVENT_JOGDIAL_FAST_UP 43 66 #define SONYPI_EVENT_JOGDIAL_FAST_DOWN_PRESSED 44 67 #define SONYPI_EVENT_JOGDIAL_FAST_UP_PRESSED 45 68 #define SONYPI_EVENT_JOGDIAL_VFAST_DOWN 46 69 #define SONYPI_EVENT_JOGDIAL_VFAST_UP 47 70 #define SONYPI_EVENT_JOGDIAL_VFAST_DOWN_PRESSED 48 71 #define SONYPI_EVENT_JOGDIAL_VFAST_UP_PRESSED 49 72 #define SONYPI_EVENT_ZOOM_PRESSED 50 73 #define SONYPI_EVENT_THUMBPHRASE_PRESSED 51 74 #define SONYPI_EVENT_MEYE_FACE 52 75 #define SONYPI_EVENT_MEYE_OPPOSITE 53 76 #define SONYPI_EVENT_MEMORYSTICK_INSERT 54 77 #define SONYPI_EVENT_MEMORYSTICK_EJECT 55 78 #define SONYPI_EVENT_ANYBUTTON_RELEASED 56 79 #define SONYPI_EVENT_BATTERY_INSERT 57 80 #define SONYPI_EVENT_BATTERY_REMOVE 58 81 #define SONYPI_EVENT_FNKEY_RELEASED 59 82 #define SONYPI_EVENT_WIRELESS_ON 60 83 #define SONYPI_EVENT_WIRELESS_OFF 61 84 #define SONYPI_EVENT_ZOOM_IN_PRESSED 62 85 #define SONYPI_EVENT_ZOOM_OUT_PRESSED 63 86 #define SONYPI_EVENT_CD_EJECT_PRESSED 64 87 #define SONYPI_EVENT_MODEKEY_PRESSED 65 88 #define SONYPI_EVENT_PKEY_P4 66 89 #define SONYPI_EVENT_PKEY_P5 67 90 #define SONYPI_EVENT_SETTINGKEY_PRESSED 68 91 #define SONYPI_EVENT_VOLUME_INC_PRESSED 69 92 #define SONYPI_EVENT_VOLUME_DEC_PRESSED 70 93 #define SONYPI_EVENT_BRIGHTNESS_PRESSED 71 94 #define SONYPI_EVENT_MEDIA_PRESSED 72 95 #define SONYPI_EVENT_VENDOR_PRESSED 73 96 #define SONYPI_IOCGBRT _IOR('v', 0, __u8) 97 #define SONYPI_IOCSBRT _IOW('v', 0, __u8) 98 #define SONYPI_IOCGBAT1CAP _IOR('v', 2, __u16) 99 #define SONYPI_IOCGBAT1REM _IOR('v', 3, __u16) 100 #define SONYPI_IOCGBAT2CAP _IOR('v', 4, __u16) 101 #define SONYPI_IOCGBAT2REM _IOR('v', 5, __u16) 102 #define SONYPI_BFLAGS_B1 0x01 103 #define SONYPI_BFLAGS_B2 0x02 104 #define SONYPI_BFLAGS_AC 0x04 105 #define SONYPI_IOCGBATFLAGS _IOR('v', 7, __u8) 106 #define SONYPI_IOCGBLUE _IOR('v', 8, __u8) 107 #define SONYPI_IOCSBLUE _IOW('v', 9, __u8) 108 #define SONYPI_IOCGFAN _IOR('v', 10, __u8) 109 #define SONYPI_IOCSFAN _IOW('v', 11, __u8) 110 #define SONYPI_IOCGTEMP _IOR('v', 12, __u8) 111 #endif 112