Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

HID: add haptics page defines

Introduce haptic usages as defined in HID Usage Tables specification.
Add HID units for newton and gram.

Signed-off-by: Angela Czubak <aczubak@google.com>
Co-developed-by: Jonathan Denose <jdenose@google.com>
Signed-off-by: Jonathan Denose <jdenose@google.com>
Signed-off-by: Benjamin Tissoires <bentiss@kernel.org>

authored by

Angela Czubak and committed by
Benjamin Tissoires
5e0ae591 02d6eeed

+29
+29
include/linux/hid.h
··· 156 156 #define HID_UP_TELEPHONY 0x000b0000 157 157 #define HID_UP_CONSUMER 0x000c0000 158 158 #define HID_UP_DIGITIZER 0x000d0000 159 + #define HID_UP_HAPTIC 0x000e0000 159 160 #define HID_UP_PID 0x000f0000 160 161 #define HID_UP_BATTERY 0x00850000 161 162 #define HID_UP_CAMERA 0x00900000 ··· 317 316 #define HID_DG_TOOLSERIALNUMBER 0x000d005b 318 317 #define HID_DG_LATENCYMODE 0x000d0060 319 318 319 + #define HID_HP_SIMPLECONTROLLER 0x000e0001 320 + #define HID_HP_WAVEFORMLIST 0x000e0010 321 + #define HID_HP_DURATIONLIST 0x000e0011 322 + #define HID_HP_AUTOTRIGGER 0x000e0020 323 + #define HID_HP_MANUALTRIGGER 0x000e0021 324 + #define HID_HP_AUTOTRIGGERASSOCIATEDCONTROL 0x000e0022 325 + #define HID_HP_INTENSITY 0x000e0023 326 + #define HID_HP_REPEATCOUNT 0x000e0024 327 + #define HID_HP_RETRIGGERPERIOD 0x000e0025 328 + #define HID_HP_WAVEFORMVENDORPAGE 0x000e0026 329 + #define HID_HP_WAVEFORMVENDORID 0x000e0027 330 + #define HID_HP_WAVEFORMCUTOFFTIME 0x000e0028 331 + #define HID_HP_WAVEFORMNONE 0x000e1001 332 + #define HID_HP_WAVEFORMSTOP 0x000e1002 333 + #define HID_HP_WAVEFORMCLICK 0x000e1003 334 + #define HID_HP_WAVEFORMBUZZCONTINUOUS 0x000e1004 335 + #define HID_HP_WAVEFORMRUMBLECONTINUOUS 0x000e1005 336 + #define HID_HP_WAVEFORMPRESS 0x000e1006 337 + #define HID_HP_WAVEFORMRELEASE 0x000e1007 338 + #define HID_HP_VENDORWAVEFORMMIN 0x000e2001 339 + #define HID_HP_VENDORWAVEFORMMAX 0x000e2fff 340 + 320 341 #define HID_BAT_ABSOLUTESTATEOFCHARGE 0x00850065 321 342 #define HID_BAT_CHARGING 0x00850044 322 343 ··· 445 422 */ 446 423 #define HID_REPORT_PROTOCOL 1 447 424 #define HID_BOOT_PROTOCOL 0 425 + 426 + /* 427 + * HID units 428 + */ 429 + #define HID_UNIT_GRAM 0x0101 430 + #define HID_UNIT_NEWTON 0xe111 448 431 449 432 /* 450 433 * This is the global environment of the parser. This information is