Skip to content

Commit 9ea1b35

Browse files
westeribentiss
authored andcommitted
HID: debug: Add USI usages
Add USI defined usages to the HID debug code. Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com> Signed-off-by: Tero Kristo <tero.kristo@linux.intel.com> Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com> Link: https://lore.kernel.org/r/20211210111138.1248187-6-tero.kristo@linux.intel.com
1 parent 5904a3f commit 9ea1b35

1 file changed

Lines changed: 35 additions & 0 deletions

File tree

drivers/hid/hid-debug.c

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,10 @@ static const struct hid_usage_entry hid_usage_table[] = {
141141
{0, 0x33, "Touch"},
142142
{0, 0x34, "UnTouch"},
143143
{0, 0x35, "Tap"},
144+
{0, 0x38, "Transducer Index"},
144145
{0, 0x39, "TabletFunctionKey"},
145146
{0, 0x3a, "ProgramChangeKey"},
147+
{0, 0x3B, "Battery Strength"},
146148
{0, 0x3c, "Invert"},
147149
{0, 0x42, "TipSwitch"},
148150
{0, 0x43, "SecondaryTipSwitch"},
@@ -160,7 +162,40 @@ static const struct hid_usage_entry hid_usage_table[] = {
160162
{0, 0x59, "ButtonType"},
161163
{0, 0x5A, "SecondaryBarrelSwitch"},
162164
{0, 0x5B, "TransducerSerialNumber"},
165+
{0, 0x5C, "Preferred Color"},
166+
{0, 0x5D, "Preferred Color is Locked"},
167+
{0, 0x5E, "Preferred Line Width"},
168+
{0, 0x5F, "Preferred Line Width is Locked"},
163169
{0, 0x6e, "TransducerSerialNumber2"},
170+
{0, 0x70, "Preferred Line Style"},
171+
{0, 0x71, "Preferred Line Style is Locked"},
172+
{0, 0x72, "Ink"},
173+
{0, 0x73, "Pencil"},
174+
{0, 0x74, "Highlighter"},
175+
{0, 0x75, "Chisel Marker"},
176+
{0, 0x76, "Brush"},
177+
{0, 0x77, "No Preference"},
178+
{0, 0x80, "Digitizer Diagnostic"},
179+
{0, 0x81, "Digitizer Error"},
180+
{0, 0x82, "Err Normal Status"},
181+
{0, 0x83, "Err Transducers Exceeded"},
182+
{0, 0x84, "Err Full Trans Features Unavailable"},
183+
{0, 0x85, "Err Charge Low"},
184+
{0, 0x90, "Transducer Software Info"},
185+
{0, 0x91, "Transducer Vendor Id"},
186+
{0, 0x92, "Transducer Product Id"},
187+
{0, 0x93, "Device Supported Protocols"},
188+
{0, 0x94, "Transducer Supported Protocols"},
189+
{0, 0x95, "No Protocol"},
190+
{0, 0x96, "Wacom AES Protocol"},
191+
{0, 0x97, "USI Protocol"},
192+
{0, 0x98, "Microsoft Pen Protocol"},
193+
{0, 0xA0, "Supported Report Rates"},
194+
{0, 0xA1, "Report Rate"},
195+
{0, 0xA2, "Transducer Connected"},
196+
{0, 0xA3, "Switch Disabled"},
197+
{0, 0xA4, "Switch Unimplemented"},
198+
{0, 0xA5, "Transducer Switches"},
164199
{ 15, 0, "PhysicalInterfaceDevice" },
165200
{0, 0x00, "Undefined"},
166201
{0, 0x01, "Physical_Interface_Device"},

0 commit comments

Comments
 (0)