tools/testing/selftests/hid/tests/descriptors_wacom.py

Source file repositories/reference/linux-study-clean/tools/testing/selftests/hid/tests/descriptors_wacom.py

File Facts

System
Linux kernel
Corpus path
tools/testing/selftests/hid/tests/descriptors_wacom.py
Extension
.py
Size
88178 bytes
Lines
1361
Domain
Support Tooling And Documentation
Bucket
tools
Inferred role
Support Tooling And Documentation: tools
Status
atlas-only

Why This File Exists

Repository support layer: documentation, build tooling, samples, user-space helper tools, generated initramfs support, licenses, and validation utilities.

Dependency Surface

Detected Declarations

Annotated Snippet

# SPDX-License-Identifier: GPL-2.0

# fmt: off
wacom_pth660_v145 = [
    0x05, 0x01,                     # . Usage Page (Desktop),
    0x09, 0x02,                     # . Usage (Mouse),
    0xA1, 0x01,                     # . Collection (Application),
    0x85, 0x01,                     # .     Report ID (1),
    0x09, 0x01,                     # .     Usage (Pointer),
    0xA1, 0x00,                     # .     Collection (Physical),
    0x05, 0x09,                     # .         Usage Page (Button),
    0x19, 0x01,                     # .         Usage Minimum (01h),
    0x29, 0x03,                     # .         Usage Maximum (03h),
    0x15, 0x00,                     # .         Logical Minimum (0),
    0x25, 0x01,                     # .         Logical Maximum (1),
    0x75, 0x01,                     # .         Report Size (1),
    0x95, 0x03,                     # .         Report Count (3),
    0x81, 0x02,                     # .         Input (Variable),
    0x75, 0x01,                     # .         Report Size (1),
    0x95, 0x05,                     # .         Report Count (5),
    0x81, 0x03,                     # .         Input (Constant, Variable),
    0x05, 0x01,                     # .         Usage Page (Desktop),
    0x09, 0x30,                     # .         Usage (X),
    0x09, 0x31,                     # .         Usage (Y),
    0x15, 0x81,                     # .         Logical Minimum (-127),
    0x25, 0x7F,                     # .         Logical Maximum (127),
    0x75, 0x08,                     # .         Report Size (8),
    0x95, 0x02,                     # .         Report Count (2),
    0x81, 0x06,                     # .         Input (Variable, Relative),
    0xC0,                           # .     End Collection,
    0xC0,                           # . End Collection,
    0x06, 0x0D, 0xFF,               # . Usage Page (FF0Dh),
    0x09, 0x01,                     # . Usage (01h),
    0xA1, 0x01,                     # . Collection (Application),
    0x85, 0x10,                     # .     Report ID (16),
    0x09, 0x20,                     # .     Usage (20h),
    0xA1, 0x00,                     # .     Collection (Physical),
    0x09, 0x42,                     # .         Usage (42h),
    0x09, 0x44,                     # .         Usage (44h),
    0x09, 0x5A,                     # .         Usage (5Ah),
    0x09, 0x45,                     # .         Usage (45h),
    0x09, 0x3C,                     # .         Usage (3Ch),
    0x09, 0x32,                     # .         Usage (32h),
    0x09, 0x36,                     # .         Usage (36h),
    0x15, 0x00,                     # .         Logical Minimum (0),
    0x25, 0x01,                     # .         Logical Maximum (1),
    0x75, 0x01,                     # .         Report Size (1),
    0x95, 0x07,                     # .         Report Count (7),
    0x81, 0x02,                     # .         Input (Variable),
    0x95, 0x01,                     # .         Report Count (1),
    0x81, 0x03,                     # .         Input (Constant, Variable),
    0x0A, 0x30, 0x01,               # .         Usage (0130h),
    0x65, 0x11,                     # .         Unit (Centimeter),
    0x55, 0x0D,                     # .         Unit Exponent (13),
    0x35, 0x00,                     # .         Physical Minimum (0),
    0x47, 0x80, 0x57, 0x00, 0x00,   # .         Physical Maximum (22400),
    0x15, 0x00,                     # .         Logical Minimum (0),
    0x27, 0x00, 0xAF, 0x00, 0x00,   # .         Logical Maximum (44800),
    0x75, 0x18,                     # .         Report Size (24),
    0x95, 0x01,                     # .         Report Count (1),
    0x81, 0x02,                     # .         Input (Variable),
    0x0A, 0x31, 0x01,               # .         Usage (0131h),
    0x47, 0xD0, 0x39, 0x00, 0x00,   # .         Physical Maximum (14800),
    0x27, 0xA0, 0x73, 0x00, 0x00,   # .         Logical Maximum (29600),
    0x81, 0x02,                     # .         Input (Variable),
    0x09, 0x30,                     # .         Usage (30h),
    0x55, 0x00,                     # .         Unit Exponent (0),
    0x65, 0x00,                     # .         Unit,
    0x15, 0x00,                     # .         Logical Minimum (0),
    0x26, 0xFF, 0x1F,               # .         Logical Maximum (8191),         # !!! Errata: Missing Physical Max = 0

Annotation

Implementation Notes