]> granicus.if.org Git - strace/commitdiff
xlat: provide fallback definitions for arch-independent evdev constants
authorEugene Syromyatnikov <evgsyr@gmail.com>
Mon, 2 Apr 2018 00:44:55 +0000 (02:44 +0200)
committerDmitry V. Levin <ldv@altlinux.org>
Wed, 25 Apr 2018 22:54:57 +0000 (22:54 +0000)
* xlat/evdev_abs.in: Add constant values.
* xlat/evdev_autorepeat.in: Likewise.
* xlat/evdev_ev.in: Likewise.
* xlat/evdev_ff_status.in: Likewise.
* xlat/evdev_ff_types.in: Likewise.
* xlat/evdev_leds.in: Likewise.
* xlat/evdev_misc.in: Likewise.
* xlat/evdev_prop.in: Likewise.
* xlat/evdev_relative_axes.in: Likewise.
* xlat/evdev_snd.in: Likewise.
* xlat/evdev_switch.in: Likewise.
* xlat/evdev_sync.in: Likewise.

Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
12 files changed:
xlat/evdev_abs.in
xlat/evdev_autorepeat.in
xlat/evdev_ev.in
xlat/evdev_ff_status.in
xlat/evdev_ff_types.in
xlat/evdev_leds.in
xlat/evdev_misc.in
xlat/evdev_prop.in
xlat/evdev_relative_axes.in
xlat/evdev_snd.in
xlat/evdev_switch.in
xlat/evdev_sync.in

index ec8c2f439826c53e91a5dd327fa5a74982242a35..dc80831faa8b75f7bb04b5be1849b6ab315d58a1 100644 (file)
@@ -1,41 +1,41 @@
-ABS_X
-ABS_Y
-ABS_Z
-ABS_RX
-ABS_RY
-ABS_RZ
-ABS_THROTTLE
-ABS_RUDDER
-ABS_WHEEL
-ABS_GAS
-ABS_BRAKE
-ABS_HAT0X
-ABS_HAT0Y
-ABS_HAT1X
-ABS_HAT1Y
-ABS_HAT2X
-ABS_HAT2Y
-ABS_HAT3X
-ABS_HAT3Y
-ABS_PRESSURE
-ABS_DISTANCE
-ABS_TILT_X
-ABS_TILT_Y
-ABS_TOOL_WIDTH
-ABS_VOLUME
-ABS_MISC
-ABS_MT_SLOT
-ABS_MT_TOUCH_MAJOR
-ABS_MT_TOUCH_MINOR
-ABS_MT_WIDTH_MAJOR
-ABS_MT_WIDTH_MINOR
-ABS_MT_ORIENTATION
-ABS_MT_POSITION_X
-ABS_MT_POSITION_Y
-ABS_MT_TOOL_TYPE
-ABS_MT_BLOB_ID
-ABS_MT_TRACKING_ID
-ABS_MT_PRESSURE
-ABS_MT_DISTANCE
-ABS_MT_TOOL_X
-ABS_MT_TOOL_Y
+ABS_X                  0x00
+ABS_Y                  0x01
+ABS_Z                  0x02
+ABS_RX                 0x03
+ABS_RY                 0x04
+ABS_RZ                 0x05
+ABS_THROTTLE           0x06
+ABS_RUDDER             0x07
+ABS_WHEEL              0x08
+ABS_GAS                        0x09
+ABS_BRAKE              0x0a
+ABS_HAT0X              0x10
+ABS_HAT0Y              0x11
+ABS_HAT1X              0x12
+ABS_HAT1Y              0x13
+ABS_HAT2X              0x14
+ABS_HAT2Y              0x15
+ABS_HAT3X              0x16
+ABS_HAT3Y              0x17
+ABS_PRESSURE           0x18
+ABS_DISTANCE           0x19
+ABS_TILT_X             0x1a
+ABS_TILT_Y             0x1b
+ABS_TOOL_WIDTH         0x1c
+ABS_VOLUME             0x20
+ABS_MISC               0x28
+ABS_MT_SLOT            0x2f
+ABS_MT_TOUCH_MAJOR     0x30
+ABS_MT_TOUCH_MINOR     0x31
+ABS_MT_WIDTH_MAJOR     0x32
+ABS_MT_WIDTH_MINOR     0x33
+ABS_MT_ORIENTATION     0x34
+ABS_MT_POSITION_X      0x35
+ABS_MT_POSITION_Y      0x36
+ABS_MT_TOOL_TYPE       0x37
+ABS_MT_BLOB_ID         0x38
+ABS_MT_TRACKING_ID     0x39
+ABS_MT_PRESSURE                0x3a
+ABS_MT_DISTANCE                0x3b
+ABS_MT_TOOL_X          0x3c
+ABS_MT_TOOL_Y          0x3d
index ac8b8fb5f86348d56e96bf3adb53509400083136..fcdd4a6c6607a5060a615c6cb01054d8c543cf6e 100644 (file)
@@ -1,2 +1,2 @@
-REP_DELAY
-REP_PERIOD
+REP_DELAY      0x00
+REP_PERIOD     0x01
index 0974b591a5062352c6b29a438d55f10bf66aaf1c..4d81952b3e560bf290a6728283715ef9af02ca6f 100644 (file)
@@ -1,12 +1,12 @@
-EV_SYN
-EV_KEY
-EV_REL
-EV_ABS
-EV_MSC
-EV_SW
-EV_LED
-EV_SND
-EV_REP
-EV_FF
-EV_PWR
-EV_FF_STATUS
+EV_SYN         0x00
+EV_KEY         0x01
+EV_REL         0x02
+EV_ABS         0x03
+EV_MSC         0x04
+EV_SW          0x05
+EV_LED         0x11
+EV_SND         0x12
+EV_REP         0x14
+EV_FF          0x15
+EV_PWR         0x16
+EV_FF_STATUS   0x17
index 3f887101f4d16b67d6ee694be2ea733eb223cf19..914d2f49801b25bc03abb3d106fc44d5f6cdc09e 100644 (file)
@@ -1,2 +1,2 @@
-FF_STATUS_STOPPED
-FF_STATUS_PLAYING
+FF_STATUS_STOPPED      0x00
+FF_STATUS_PLAYING      0x01
index c6714f8f6dec03f67d6e8cb51b0daf398eea7e27..d88a9b2e9e4d2fa47281e1ed93eeb073e7248a49 100644 (file)
@@ -1,16 +1,16 @@
-FF_RUMBLE
-FF_PERIODIC
-FF_CONSTANT
-FF_SPRING
-FF_FRICTION
-FF_DAMPER
-FF_INERTIA
-FF_RAMP
-FF_SQUARE
-FF_TRIANGLE
-FF_SINE
-FF_SAW_UP
-FF_SAW_DOWN
-FF_CUSTOM
-FF_GAIN
-FF_AUTOCENTER
+FF_RUMBLE       0x50
+FF_PERIODIC     0x51
+FF_CONSTANT     0x52
+FF_SPRING       0x53
+FF_FRICTION     0x54
+FF_DAMPER       0x55
+FF_INERTIA      0x56
+FF_RAMP         0x57
+FF_SQUARE       0x58
+FF_TRIANGLE     0x59
+FF_SINE         0x5a
+FF_SAW_UP       0x5b
+FF_SAW_DOWN     0x5c
+FF_CUSTOM       0x5d
+FF_GAIN         0x60
+FF_AUTOCENTER   0x61
index c085ed343652d977de7594a5f839b683720b4573..7fb9128b646ff1d388e4191d825b587ee8dbf901 100644 (file)
@@ -1,11 +1,11 @@
-LED_NUML
-LED_CAPSL
-LED_SCROLLL
-LED_COMPOSE
-LED_KANA
-LED_SLEEP
-LED_SUSPEND
-LED_MUTE
-LED_MISC
-LED_MAIL
-LED_CHARGING
+LED_NUML       0x00
+LED_CAPSL      0x01
+LED_SCROLLL    0x02
+LED_COMPOSE    0x03
+LED_KANA       0x04
+LED_SLEEP      0x05
+LED_SUSPEND    0x06
+LED_MUTE       0x07
+LED_MISC       0x08
+LED_MAIL       0x09
+LED_CHARGING   0x0a
index 385ee4d120ef5a2ecef98f16e4547c4b5cc35a39..b9f721399b053b2b7d9ce09b8894042982ad759b 100644 (file)
@@ -1,6 +1,6 @@
-MSC_SERIAL
-MSC_PULSELED
-MSC_GESTURE
-MSC_RAW
-MSC_SCAN
-MSC_TIMESTAMP
+MSC_SERIAL     0x00
+MSC_PULSELED   0x01
+MSC_GESTURE    0x02
+MSC_RAW                0x03
+MSC_SCAN       0x04
+MSC_TIMESTAMP  0x05
index b6590004f3418c6f6be538d0554d9035d832961f..40ce923a3619a8d1ccd202c3c849b647ce20099d 100644 (file)
@@ -1,7 +1,7 @@
-INPUT_PROP_POINTER
-INPUT_PROP_DIRECT
-INPUT_PROP_BUTTONPAD
-INPUT_PROP_SEMI_MT
-INPUT_PROP_TOPBUTTONPAD
-INPUT_PROP_POINTING_STICK
-INPUT_PROP_ACCELEROMETER
+INPUT_PROP_POINTER             0
+INPUT_PROP_DIRECT              1
+INPUT_PROP_BUTTONPAD           2
+INPUT_PROP_SEMI_MT             3
+INPUT_PROP_TOPBUTTONPAD                4
+INPUT_PROP_POINTING_STICK      5
+INPUT_PROP_ACCELEROMETER       6
index 7158d47a2a067f77bb5b9984f4f866ca3dac3b71..02d189d67d0ff50f770074da3c5db2fda8a347ab 100644 (file)
@@ -1,10 +1,10 @@
-REL_X
-REL_Y
-REL_Z
-REL_RX
-REL_RY
-REL_RZ
-REL_HWHEEL
-REL_DIAL
-REL_WHEEL
-REL_MISC
+REL_X          0x00
+REL_Y          0x01
+REL_Z          0x02
+REL_RX         0x03
+REL_RY         0x04
+REL_RZ         0x05
+REL_HWHEEL     0x06
+REL_DIAL       0x07
+REL_WHEEL      0x08
+REL_MISC       0x09
index eaebe3c976c038f8af96eb6832cd5a4add16fdf8..21e8b70ff23301679536be3d366d6d9d4ba70a66 100644 (file)
@@ -1,3 +1,3 @@
-SND_CLICK
-SND_BELL
-SND_TONE
+SND_CLICK      0x00
+SND_BELL       0x01
+SND_TONE       0x02
index 43a6d6d74b85503870f110469f4ca0627545d4ec..e4eab8591d53b708a3b05b836437966fc055bb7a 100644 (file)
@@ -1,16 +1,16 @@
-SW_LID
-SW_TABLET_MODE
-SW_HEADPHONE_INSERT
-SW_RFKILL_ALL
-SW_MICROPHONE_INSERT
-SW_DOCK
-SW_LINEOUT_INSERT
-SW_JACK_PHYSICAL_INSERT
-SW_VIDEOOUT_INSERT
-SW_CAMERA_LENS_COVER
-SW_KEYPAD_SLIDE
-SW_FRONT_PROXIMITY
-SW_ROTATE_LOCK
-SW_LINEIN_INSERT
-SW_MUTE_DEVICE
-SW_PEN_INSERTED
+SW_LID                 0x00
+SW_TABLET_MODE         0x01
+SW_HEADPHONE_INSERT    0x02
+SW_RFKILL_ALL          0x03
+SW_MICROPHONE_INSERT   0x04
+SW_DOCK                        0x05
+SW_LINEOUT_INSERT      0x06
+SW_JACK_PHYSICAL_INSERT        0x07
+SW_VIDEOOUT_INSERT     0x08
+SW_CAMERA_LENS_COVER   0x09
+SW_KEYPAD_SLIDE                0x0a
+SW_FRONT_PROXIMITY     0x0b
+SW_ROTATE_LOCK         0x0c
+SW_LINEIN_INSERT       0x0d
+SW_MUTE_DEVICE         0x0e
+SW_PEN_INSERTED                0x0f
index 39c2e4a98159e766972bee32d3372a84e5f34858..0b8ee32f249cc25a4dfc00f830f15e1ab8678e37 100644 (file)
@@ -1,4 +1,4 @@
-SYN_REPORT
-SYN_CONFIG
-SYN_MT_REPORT
-SYN_DROPPED
+SYN_REPORT     0
+SYN_CONFIG     1
+SYN_MT_REPORT  2
+SYN_DROPPED    3