blob: d82a97e311d3b1ef53ac1dd7844f8d18ee7f3f85 [file] [log] [blame]
Thomas Gleixnera61127c2019-05-29 16:57:49 -07001/* SPDX-License-Identifier: GPL-2.0-only */
srinivas pandruvada401ca242012-09-05 13:56:00 +01002/*
3 * HID Sensors Driver
4 * Copyright (c) 2012, Intel Corporation.
srinivas pandruvada401ca242012-09-05 13:56:00 +01005 */
6#ifndef _HID_SENSORS_IDS_H
7#define _HID_SENSORS_IDS_H
8
srinivas pandruvada401ca242012-09-05 13:56:00 +01009#define HID_MAX_PHY_DEVICES 0xFF
10
Srinivas Pandruvadacb671262015-02-19 15:31:26 -080011#define HID_USAGE_SENSOR_COLLECTION 0x200001
12
srinivas pandruvada401ca242012-09-05 13:56:00 +010013/* Accel 3D (200073) */
14#define HID_USAGE_SENSOR_ACCEL_3D 0x200073
Srinivas Pandruvada64528d02013-10-30 22:48:00 +000015#define HID_USAGE_SENSOR_DATA_ACCELERATION 0x200452
srinivas pandruvada401ca242012-09-05 13:56:00 +010016#define HID_USAGE_SENSOR_ACCEL_X_AXIS 0x200453
17#define HID_USAGE_SENSOR_ACCEL_Y_AXIS 0x200454
18#define HID_USAGE_SENSOR_ACCEL_Z_AXIS 0x200455
19
20/* ALS (200041) */
21#define HID_USAGE_SENSOR_ALS 0x200041
Srinivas Pandruvadaf87ee1b2013-10-30 22:48:00 +000022#define HID_USAGE_SENSOR_DATA_LIGHT 0x2004d0
srinivas pandruvada401ca242012-09-05 13:56:00 +010023#define HID_USAGE_SENSOR_LIGHT_ILLUM 0x2004d1
24
Archana Patni39a3a012014-02-20 06:29:00 +000025/* PROX (200011) */
26#define HID_USAGE_SENSOR_PROX 0x200011
27#define HID_USAGE_SENSOR_DATA_PRESENCE 0x2004b0
28#define HID_USAGE_SENSOR_HUMAN_PRESENCE 0x2004b1
29
Archana Patnif64a7992014-02-20 06:30:00 +000030/* Pressure (200031) */
31#define HID_USAGE_SENSOR_PRESSURE 0x200031
32#define HID_USAGE_SENSOR_DATA_ATMOSPHERIC_PRESSURE 0x200430
33#define HID_USAGE_SENSOR_ATMOSPHERIC_PRESSURE 0x200431
34
Song Hongyan59d0f2d2017-03-03 21:44:32 +080035/* Tempreture (200033) */
36#define HID_USAGE_SENSOR_TEMPERATURE 0x200033
37#define HID_USAGE_SENSOR_DATA_ENVIRONMENTAL_TEMPERATURE 0x200434
38
Song Hongyand7ed89d2017-03-20 22:28:45 +080039/* humidity */
40#define HID_USAGE_SENSOR_HUMIDITY 0x200032
41#define HID_USAGE_SENSOR_ATMOSPHERIC_HUMIDITY 0x200433
42
srinivas pandruvada401ca242012-09-05 13:56:00 +010043/* Gyro 3D: (200076) */
44#define HID_USAGE_SENSOR_GYRO_3D 0x200076
Srinivas Pandruvada2371aeb2013-10-30 22:48:00 +000045#define HID_USAGE_SENSOR_DATA_ANGL_VELOCITY 0x200456
srinivas pandruvada401ca242012-09-05 13:56:00 +010046#define HID_USAGE_SENSOR_ANGL_VELOCITY_X_AXIS 0x200457
47#define HID_USAGE_SENSOR_ANGL_VELOCITY_Y_AXIS 0x200458
48#define HID_USAGE_SENSOR_ANGL_VELOCITY_Z_AXIS 0x200459
49
Song Hongyan0e377f32017-01-05 18:24:04 +080050/* Gravity vector */
51#define HID_USAGE_SENSOR_GRAVITY_VECTOR 0x20007B
52
Andy Shevchenko15261f62013-08-14 11:07:08 +030053/* ORIENTATION: Compass 3D: (200083) */
srinivas pandruvada401ca242012-09-05 13:56:00 +010054#define HID_USAGE_SENSOR_COMPASS_3D 0x200083
Srinivas Pandruvada2461fc92013-11-06 00:11:00 +000055#define HID_USAGE_SENSOR_DATA_ORIENTATION 0x200470
srinivas pandruvada401ca242012-09-05 13:56:00 +010056#define HID_USAGE_SENSOR_ORIENT_MAGN_HEADING 0x200471
57#define HID_USAGE_SENSOR_ORIENT_MAGN_HEADING_X 0x200472
58#define HID_USAGE_SENSOR_ORIENT_MAGN_HEADING_Y 0x200473
59#define HID_USAGE_SENSOR_ORIENT_MAGN_HEADING_Z 0x200474
60
61#define HID_USAGE_SENSOR_ORIENT_COMP_MAGN_NORTH 0x200475
62#define HID_USAGE_SENSOR_ORIENT_COMP_TRUE_NORTH 0x200476
63#define HID_USAGE_SENSOR_ORIENT_MAGN_NORTH 0x200477
64#define HID_USAGE_SENSOR_ORIENT_TRUE_NORTH 0x200478
65
66#define HID_USAGE_SENSOR_ORIENT_DISTANCE 0x200479
67#define HID_USAGE_SENSOR_ORIENT_DISTANCE_X 0x20047A
68#define HID_USAGE_SENSOR_ORIENT_DISTANCE_Y 0x20047B
69#define HID_USAGE_SENSOR_ORIENT_DISTANCE_Z 0x20047C
70#define HID_USAGE_SENSOR_ORIENT_DISTANCE_OUT_OF_RANGE 0x20047D
Srinivas Pandruvada098d3be2013-11-06 00:11:00 +000071
72/* ORIENTATION: Inclinometer 3D: (200086) */
73#define HID_USAGE_SENSOR_INCLINOMETER_3D 0x200086
srinivas pandruvada401ca242012-09-05 13:56:00 +010074#define HID_USAGE_SENSOR_ORIENT_TILT 0x20047E
75#define HID_USAGE_SENSOR_ORIENT_TILT_X 0x20047F
76#define HID_USAGE_SENSOR_ORIENT_TILT_Y 0x200480
77#define HID_USAGE_SENSOR_ORIENT_TILT_Z 0x200481
Srinivas Pandruvada098d3be2013-11-06 00:11:00 +000078
Srinivas Pandruvadafc18ddd2014-04-29 00:51:00 +010079#define HID_USAGE_SENSOR_DEVICE_ORIENTATION 0x20008A
Song Hongyan9ff88ed2017-05-07 18:24:24 +080080#define HID_USAGE_SENSOR_RELATIVE_ORIENTATION 0x20008E
Song Hongyan00907c72017-05-07 18:24:25 +080081#define HID_USAGE_SENSOR_GEOMAGNETIC_ORIENTATION 0x2000C1
srinivas pandruvada401ca242012-09-05 13:56:00 +010082#define HID_USAGE_SENSOR_ORIENT_ROTATION_MATRIX 0x200482
83#define HID_USAGE_SENSOR_ORIENT_QUATERNION 0x200483
84#define HID_USAGE_SENSOR_ORIENT_MAGN_FLUX 0x200484
85
86#define HID_USAGE_SENSOR_ORIENT_MAGN_FLUX_X_AXIS 0x200485
87#define HID_USAGE_SENSOR_ORIENT_MAGN_FLUX_Y_AXIS 0x200486
88#define HID_USAGE_SENSOR_ORIENT_MAGN_FLUX_Z_AXIS 0x200487
89
Alexander Holler8e3cdca2012-12-15 12:45:00 +000090/* Time (2000a0) */
91#define HID_USAGE_SENSOR_TIME 0x2000a0
92#define HID_USAGE_SENSOR_TIME_YEAR 0x200521
93#define HID_USAGE_SENSOR_TIME_MONTH 0x200522
94#define HID_USAGE_SENSOR_TIME_DAY 0x200523
95#define HID_USAGE_SENSOR_TIME_HOUR 0x200525
96#define HID_USAGE_SENSOR_TIME_MINUTE 0x200526
97#define HID_USAGE_SENSOR_TIME_SECOND 0x200527
Srinivas Pandruvadaa96cd0f2016-11-28 14:41:16 -080098#define HID_USAGE_SENSOR_TIME_TIMESTAMP 0x200529
Alexander Holler8e3cdca2012-12-15 12:45:00 +000099
srinivas pandruvada401ca242012-09-05 13:56:00 +0100100/* Units */
101#define HID_USAGE_SENSOR_UNITS_NOT_SPECIFIED 0x00
102#define HID_USAGE_SENSOR_UNITS_LUX 0x01
103#define HID_USAGE_SENSOR_UNITS_KELVIN 0x01000100
104#define HID_USAGE_SENSOR_UNITS_FAHRENHEIT 0x03000100
105#define HID_USAGE_SENSOR_UNITS_PASCAL 0xF1E1
106#define HID_USAGE_SENSOR_UNITS_NEWTON 0x11E1
107#define HID_USAGE_SENSOR_UNITS_METERS_PER_SECOND 0x11F0
108#define HID_USAGE_SENSOR_UNITS_METERS_PER_SEC_SQRD 0x11E0
109#define HID_USAGE_SENSOR_UNITS_FARAD 0xE14F2000
110#define HID_USAGE_SENSOR_UNITS_AMPERE 0x01001000
111#define HID_USAGE_SENSOR_UNITS_WATT 0x21d1
112#define HID_USAGE_SENSOR_UNITS_HENRY 0x21E1E000
113#define HID_USAGE_SENSOR_UNITS_OHM 0x21D1E000
114#define HID_USAGE_SENSOR_UNITS_VOLT 0x21D1F000
115#define HID_USAGE_SENSOR_UNITS_HERTZ 0x01F0
116#define HID_USAGE_SENSOR_UNITS_DEGREES_PER_SEC_SQRD 0x14E0
117#define HID_USAGE_SENSOR_UNITS_RADIANS 0x12
118#define HID_USAGE_SENSOR_UNITS_RADIANS_PER_SECOND 0x12F0
119#define HID_USAGE_SENSOR_UNITS_RADIANS_PER_SEC_SQRD 0x12E0
120#define HID_USAGE_SENSOR_UNITS_SECOND 0x0110
121#define HID_USAGE_SENSOR_UNITS_GAUSS 0x01E1F000
122#define HID_USAGE_SENSOR_UNITS_GRAM 0x0101
123#define HID_USAGE_SENSOR_UNITS_CENTIMETER 0x11
124#define HID_USAGE_SENSOR_UNITS_G 0x1A
125#define HID_USAGE_SENSOR_UNITS_MILLISECOND 0x19
126#define HID_USAGE_SENSOR_UNITS_PERCENT 0x17
127#define HID_USAGE_SENSOR_UNITS_DEGREES 0x14
128#define HID_USAGE_SENSOR_UNITS_DEGREES_PER_SECOND 0x15
129
130/* Common selectors */
131#define HID_USAGE_SENSOR_PROP_REPORT_INTERVAL 0x20030E
132#define HID_USAGE_SENSOR_PROP_SENSITIVITY_ABS 0x20030F
133#define HID_USAGE_SENSOR_PROP_SENSITIVITY_RANGE_PCT 0x200310
134#define HID_USAGE_SENSOR_PROP_SENSITIVITY_REL_PCT 0x200311
135#define HID_USAGE_SENSOR_PROP_ACCURACY 0x200312
136#define HID_USAGE_SENSOR_PROP_RESOLUTION 0x200313
137#define HID_USAGE_SENSOR_PROP_RANGE_MAXIMUM 0x200314
138#define HID_USAGE_SENSOR_PROP_RANGE_MINIMUM 0x200315
139#define HID_USAGE_SENSOR_PROP_REPORT_STATE 0x200316
140#define HID_USAGE_SENSOR_PROY_POWER_STATE 0x200319
141
Srinivas Pandruvada138bc792017-04-07 19:22:06 -0700142/* Batch mode selectors */
143#define HID_USAGE_SENSOR_PROP_REPORT_LATENCY 0x20031B
144
Srinivas Pandruvada64528d02013-10-30 22:48:00 +0000145/* Per data field properties */
146#define HID_USAGE_SENSOR_DATA_MOD_NONE 0x00
147#define HID_USAGE_SENSOR_DATA_MOD_CHANGE_SENSITIVITY_ABS 0x1000
148
Srinivas Pandruvada751d17e2013-11-27 22:19:00 +0000149/* Power state enumerations */
Srinivas Pandruvada1a214ae2014-01-23 18:50:22 -0800150#define HID_USAGE_SENSOR_PROP_POWER_STATE_UNDEFINED_ENUM 0x200850
151#define HID_USAGE_SENSOR_PROP_POWER_STATE_D0_FULL_POWER_ENUM 0x200851
152#define HID_USAGE_SENSOR_PROP_POWER_STATE_D1_LOW_POWER_ENUM 0x200852
153#define HID_USAGE_SENSOR_PROP_POWER_STATE_D2_STANDBY_WITH_WAKE_ENUM 0x200853
154#define HID_USAGE_SENSOR_PROP_POWER_STATE_D3_SLEEP_WITH_WAKE_ENUM 0x200854
155#define HID_USAGE_SENSOR_PROP_POWER_STATE_D4_POWER_OFF_ENUM 0x200855
Srinivas Pandruvada751d17e2013-11-27 22:19:00 +0000156
157/* Report State enumerations */
Srinivas Pandruvada1a214ae2014-01-23 18:50:22 -0800158#define HID_USAGE_SENSOR_PROP_REPORTING_STATE_NO_EVENTS_ENUM 0x200840
159#define HID_USAGE_SENSOR_PROP_REPORTING_STATE_ALL_EVENTS_ENUM 0x200841
Srinivas Pandruvada751d17e2013-11-27 22:19:00 +0000160
srinivas pandruvada401ca242012-09-05 13:56:00 +0100161#endif