kernel/evdev: Synchronize event codes with Linux 4.16
authorPeeter Must <karu.pruun@gmail.com>
Mon, 13 May 2019 09:31:47 +0000 (12:31 +0300)
committerPeeter Must <karu.pruun@gmail.com>
Mon, 13 May 2019 09:31:47 +0000 (12:31 +0300)
Taken-from: FreeBSD, Linux

sys/dev/misc/evdev/input-event-codes.h
sys/dev/misc/evdev/input.h

index b9be53b..0792a02 100644 (file)
 #define        BTN_DPAD_RIGHT          0x223
 
 #define        KEY_ALS_TOGGLE          0x230   /* Ambient light sensor */
+#define        KEY_ROTATE_LOCK_TOGGLE  0x231   /* Display rotation lock */
 
 #define        KEY_BUTTONCONFIG                0x240   /* AL Button Configuration */
 #define        KEY_TASKMANAGER         0x241   /* AL Task/Project Manager */
 #define        SW_ROTATE_LOCK          0x0c  /* set = rotate locked/disabled */
 #define        SW_LINEIN_INSERT        0x0d  /* set = inserted */
 #define        SW_MUTE_DEVICE          0x0e  /* set = device disabled */
+#define        SW_PEN_INSERTED         0x0f  /* set = pen inserted */
 #define        SW_MAX                  0x0f
 #define        SW_CNT                  (SW_MAX+1)
 
index a5fb422..c3f1a07 100644 (file)
@@ -36,6 +36,9 @@
 
 #include "input-event-codes.h"
 
+#define        input_event_sec         time.tv_sec
+#define        input_event_usec        time.tv_usec
+
 struct input_event {
        struct timeval  time;
        uint16_t        type;
@@ -136,6 +139,9 @@ struct input_keymap_entry {
 #define        BUS_GSC                 0x1A
 #define        BUS_ATARI               0x1B
 #define        BUS_SPI                 0x1C
+#define        BUS_RMI                 0x1D
+#define        BUS_CEC                 0x1E
+#define        BUS_INTEL_ISHTP         0x1F
 
 /*
  * MT_TOOL types