1 /* SPDX-License-Identifier: GPL-2.0-only */ 2 /* 3 * HID Sensors Driver 4 * Copyright (c) 2012, Intel Corporation. 5 */ 6 #ifndef _HID_SENSORS_IDS_H 7 #define _HID_SENSORS_IDS_H 8 9 #define HID_MAX_PHY_DEVICES 0xFF 10 11 #define HID_USAGE_SENSOR_COLLECTION 0x200001 12 13 /* Accel 3D (200073) */ 14 #define HID_USAGE_SENSOR_ACCEL_3D 0x200073 15 #define HID_USAGE_SENSOR_DATA_ACCELERATION 0x200452 16 #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 22 #define HID_USAGE_SENSOR_DATA_LIGHT 0x2004d0 23 #define HID_USAGE_SENSOR_LIGHT_ILLUM 0x2004d1 24 #define HID_USAGE_SENSOR_LIGHT_COLOR_TEMPERATURE 0x2004d2 25 #define HID_USAGE_SENSOR_LIGHT_CHROMATICITY 0x2004d3 26 #define HID_USAGE_SENSOR_LIGHT_CHROMATICITY_X 0x2004d4 27 #define HID_USAGE_SENSOR_LIGHT_CHROMATICITY_Y 0x2004d5 28 29 /* PROX (200011) */ 30 #define HID_USAGE_SENSOR_PROX 0x200011 31 #define HID_USAGE_SENSOR_DATA_PRESENCE 0x2004b0 32 #define HID_USAGE_SENSOR_HUMAN_PRESENCE 0x2004b1 33 #define HID_USAGE_SENSOR_HUMAN_PROXIMITY 0x2004b2 34 #define HID_USAGE_SENSOR_HUMAN_ATTENTION 0x2004bd 35 36 /* Pressure (200031) */ 37 #define HID_USAGE_SENSOR_PRESSURE 0x200031 38 #define HID_USAGE_SENSOR_DATA_ATMOSPHERIC_PRESSURE 0x200430 39 #define HID_USAGE_SENSOR_ATMOSPHERIC_PRESSURE 0x200431 40 41 /* Tempreture (200033) */ 42 #define HID_USAGE_SENSOR_TEMPERATURE 0x200033 43 #define HID_USAGE_SENSOR_DATA_ENVIRONMENTAL_TEMPERATURE 0x200434 44 45 /* humidity */ 46 #define HID_USAGE_SENSOR_HUMIDITY 0x200032 47 #define HID_USAGE_SENSOR_ATMOSPHERIC_HUMIDITY 0x200433 48 49 /* Gyro 3D: (200076) */ 50 #define HID_USAGE_SENSOR_GYRO_3D 0x200076 51 #define HID_USAGE_SENSOR_DATA_ANGL_VELOCITY 0x200456 52 #define HID_USAGE_SENSOR_ANGL_VELOCITY_X_AXIS 0x200457 53 #define HID_USAGE_SENSOR_ANGL_VELOCITY_Y_AXIS 0x200458 54 #define HID_USAGE_SENSOR_ANGL_VELOCITY_Z_AXIS 0x200459 55 56 /* Gravity vector */ 57 #define HID_USAGE_SENSOR_GRAVITY_VECTOR 0x20007B 58 59 /* ORIENTATION: Compass 3D: (200083) */ 60 #define HID_USAGE_SENSOR_COMPASS_3D 0x200083 61 #define HID_USAGE_SENSOR_DATA_ORIENTATION 0x200470 62 #define HID_USAGE_SENSOR_ORIENT_MAGN_HEADING 0x200471 63 #define HID_USAGE_SENSOR_ORIENT_MAGN_HEADING_X 0x200472 64 #define HID_USAGE_SENSOR_ORIENT_MAGN_HEADING_Y 0x200473 65 #define HID_USAGE_SENSOR_ORIENT_MAGN_HEADING_Z 0x200474 66 67 #define HID_USAGE_SENSOR_ORIENT_COMP_MAGN_NORTH 0x200475 68 #define HID_USAGE_SENSOR_ORIENT_COMP_TRUE_NORTH 0x200476 69 #define HID_USAGE_SENSOR_ORIENT_MAGN_NORTH 0x200477 70 #define HID_USAGE_SENSOR_ORIENT_TRUE_NORTH 0x200478 71 72 #define HID_USAGE_SENSOR_ORIENT_DISTANCE 0x200479 73 #define HID_USAGE_SENSOR_ORIENT_DISTANCE_X 0x20047A 74 #define HID_USAGE_SENSOR_ORIENT_DISTANCE_Y 0x20047B 75 #define HID_USAGE_SENSOR_ORIENT_DISTANCE_Z 0x20047C 76 #define HID_USAGE_SENSOR_ORIENT_DISTANCE_OUT_OF_RANGE 0x20047D 77 78 /* ORIENTATION: Inclinometer 3D: (200086) */ 79 #define HID_USAGE_SENSOR_INCLINOMETER_3D 0x200086 80 #define HID_USAGE_SENSOR_ORIENT_TILT 0x20047E 81 #define HID_USAGE_SENSOR_ORIENT_TILT_X 0x20047F 82 #define HID_USAGE_SENSOR_ORIENT_TILT_Y 0x200480 83 #define HID_USAGE_SENSOR_ORIENT_TILT_Z 0x200481 84 85 #define HID_USAGE_SENSOR_DEVICE_ORIENTATION 0x20008A 86 #define HID_USAGE_SENSOR_RELATIVE_ORIENTATION 0x20008E 87 #define HID_USAGE_SENSOR_GEOMAGNETIC_ORIENTATION 0x2000C1 88 #define HID_USAGE_SENSOR_ORIENT_ROTATION_MATRIX 0x200482 89 #define HID_USAGE_SENSOR_ORIENT_QUATERNION 0x200483 90 #define HID_USAGE_SENSOR_ORIENT_MAGN_FLUX 0x200484 91 92 #define HID_USAGE_SENSOR_ORIENT_MAGN_FLUX_X_AXIS 0x200485 93 #define HID_USAGE_SENSOR_ORIENT_MAGN_FLUX_Y_AXIS 0x200486 94 #define HID_USAGE_SENSOR_ORIENT_MAGN_FLUX_Z_AXIS 0x200487 95 96 /* Time (2000a0) */ 97 #define HID_USAGE_SENSOR_TIME 0x2000a0 98 #define HID_USAGE_SENSOR_TIME_YEAR 0x200521 99 #define HID_USAGE_SENSOR_TIME_MONTH 0x200522 100 #define HID_USAGE_SENSOR_TIME_DAY 0x200523 101 #define HID_USAGE_SENSOR_TIME_HOUR 0x200525 102 #define HID_USAGE_SENSOR_TIME_MINUTE 0x200526 103 #define HID_USAGE_SENSOR_TIME_SECOND 0x200527 104 #define HID_USAGE_SENSOR_TIME_TIMESTAMP 0x200529 105 106 /* Units */ 107 #define HID_USAGE_SENSOR_UNITS_NOT_SPECIFIED 0x00 108 #define HID_USAGE_SENSOR_UNITS_LUX 0x01 109 #define HID_USAGE_SENSOR_UNITS_KELVIN 0x01000100 110 #define HID_USAGE_SENSOR_UNITS_FAHRENHEIT 0x03000100 111 #define HID_USAGE_SENSOR_UNITS_PASCAL 0xF1E1 112 #define HID_USAGE_SENSOR_UNITS_NEWTON 0x11E1 113 #define HID_USAGE_SENSOR_UNITS_METERS_PER_SECOND 0x11F0 114 #define HID_USAGE_SENSOR_UNITS_METERS_PER_SEC_SQRD 0x11E0 115 #define HID_USAGE_SENSOR_UNITS_FARAD 0xE14F2000 116 #define HID_USAGE_SENSOR_UNITS_AMPERE 0x01001000 117 #define HID_USAGE_SENSOR_UNITS_WATT 0x21d1 118 #define HID_USAGE_SENSOR_UNITS_HENRY 0x21E1E000 119 #define HID_USAGE_SENSOR_UNITS_OHM 0x21D1E000 120 #define HID_USAGE_SENSOR_UNITS_VOLT 0x21D1F000 121 #define HID_USAGE_SENSOR_UNITS_HERTZ 0x01F0 122 #define HID_USAGE_SENSOR_UNITS_DEGREES_PER_SEC_SQRD 0x14E0 123 #define HID_USAGE_SENSOR_UNITS_RADIANS 0x12 124 #define HID_USAGE_SENSOR_UNITS_RADIANS_PER_SECOND 0x12F0 125 #define HID_USAGE_SENSOR_UNITS_RADIANS_PER_SEC_SQRD 0x12E0 126 #define HID_USAGE_SENSOR_UNITS_SECOND 0x0110 127 #define HID_USAGE_SENSOR_UNITS_GAUSS 0x01E1F000 128 #define HID_USAGE_SENSOR_UNITS_GRAM 0x0101 129 #define HID_USAGE_SENSOR_UNITS_CENTIMETER 0x11 130 #define HID_USAGE_SENSOR_UNITS_G 0x1A 131 #define HID_USAGE_SENSOR_UNITS_MILLISECOND 0x19 132 #define HID_USAGE_SENSOR_UNITS_PERCENT 0x17 133 #define HID_USAGE_SENSOR_UNITS_DEGREES 0x14 134 #define HID_USAGE_SENSOR_UNITS_DEGREES_PER_SECOND 0x15 135 136 /* Common selectors */ 137 #define HID_USAGE_SENSOR_PROP_DESC 0x200300 138 #define HID_USAGE_SENSOR_PROP_FRIENDLY_NAME 0x200301 139 #define HID_USAGE_SENSOR_PROP_SERIAL_NUM 0x200307 140 #define HID_USAGE_SENSOR_PROP_MANUFACTURER 0x200305 141 #define HID_USAGE_SENSOR_PROP_MODEL 0x200306 142 #define HID_USAGE_SENSOR_PROP_REPORT_INTERVAL 0x20030E 143 #define HID_USAGE_SENSOR_PROP_SENSITIVITY_ABS 0x20030F 144 #define HID_USAGE_SENSOR_PROP_SENSITIVITY_RANGE_PCT 0x200310 145 #define HID_USAGE_SENSOR_PROP_SENSITIVITY_REL_PCT 0x200311 146 #define HID_USAGE_SENSOR_PROP_ACCURACY 0x200312 147 #define HID_USAGE_SENSOR_PROP_RESOLUTION 0x200313 148 #define HID_USAGE_SENSOR_PROP_RANGE_MAXIMUM 0x200314 149 #define HID_USAGE_SENSOR_PROP_RANGE_MINIMUM 0x200315 150 #define HID_USAGE_SENSOR_PROP_REPORT_STATE 0x200316 151 #define HID_USAGE_SENSOR_PROY_POWER_STATE 0x200319 152 153 /* Batch mode selectors */ 154 #define HID_USAGE_SENSOR_PROP_REPORT_LATENCY 0x20031B 155 156 /* Per data field properties */ 157 #define HID_USAGE_SENSOR_DATA_MOD_NONE 0x00 158 #define HID_USAGE_SENSOR_DATA_MOD_CHANGE_SENSITIVITY_ABS 0x1000 159 #define HID_USAGE_SENSOR_DATA_MOD_CHANGE_SENSITIVITY_REL_PCT 0xE000 160 161 /* Power state enumerations */ 162 #define HID_USAGE_SENSOR_PROP_POWER_STATE_UNDEFINED_ENUM 0x200850 163 #define HID_USAGE_SENSOR_PROP_POWER_STATE_D0_FULL_POWER_ENUM 0x200851 164 #define HID_USAGE_SENSOR_PROP_POWER_STATE_D1_LOW_POWER_ENUM 0x200852 165 #define HID_USAGE_SENSOR_PROP_POWER_STATE_D2_STANDBY_WITH_WAKE_ENUM 0x200853 166 #define HID_USAGE_SENSOR_PROP_POWER_STATE_D3_SLEEP_WITH_WAKE_ENUM 0x200854 167 #define HID_USAGE_SENSOR_PROP_POWER_STATE_D4_POWER_OFF_ENUM 0x200855 168 169 /* Report State enumerations */ 170 #define HID_USAGE_SENSOR_PROP_REPORTING_STATE_NO_EVENTS_ENUM 0x200840 171 #define HID_USAGE_SENSOR_PROP_REPORTING_STATE_ALL_EVENTS_ENUM 0x200841 172 173 /* Custom Sensor (2000e1) */ 174 #define HID_USAGE_SENSOR_HINGE 0x20020B 175 #define HID_USAGE_SENSOR_DATA_FIELD_LOCATION 0x200400 176 #define HID_USAGE_SENSOR_DATA_FIELE_TIME_SINCE_SYS_BOOT 0x20052B 177 #define HID_USAGE_SENSOR_DATA_FIELD_CUSTOM_USAGE 0x200541 178 #define HID_USAGE_SENSOR_DATA_FIELD_CUSTOM_VALUE_BASE 0x200543 179 /* Custom Sensor data 28=>x>=0 */ 180 #define HID_USAGE_SENSOR_DATA_FIELD_CUSTOM_VALUE(x) \ 181 (HID_USAGE_SENSOR_DATA_FIELD_CUSTOM_VALUE_BASE + (x)) 182 183 #endif 184