Lines Matching +full:0 +full:x81
10 #define VID_UGEE 0x28BD
11 #define PID_DECO_MINI_4 0x0929
14 #define PAD_REPORT_ID 0x06
20 * 0E 03 60 4F 88 3B 06 00 FF 1F D8 13
30 #define LOGICAL_MAX_X 0x60, 0x4F
31 #define LOGICAL_MAX_Y 0x88, 0x3B
32 #define PHYSICAL_MAX_X 0xA0, 0x0F
33 #define PHYSICAL_MAX_Y 0xB8, 0x0B
34 #define PRESSURE_MAX 0xFF, 0x1F
53 * record. For example, when button 2 (0x08) and button 1 (0x05) are pressed,
67 * | `- Button 5 (0x16)
68 * `- 0x05 = 0101. Button 3 is pressed
74 static const __u8 pad_buttons[] = { 0x05, 0x08, 0x00, 0x2C, 0x16, 0x1D };
77 0x05, 0x01, /* Usage Page (Desktop), */
78 0x09, 0x07, /* Usage (Keypad), */
79 0xA1, 0x01, /* Collection (Application), */
80 0x85, 0x06, /* Report ID (6), */
81 0x05, 0x0D, /* Usage Page (Digitizer), */
82 0x09, 0x39, /* Usage (Tablet Function Keys), */
83 0xA0, /* Collection (Physical), */
84 0x05, 0x09, /* Usage Page (Button), */
85 0x75, 0x01, /* Report Size (1), */
86 0x95, 0x06, /* Report Count (6), */
87 0x19, 0x01, /* Usage Minimum (01h), */
88 0x29, 0x06, /* Usage Maximum (06h), */
89 0x14, /* Logical Minimum (0), */
90 0x25, 0x01, /* Logical Maximum (1), */
91 0x81, 0x02, /* Input (Variable), */
92 0x95, 0x32, /* Report Count (50), */
93 0x81, 0x01, /* Input (Constant), */
94 0xC0, /* End Collection, */
95 0xC0 /* End Collection */
99 0x05, 0x0d, /* Usage Page (Digitizers), */
100 0x09, 0x01, /* Usage (Digitizer), */
101 0xa1, 0x01, /* Collection (Application), */
102 0x85, 0x07, /* Report ID (7), */
103 0x09, 0x20, /* Usage (Stylus), */
104 0xa1, 0x00, /* Collection (Physical), */
105 0x09, 0x42, /* Usage (Tip Switch), */
106 0x09, 0x44, /* Usage (Barrel Switch), */
107 0x09, 0x46, /* Usage (Tablet Pick), */
108 0x75, 0x01, /* Report Size (1), */
109 0x95, 0x03, /* Report Count (3), */
110 0x14, /* Logical Minimum (0), */
111 0x25, 0x01, /* Logical Maximum (1), */
112 0x81, 0x02, /* Input (Variable), */
113 0x95, 0x02, /* Report Count (2), */
114 0x81, 0x03, /* Input (Constant, Variable), */
115 0x09, 0x32, /* Usage (In Range), */
116 0x95, 0x01, /* Report Count (1), */
117 0x81, 0x02, /* Input (Variable), */
118 0x95, 0x02, /* Report Count (2), */
119 0x81, 0x03, /* Input (Constant, Variable), */
120 0x75, 0x10, /* Report Size (16), */
121 0x95, 0x01, /* Report Count (1), */
122 0x35, 0x00, /* Physical Minimum (0), */
123 0xa4, /* Push, */
124 0x05, 0x01, /* Usage Page (Desktop), */
125 0x09, 0x30, /* Usage (X), */
126 0x65, 0x13, /* Unit (Inch), */
127 0x55, 0x0d, /* Unit Exponent (-3), */
128 0x26, LOGICAL_MAX_X, /* Logical Maximum, */
129 0x46, PHYSICAL_MAX_X, /* Physical Maximum, */
130 0x81, 0x02, /* Input (Variable), */
131 0x09, 0x31, /* Usage (Y), */
132 0x26, LOGICAL_MAX_Y, /* Logical Maximum, */
133 0x46, PHYSICAL_MAX_Y, /* Physical Maximum, */
134 0x81, 0x02, /* Input (Variable), */
135 0xb4, /* Pop, */
136 0x09, 0x30, /* Usage (Tip Pressure), */
137 0x45, 0x00, /* Physical Maximum (0), */
138 0x26, PRESSURE_MAX, /* Logical Maximum, */
139 0x75, 0x0D, /* Report Size (13), */
140 0x95, 0x01, /* Report Count (1), */
141 0x81, 0x02, /* Input (Variable), */
142 0x75, 0x01, /* Report Size (1), */
143 0x95, 0x13, /* Report Count (19), */
144 0x81, 0x01, /* Input (Constant), */
145 0xc0, /* End Collection, */
146 0xc0, /* End Collection */
155 __u8 *data = hid_bpf_get_data(hctx, 0, HID_MAX_DESCRIPTOR_SIZE); in SEC()
158 return 0; /* EPERM check */ in SEC()
168 return 0; in SEC()
174 __u8 *data = hid_bpf_get_data(hctx, 0 /* offset */, 8 /* size */); in SEC()
175 __u8 button_mask = 0; in SEC()
179 return 0; /* EPERM check */ in SEC()
181 if (data[0] != PAD_REPORT_ID) in SEC()
182 return 0; in SEC()
190 for (b = 0; b < sizeof(pad_buttons); b++) { in SEC()
191 if (data[d] != 0 && data[d] == pad_buttons[b]) in SEC()
196 __u8 report[8] = {PAD_REPORT_ID, button_mask, 0x00}; in SEC()
200 return 0; in SEC()
228 return 0; in probe()