diff mbox series

[01/18] HID: add haptics page defines

Message ID 20211221191743.1893185-2-acz@semihalf.com
State New
Headers show
Series *** Implement simple haptic HID support *** | expand

Commit Message

Angela Czubak Dec. 21, 2021, 7:17 p.m. UTC
Introduce haptic usages as defined in HID Usage Tables specification.

Signed-off-by: Angela Czubak <acz@semihalf.com>
---
 include/linux/hid.h | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

Comments

Dmitry Torokhov Jan. 7, 2022, 9:40 p.m. UTC | #1
Hi Angela,

On Tue, Dec 21, 2021 at 07:17:26PM +0000, Angela Czubak wrote:
> Introduce haptic usages as defined in HID Usage Tables specification.
> 
> Signed-off-by: Angela Czubak <acz@semihalf.com>
> ---

This needs to be sent to Jiri/Benjamin.

FWIW

Reviewed-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>

>  include/linux/hid.h | 23 +++++++++++++++++++++++
>  1 file changed, 23 insertions(+)
> 
> diff --git a/include/linux/hid.h b/include/linux/hid.h
> index f453be385bd4..70679bf820ce 100644
> --- a/include/linux/hid.h
> +++ b/include/linux/hid.h
> @@ -153,6 +153,7 @@ struct hid_item {
>  #define HID_UP_TELEPHONY	0x000b0000
>  #define HID_UP_CONSUMER		0x000c0000
>  #define HID_UP_DIGITIZER	0x000d0000
> +#define HID_UP_HAPTIC		0x000e0000
>  #define HID_UP_PID		0x000f0000
>  #define HID_UP_BATTERY		0x00850000
>  #define HID_UP_HPVENDOR         0xff7f0000
> @@ -301,6 +302,28 @@ struct hid_item {
>  #define HID_DG_TOOLSERIALNUMBER	0x000d005b
>  #define HID_DG_LATENCYMODE	0x000d0060
>  
> +#define HID_HP_SIMPLECONTROLLER	0x000e0001
> +#define HID_HP_WAVEFORMLIST	0x000e0010
> +#define HID_HP_DURATIONLIST	0x000e0011
> +#define HID_HP_AUTOTRIGGER	0x000e0020
> +#define HID_HP_MANUALTRIGGER	0x000e0021
> +#define HID_HP_AUTOTRIGGERASSOCIATEDCONTROL 0x000e0022
> +#define HID_HP_INTENSITY	0x000e0023
> +#define HID_HP_REPEATCOUNT	0x000e0024
> +#define HID_HP_RETRIGGERPERIOD	0x000e0025
> +#define HID_HP_WAVEFORMVENDORPAGE	0x000e0026
> +#define HID_HP_WAVEFORMVENDORID	0x000e0027
> +#define HID_HP_WAVEFORMCUTOFFTIME	0x000e0028
> +#define HID_HP_WAVEFORMNONE	0x000e1001
> +#define HID_HP_WAVEFORMSTOP	0x000e1002
> +#define HID_HP_WAVEFORMCLICK	0x000e1003
> +#define HID_HP_WAVEFORMBUZZCONTINUOUS	0x000e1004
> +#define HID_HP_WAVEFORMRUMBLECONTINUOUS	0x000e1005
> +#define HID_HP_WAVEFORMPRESS	0x000e1006
> +#define HID_HP_WAVEFORMRELEASE	0x000e1007
> +#define HID_HP_VENDORWAVEFORMMIN	0x000e2001
> +#define HID_HP_VENDORWAVEFORMMAX	0x000e2fff
> +
>  #define HID_BAT_ABSOLUTESTATEOFCHARGE	0x00850065
>  
>  #define HID_VD_ASUS_CUSTOM_MEDIA_KEYS	0xff310076
> -- 
> 2.34.1.307.g9b7440fafd-goog
>
diff mbox series

Patch

diff --git a/include/linux/hid.h b/include/linux/hid.h
index f453be385bd4..70679bf820ce 100644
--- a/include/linux/hid.h
+++ b/include/linux/hid.h
@@ -153,6 +153,7 @@  struct hid_item {
 #define HID_UP_TELEPHONY	0x000b0000
 #define HID_UP_CONSUMER		0x000c0000
 #define HID_UP_DIGITIZER	0x000d0000
+#define HID_UP_HAPTIC		0x000e0000
 #define HID_UP_PID		0x000f0000
 #define HID_UP_BATTERY		0x00850000
 #define HID_UP_HPVENDOR         0xff7f0000
@@ -301,6 +302,28 @@  struct hid_item {
 #define HID_DG_TOOLSERIALNUMBER	0x000d005b
 #define HID_DG_LATENCYMODE	0x000d0060
 
+#define HID_HP_SIMPLECONTROLLER	0x000e0001
+#define HID_HP_WAVEFORMLIST	0x000e0010
+#define HID_HP_DURATIONLIST	0x000e0011
+#define HID_HP_AUTOTRIGGER	0x000e0020
+#define HID_HP_MANUALTRIGGER	0x000e0021
+#define HID_HP_AUTOTRIGGERASSOCIATEDCONTROL 0x000e0022
+#define HID_HP_INTENSITY	0x000e0023
+#define HID_HP_REPEATCOUNT	0x000e0024
+#define HID_HP_RETRIGGERPERIOD	0x000e0025
+#define HID_HP_WAVEFORMVENDORPAGE	0x000e0026
+#define HID_HP_WAVEFORMVENDORID	0x000e0027
+#define HID_HP_WAVEFORMCUTOFFTIME	0x000e0028
+#define HID_HP_WAVEFORMNONE	0x000e1001
+#define HID_HP_WAVEFORMSTOP	0x000e1002
+#define HID_HP_WAVEFORMCLICK	0x000e1003
+#define HID_HP_WAVEFORMBUZZCONTINUOUS	0x000e1004
+#define HID_HP_WAVEFORMRUMBLECONTINUOUS	0x000e1005
+#define HID_HP_WAVEFORMPRESS	0x000e1006
+#define HID_HP_WAVEFORMRELEASE	0x000e1007
+#define HID_HP_VENDORWAVEFORMMIN	0x000e2001
+#define HID_HP_VENDORWAVEFORMMAX	0x000e2fff
+
 #define HID_BAT_ABSOLUTESTATEOFCHARGE	0x00850065
 
 #define HID_VD_ASUS_CUSTOM_MEDIA_KEYS	0xff310076