Lines Matching +full:0 +full:x1901

80 #define MAP_DPAD_TO_BUTTONS		BIT(0)
91 #define XTYPE_XBOX 0
102 #define PKT_XB 0
132 { 0x0079, 0x18d4, "GPD Win 2 X-Box Controller", 0, XTYPE_XBOX360 },
133 { 0x03eb, 0xff01, "Wooting One (Legacy)", 0, XTYPE_XBOX360 },
134 { 0x03eb, 0xff02, "Wooting Two (Legacy)", 0, XTYPE_XBOX360 },
135 { 0x03f0, 0x038D, "HyperX Clutch", 0, XTYPE_XBOX360 }, /* wired */
136 { 0x03f0, 0x048D, "HyperX Clutch", 0, XTYPE_XBOX360 }, /* wireless */
137 { 0x03f0, 0x0495, "HyperX Clutch Gladiate", 0, XTYPE_XBOXONE },
138 { 0x03f0, 0x07A0, "HyperX Clutch Gladiate RGB", 0, XTYPE_XBOXONE },
139 { 0x03f0, 0x08B6, "HyperX Clutch Gladiate", MAP_SHARE_BUTTON, XTYPE_XBOXONE }, /* v2 */
140 { 0x03f0, 0x09B4, "HyperX Clutch Tanto", 0, XTYPE_XBOXONE },
141 { 0x044f, 0x0f00, "Thrustmaster Wheel", 0, XTYPE_XBOX },
142 { 0x044f, 0x0f03, "Thrustmaster Wheel", 0, XTYPE_XBOX },
143 { 0x044f, 0x0f07, "Thrustmaster, Inc. Controller", 0, XTYPE_XBOX },
144 { 0x044f, 0x0f10, "Thrustmaster Modena GT Wheel", 0, XTYPE_XBOX },
145 { 0x044f, 0xb326, "Thrustmaster Gamepad GP XID", 0, XTYPE_XBOX360 },
146 { 0x044f, 0xd01e, "ThrustMaster, Inc. ESWAP X 2 ELDEN RING EDITION", 0, XTYPE_XBOXONE },
147 { 0x045e, 0x0202, "Microsoft X-Box pad v1 (US)", 0, XTYPE_XBOX },
148 { 0x045e, 0x0285, "Microsoft X-Box pad (Japan)", 0, XTYPE_XBOX },
149 { 0x045e, 0x0287, "Microsoft Xbox Controller S", 0, XTYPE_XBOX },
150 { 0x045e, 0x0288, "Microsoft Xbox Controller S v2", 0, XTYPE_XBOX },
151 { 0x045e, 0x0289, "Microsoft X-Box pad v2 (US)", 0, XTYPE_XBOX },
152 { 0x045e, 0x028e, "Microsoft X-Box 360 pad", 0, XTYPE_XBOX360 },
153 { 0x045e, 0x028f, "Microsoft X-Box 360 pad v2", 0, XTYPE_XBOX360 },
154 { 0x045e, 0x0291, "Xbox 360 Wireless Receiver (XBOX)", MAP_DPAD_TO_BUTTONS, XTYPE_XBOX360W },
155 { 0x045e, 0x02a9, "Xbox 360 Wireless Receiver (Unofficial)", MAP_DPAD_TO_BUTTONS, XTYPE_XBOX360W },
156 { 0x045e, 0x02d1, "Microsoft X-Box One pad", 0, XTYPE_XBOXONE },
157 { 0x045e, 0x02dd, "Microsoft X-Box One pad (Firmware 2015)", 0, XTYPE_XBOXONE },
158 { 0x045e, 0x02e3, "Microsoft X-Box One Elite pad", MAP_PADDLES, XTYPE_XBOXONE },
159 { 0x045e, 0x02ea, "Microsoft X-Box One S pad", 0, XTYPE_XBOXONE },
160 { 0x045e, 0x0719, "Xbox 360 Wireless Receiver", MAP_DPAD_TO_BUTTONS, XTYPE_XBOX360W },
161 { 0x045e, 0x0b00, "Microsoft X-Box One Elite 2 pad", MAP_PADDLES, XTYPE_XBOXONE },
162 { 0x045e, 0x0b0a, "Microsoft X-Box Adaptive Controller", MAP_PROFILE_BUTTON, XTYPE_XBOXONE },
163 …{ 0x045e, 0x0b12, "Microsoft Xbox Series S|X Controller", MAP_SHARE_BUTTON | MAP_SHARE_OFFSET, XTY…
164 { 0x046d, 0xc21d, "Logitech Gamepad F310", 0, XTYPE_XBOX360 },
165 { 0x046d, 0xc21e, "Logitech Gamepad F510", 0, XTYPE_XBOX360 },
166 { 0x046d, 0xc21f, "Logitech Gamepad F710", 0, XTYPE_XBOX360 },
167 { 0x046d, 0xc242, "Logitech Chillstream Controller", 0, XTYPE_XBOX360 },
168 { 0x046d, 0xca84, "Logitech Xbox Cordless Controller", 0, XTYPE_XBOX },
169 { 0x046d, 0xca88, "Logitech Compact Controller for Xbox", 0, XTYPE_XBOX },
170 { 0x046d, 0xca8a, "Logitech Precision Vibration Feedback Wheel", 0, XTYPE_XBOX },
171 { 0x046d, 0xcaa3, "Logitech DriveFx Racing Wheel", 0, XTYPE_XBOX360 },
172 { 0x056e, 0x2004, "Elecom JC-U3613M", 0, XTYPE_XBOX360 },
173 { 0x05fd, 0x1007, "Mad Catz Controller (unverified)", 0, XTYPE_XBOX },
174 { 0x05fd, 0x107a, "InterAct 'PowerPad Pro' X-Box pad (Germany)", 0, XTYPE_XBOX },
175 { 0x05fe, 0x3030, "Chic Controller", 0, XTYPE_XBOX },
176 { 0x05fe, 0x3031, "Chic Controller", 0, XTYPE_XBOX },
177 { 0x062a, 0x0020, "Logic3 Xbox GamePad", 0, XTYPE_XBOX },
178 { 0x062a, 0x0033, "Competition Pro Steering Wheel", 0, XTYPE_XBOX },
179 { 0x06a3, 0x0200, "Saitek Racing Wheel", 0, XTYPE_XBOX },
180 { 0x06a3, 0x0201, "Saitek Adrenalin", 0, XTYPE_XBOX },
181 { 0x06a3, 0xf51a, "Saitek P3600", 0, XTYPE_XBOX360 },
182 { 0x0738, 0x4503, "Mad Catz Racing Wheel", 0, XTYPE_XBOXONE },
183 { 0x0738, 0x4506, "Mad Catz 4506 Wireless Controller", 0, XTYPE_XBOX },
184 { 0x0738, 0x4516, "Mad Catz Control Pad", 0, XTYPE_XBOX },
185 { 0x0738, 0x4520, "Mad Catz Control Pad Pro", 0, XTYPE_XBOX },
186 { 0x0738, 0x4522, "Mad Catz LumiCON", 0, XTYPE_XBOX },
187 { 0x0738, 0x4526, "Mad Catz Control Pad Pro", 0, XTYPE_XBOX },
188 { 0x0738, 0x4530, "Mad Catz Universal MC2 Racing Wheel and Pedals", 0, XTYPE_XBOX },
189 { 0x0738, 0x4536, "Mad Catz MicroCON", 0, XTYPE_XBOX },
190 { 0x0738, 0x4540, "Mad Catz Beat Pad", MAP_DPAD_TO_BUTTONS, XTYPE_XBOX },
191 { 0x0738, 0x4556, "Mad Catz Lynx Wireless Controller", 0, XTYPE_XBOX },
192 { 0x0738, 0x4586, "Mad Catz MicroCon Wireless Controller", 0, XTYPE_XBOX },
193 { 0x0738, 0x4588, "Mad Catz Blaster", 0, XTYPE_XBOX },
194 { 0x0738, 0x45ff, "Mad Catz Beat Pad (w/ Handle)", MAP_DPAD_TO_BUTTONS, XTYPE_XBOX },
195 { 0x0738, 0x4716, "Mad Catz Wired Xbox 360 Controller", 0, XTYPE_XBOX360 },
196 { 0x0738, 0x4718, "Mad Catz Street Fighter IV FightStick SE", 0, XTYPE_XBOX360 },
197 { 0x0738, 0x4726, "Mad Catz Xbox 360 Controller", 0, XTYPE_XBOX360 },
198 { 0x0738, 0x4728, "Mad Catz Street Fighter IV FightPad", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 },
199 { 0x0738, 0x4736, "Mad Catz MicroCon Gamepad", 0, XTYPE_XBOX360 },
200 …{ 0x0738, 0x4738, "Mad Catz Wired Xbox 360 Controller (SFIV)", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX…
201 { 0x0738, 0x4740, "Mad Catz Beat Pad", 0, XTYPE_XBOX360 },
202 { 0x0738, 0x4743, "Mad Catz Beat Pad Pro", MAP_DPAD_TO_BUTTONS, XTYPE_XBOX },
203 { 0x0738, 0x4758, "Mad Catz Arcade Game Stick", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 },
204 { 0x0738, 0x4a01, "Mad Catz FightStick TE 2", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOXONE },
205 { 0x0738, 0x6040, "Mad Catz Beat Pad Pro", MAP_DPAD_TO_BUTTONS, XTYPE_XBOX },
206 { 0x0738, 0x9871, "Mad Catz Portable Drum", 0, XTYPE_XBOX360 },
207 { 0x0738, 0xb726, "Mad Catz Xbox controller - MW2", 0, XTYPE_XBOX360 },
208 { 0x0738, 0xb738, "Mad Catz MVC2TE Stick 2", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 },
209 { 0x0738, 0xbeef, "Mad Catz JOYTECH NEO SE Advanced GamePad", 0, XTYPE_XBOX360 },
210 { 0x0738, 0xcb02, "Saitek Cyborg Rumble Pad - PC/Xbox 360", 0, XTYPE_XBOX360 },
211 { 0x0738, 0xcb03, "Saitek P3200 Rumble Pad - PC/Xbox 360", 0, XTYPE_XBOX360 },
212 { 0x0738, 0xcb29, "Saitek Aviator Stick AV8R02", 0, XTYPE_XBOX360 },
213 { 0x0738, 0xf738, "Super SFIV FightStick TE S", 0, XTYPE_XBOX360 },
214 { 0x07ff, 0xffff, "Mad Catz GamePad", 0, XTYPE_XBOX360 },
215 { 0x0b05, 0x1a38, "ASUS ROG RAIKIRI", MAP_SHARE_BUTTON, XTYPE_XBOXONE },
216 { 0x0b05, 0x1abb, "ASUS ROG RAIKIRI PRO", 0, XTYPE_XBOXONE },
217 { 0x0c12, 0x0005, "Intec wireless", 0, XTYPE_XBOX },
218 { 0x0c12, 0x8801, "Nyko Xbox Controller", 0, XTYPE_XBOX },
219 { 0x0c12, 0x8802, "Zeroplus Xbox Controller", 0, XTYPE_XBOX },
220 { 0x0c12, 0x8809, "RedOctane Xbox Dance Pad", DANCEPAD_MAP_CONFIG, XTYPE_XBOX },
221 { 0x0c12, 0x880a, "Pelican Eclipse PL-2023", 0, XTYPE_XBOX },
222 { 0x0c12, 0x8810, "Zeroplus Xbox Controller", 0, XTYPE_XBOX },
223 { 0x0c12, 0x9902, "HAMA VibraX - *FAULTY HARDWARE*", 0, XTYPE_XBOX },
224 { 0x0d2f, 0x0002, "Andamiro Pump It Up pad", MAP_DPAD_TO_BUTTONS, XTYPE_XBOX },
225 { 0x0db0, 0x1901, "Micro Star International Xbox360 Controller for Windows", 0, XTYPE_XBOX360 },
226 { 0x0e4c, 0x1097, "Radica Gamester Controller", 0, XTYPE_XBOX },
227 { 0x0e4c, 0x1103, "Radica Gamester Reflex", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX },
228 { 0x0e4c, 0x2390, "Radica Games Jtech Controller", 0, XTYPE_XBOX },
229 { 0x0e4c, 0x3510, "Radica Gamester", 0, XTYPE_XBOX },
230 { 0x0e6f, 0x0003, "Logic3 Freebird wireless Controller", 0, XTYPE_XBOX },
231 { 0x0e6f, 0x0005, "Eclipse wireless Controller", 0, XTYPE_XBOX },
232 { 0x0e6f, 0x0006, "Edge wireless Controller", 0, XTYPE_XBOX },
233 { 0x0e6f, 0x0008, "After Glow Pro Controller", 0, XTYPE_XBOX },
234 { 0x0e6f, 0x0105, "HSM3 Xbox360 dancepad", MAP_DPAD_TO_BUTTONS, XTYPE_XBOX360 },
235 { 0x0e6f, 0x0113, "Afterglow AX.1 Gamepad for Xbox 360", 0, XTYPE_XBOX360 },
236 { 0x0e6f, 0x011f, "Rock Candy Gamepad Wired Controller", 0, XTYPE_XBOX360 },
237 { 0x0e6f, 0x0131, "PDP EA Sports Controller", 0, XTYPE_XBOX360 },
238 { 0x0e6f, 0x0133, "Xbox 360 Wired Controller", 0, XTYPE_XBOX360 },
239 { 0x0e6f, 0x0139, "Afterglow Prismatic Wired Controller", 0, XTYPE_XBOXONE },
240 { 0x0e6f, 0x013a, "PDP Xbox One Controller", 0, XTYPE_XBOXONE },
241 { 0x0e6f, 0x0146, "Rock Candy Wired Controller for Xbox One", 0, XTYPE_XBOXONE },
242 { 0x0e6f, 0x0147, "PDP Marvel Xbox One Controller", 0, XTYPE_XBOXONE },
243 { 0x0e6f, 0x015c, "PDP Xbox One Arcade Stick", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOXONE },
244 { 0x0e6f, 0x015d, "PDP Mirror's Edge Official Wired Controller for Xbox One", 0, XTYPE_XBOXONE },
245 { 0x0e6f, 0x0161, "PDP Xbox One Controller", 0, XTYPE_XBOXONE },
246 { 0x0e6f, 0x0162, "PDP Xbox One Controller", 0, XTYPE_XBOXONE },
247 { 0x0e6f, 0x0163, "PDP Xbox One Controller", 0, XTYPE_XBOXONE },
248 { 0x0e6f, 0x0164, "PDP Battlefield One", 0, XTYPE_XBOXONE },
249 { 0x0e6f, 0x0165, "PDP Titanfall 2", 0, XTYPE_XBOXONE },
250 { 0x0e6f, 0x0201, "Pelican PL-3601 'TSZ' Wired Xbox 360 Controller", 0, XTYPE_XBOX360 },
251 { 0x0e6f, 0x0213, "Afterglow Gamepad for Xbox 360", 0, XTYPE_XBOX360 },
252 { 0x0e6f, 0x021f, "Rock Candy Gamepad for Xbox 360", 0, XTYPE_XBOX360 },
253 { 0x0e6f, 0x0246, "Rock Candy Gamepad for Xbox One 2015", 0, XTYPE_XBOXONE },
254 { 0x0e6f, 0x02a0, "PDP Xbox One Controller", 0, XTYPE_XBOXONE },
255 { 0x0e6f, 0x02a1, "PDP Xbox One Controller", 0, XTYPE_XBOXONE },
256 { 0x0e6f, 0x02a2, "PDP Wired Controller for Xbox One - Crimson Red", 0, XTYPE_XBOXONE },
257 { 0x0e6f, 0x02a4, "PDP Wired Controller for Xbox One - Stealth Series", 0, XTYPE_XBOXONE },
258 { 0x0e6f, 0x02a6, "PDP Wired Controller for Xbox One - Camo Series", 0, XTYPE_XBOXONE },
259 { 0x0e6f, 0x02a7, "PDP Xbox One Controller", 0, XTYPE_XBOXONE },
260 { 0x0e6f, 0x02a8, "PDP Xbox One Controller", 0, XTYPE_XBOXONE },
261 { 0x0e6f, 0x02ab, "PDP Controller for Xbox One", 0, XTYPE_XBOXONE },
262 { 0x0e6f, 0x02ad, "PDP Wired Controller for Xbox One - Stealth Series", 0, XTYPE_XBOXONE },
263 { 0x0e6f, 0x02b3, "Afterglow Prismatic Wired Controller", 0, XTYPE_XBOXONE },
264 { 0x0e6f, 0x02b8, "Afterglow Prismatic Wired Controller", 0, XTYPE_XBOXONE },
265 { 0x0e6f, 0x0301, "Logic3 Controller", 0, XTYPE_XBOX360 },
266 { 0x0e6f, 0x0346, "Rock Candy Gamepad for Xbox One 2016", 0, XTYPE_XBOXONE },
267 { 0x0e6f, 0x0401, "Logic3 Controller", 0, XTYPE_XBOX360 },
268 { 0x0e6f, 0x0413, "Afterglow AX.1 Gamepad for Xbox 360", 0, XTYPE_XBOX360 },
269 { 0x0e6f, 0x0501, "PDP Xbox 360 Controller", 0, XTYPE_XBOX360 },
270 { 0x0e6f, 0xf900, "PDP Afterglow AX.1", 0, XTYPE_XBOX360 },
271 { 0x0e8f, 0x0201, "SmartJoy Frag Xpad/PS2 adaptor", 0, XTYPE_XBOX },
272 { 0x0e8f, 0x3008, "Generic xbox control (dealextreme)", 0, XTYPE_XBOX },
273 { 0x0f0d, 0x000a, "Hori Co. DOA4 FightStick", 0, XTYPE_XBOX360 },
274 { 0x0f0d, 0x000c, "Hori PadEX Turbo", 0, XTYPE_XBOX360 },
275 { 0x0f0d, 0x000d, "Hori Fighting Stick EX2", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 },
276 { 0x0f0d, 0x0016, "Hori Real Arcade Pro.EX", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 },
277 { 0x0f0d, 0x001b, "Hori Real Arcade Pro VX", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 },
278 …{ 0x0f0d, 0x0063, "Hori Real Arcade Pro Hayabusa (USA) Xbox One", MAP_TRIGGERS_TO_BUTTONS, XTYPE_X…
279 { 0x0f0d, 0x0067, "HORIPAD ONE", 0, XTYPE_XBOXONE },
280 { 0x0f0d, 0x0078, "Hori Real Arcade Pro V Kai Xbox One", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOXONE },
281 { 0x0f0d, 0x00c5, "Hori Fighting Commander ONE", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOXONE },
282 { 0x0f0d, 0x00dc, "HORIPAD FPS for Nintendo Switch", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 },
283 { 0x0f0d, 0x0151, "Hori Racing Wheel Overdrive for Xbox Series X", 0, XTYPE_XBOXONE },
284 { 0x0f0d, 0x0152, "Hori Racing Wheel Overdrive for Xbox Series X", 0, XTYPE_XBOXONE },
285 { 0x0f0d, 0x01b2, "HORI Taiko No Tatsujin Drum Controller", MAP_SHARE_BUTTON, XTYPE_XBOXONE },
286 { 0x0f30, 0x010b, "Philips Recoil", 0, XTYPE_XBOX },
287 { 0x0f30, 0x0202, "Joytech Advanced Controller", 0, XTYPE_XBOX },
288 { 0x0f30, 0x8888, "BigBen XBMiniPad Controller", 0, XTYPE_XBOX },
289 { 0x102c, 0xff0c, "Joytech Wireless Advanced Controller", 0, XTYPE_XBOX },
290 { 0x1038, 0x1430, "SteelSeries Stratus Duo", 0, XTYPE_XBOX360 },
291 { 0x1038, 0x1431, "SteelSeries Stratus Duo", 0, XTYPE_XBOX360 },
292 { 0x10f5, 0x7005, "Turtle Beach Recon Controller", 0, XTYPE_XBOXONE },
293 { 0x10f5, 0x7008, "Turtle Beach Recon Controller", MAP_SHARE_BUTTON, XTYPE_XBOXONE },
294 { 0x10f5, 0x7073, "Turtle Beach Stealth Ultra Controller", MAP_SHARE_BUTTON, XTYPE_XBOXONE },
295 { 0x11c9, 0x55f0, "Nacon GC-100XF", 0, XTYPE_XBOX360 },
296 { 0x11ff, 0x0511, "PXN V900", 0, XTYPE_XBOX360 },
297 { 0x1209, 0x2882, "Ardwiino Controller", 0, XTYPE_XBOX360 },
298 { 0x12ab, 0x0004, "Honey Bee Xbox360 dancepad", MAP_DPAD_TO_BUTTONS, XTYPE_XBOX360 },
299 { 0x12ab, 0x0301, "PDP AFTERGLOW AX.1", 0, XTYPE_XBOX360 },
300 { 0x12ab, 0x0303, "Mortal Kombat Klassic FightStick", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 },
301 { 0x12ab, 0x8809, "Xbox DDR dancepad", MAP_DPAD_TO_BUTTONS, XTYPE_XBOX },
302 { 0x1430, 0x4748, "RedOctane Guitar Hero X-plorer", 0, XTYPE_XBOX360 },
303 { 0x1430, 0x8888, "TX6500+ Dance Pad (first generation)", MAP_DPAD_TO_BUTTONS, XTYPE_XBOX },
304 { 0x1430, 0xf801, "RedOctane Controller", 0, XTYPE_XBOX360 },
305 { 0x146b, 0x0601, "BigBen Interactive XBOX 360 Controller", 0, XTYPE_XBOX360 },
306 …{ 0x146b, 0x0604, "Bigben Interactive DAIJA Arcade Stick", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 …
307 { 0x1532, 0x0a00, "Razer Atrox Arcade Stick", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOXONE },
308 { 0x1532, 0x0a03, "Razer Wildcat", 0, XTYPE_XBOXONE },
309 { 0x1532, 0x0a29, "Razer Wolverine V2", 0, XTYPE_XBOXONE },
310 { 0x15e4, 0x3f00, "Power A Mini Pro Elite", 0, XTYPE_XBOX360 },
311 { 0x15e4, 0x3f0a, "Xbox Airflo wired controller", 0, XTYPE_XBOX360 },
312 { 0x15e4, 0x3f10, "Batarang Xbox 360 controller", 0, XTYPE_XBOX360 },
313 { 0x162e, 0xbeef, "Joytech Neo-Se Take2", 0, XTYPE_XBOX360 },
314 { 0x1689, 0xfd00, "Razer Onza Tournament Edition", 0, XTYPE_XBOX360 },
315 { 0x1689, 0xfd01, "Razer Onza Classic Edition", 0, XTYPE_XBOX360 },
316 { 0x1689, 0xfe00, "Razer Sabertooth", 0, XTYPE_XBOX360 },
317 { 0x17ef, 0x6182, "Lenovo Legion Controller for Windows", 0, XTYPE_XBOX360 },
318 { 0x1949, 0x041a, "Amazon Game Controller", 0, XTYPE_XBOX360 },
319 { 0x1a86, 0xe310, "Legion Go S", 0, XTYPE_XBOX360 },
320 { 0x1bad, 0x0002, "Harmonix Rock Band Guitar", 0, XTYPE_XBOX360 },
321 { 0x1bad, 0x0003, "Harmonix Rock Band Drumkit", MAP_DPAD_TO_BUTTONS, XTYPE_XBOX360 },
322 { 0x1bad, 0x0130, "Ion Drum Rocker", MAP_DPAD_TO_BUTTONS, XTYPE_XBOX360 },
323 { 0x1bad, 0xf016, "Mad Catz Xbox 360 Controller", 0, XTYPE_XBOX360 },
324 …{ 0x1bad, 0xf018, "Mad Catz Street Fighter IV SE Fighting Stick", MAP_TRIGGERS_TO_BUTTONS, XTYPE_X…
325 { 0x1bad, 0xf019, "Mad Catz Brawlstick for Xbox 360", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 },
326 { 0x1bad, 0xf021, "Mad Cats Ghost Recon FS GamePad", 0, XTYPE_XBOX360 },
327 { 0x1bad, 0xf023, "MLG Pro Circuit Controller (Xbox)", 0, XTYPE_XBOX360 },
328 { 0x1bad, 0xf025, "Mad Catz Call Of Duty", 0, XTYPE_XBOX360 },
329 { 0x1bad, 0xf027, "Mad Catz FPS Pro", 0, XTYPE_XBOX360 },
330 { 0x1bad, 0xf028, "Street Fighter IV FightPad", 0, XTYPE_XBOX360 },
331 { 0x1bad, 0xf02e, "Mad Catz Fightpad", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 },
332 { 0x1bad, 0xf030, "Mad Catz Xbox 360 MC2 MicroCon Racing Wheel", 0, XTYPE_XBOX360 },
333 { 0x1bad, 0xf036, "Mad Catz MicroCon GamePad Pro", 0, XTYPE_XBOX360 },
334 { 0x1bad, 0xf038, "Street Fighter IV FightStick TE", 0, XTYPE_XBOX360 },
335 { 0x1bad, 0xf039, "Mad Catz MvC2 TE", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 },
336 { 0x1bad, 0xf03a, "Mad Catz SFxT Fightstick Pro", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 },
337 …{ 0x1bad, 0xf03d, "Street Fighter IV Arcade Stick TE - Chun Li", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XB…
338 { 0x1bad, 0xf03e, "Mad Catz MLG FightStick TE", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 },
339 { 0x1bad, 0xf03f, "Mad Catz FightStick SoulCaliber", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 },
340 { 0x1bad, 0xf042, "Mad Catz FightStick TES+", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 },
341 { 0x1bad, 0xf080, "Mad Catz FightStick TE2", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 },
342 { 0x1bad, 0xf501, "HoriPad EX2 Turbo", 0, XTYPE_XBOX360 },
343 { 0x1bad, 0xf502, "Hori Real Arcade Pro.VX SA", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 },
344 { 0x1bad, 0xf503, "Hori Fighting Stick VX", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 },
345 { 0x1bad, 0xf504, "Hori Real Arcade Pro. EX", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 },
346 { 0x1bad, 0xf505, "Hori Fighting Stick EX2B", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 },
347 { 0x1bad, 0xf506, "Hori Real Arcade Pro.EX Premium VLX", 0, XTYPE_XBOX360 },
348 { 0x1bad, 0xf900, "Harmonix Xbox 360 Controller", 0, XTYPE_XBOX360 },
349 { 0x1bad, 0xf901, "Gamestop Xbox 360 Controller", 0, XTYPE_XBOX360 },
350 { 0x1bad, 0xf903, "Tron Xbox 360 controller", 0, XTYPE_XBOX360 },
351 { 0x1bad, 0xf904, "PDP Versus Fighting Pad", 0, XTYPE_XBOX360 },
352 { 0x1bad, 0xf906, "MortalKombat FightStick", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 },
353 { 0x1bad, 0xfa01, "MadCatz GamePad", 0, XTYPE_XBOX360 },
354 { 0x1bad, 0xfd00, "Razer Onza TE", 0, XTYPE_XBOX360 },
355 { 0x1bad, 0xfd01, "Razer Onza", 0, XTYPE_XBOX360 },
356 { 0x1ee9, 0x1590, "ZOTAC Gaming Zone", 0, XTYPE_XBOX360 },
357 { 0x20d6, 0x2001, "BDA Xbox Series X Wired Controller", 0, XTYPE_XBOXONE },
358 { 0x20d6, 0x2009, "PowerA Enhanced Wired Controller for Xbox Series X|S", 0, XTYPE_XBOXONE },
359 { 0x20d6, 0x2064, "PowerA Wired Controller for Xbox", MAP_SHARE_BUTTON, XTYPE_XBOXONE },
360 { 0x20d6, 0x281f, "PowerA Wired Controller For Xbox 360", 0, XTYPE_XBOX360 },
361 { 0x20d6, 0x400b, "PowerA FUSION Pro 4 Wired Controller", MAP_SHARE_BUTTON, XTYPE_XBOXONE },
362 { 0x20d6, 0x890b, "PowerA MOGA XP-Ultra Controller", MAP_SHARE_BUTTON, XTYPE_XBOXONE },
363 { 0x2345, 0xe00b, "Machenike G5 Pro Controller", 0, XTYPE_XBOX360 },
364 { 0x24c6, 0x5000, "Razer Atrox Arcade Stick", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 },
365 { 0x24c6, 0x5300, "PowerA MINI PROEX Controller", 0, XTYPE_XBOX360 },
366 { 0x24c6, 0x5303, "Xbox Airflo wired controller", 0, XTYPE_XBOX360 },
367 { 0x24c6, 0x530a, "Xbox 360 Pro EX Controller", 0, XTYPE_XBOX360 },
368 { 0x24c6, 0x531a, "PowerA Pro Ex", 0, XTYPE_XBOX360 },
369 { 0x24c6, 0x5397, "FUS1ON Tournament Controller", 0, XTYPE_XBOX360 },
370 { 0x24c6, 0x541a, "PowerA Xbox One Mini Wired Controller", 0, XTYPE_XBOXONE },
371 { 0x24c6, 0x542a, "Xbox ONE spectra", 0, XTYPE_XBOXONE },
372 { 0x24c6, 0x543a, "PowerA Xbox One wired controller", 0, XTYPE_XBOXONE },
373 { 0x24c6, 0x5500, "Hori XBOX 360 EX 2 with Turbo", 0, XTYPE_XBOX360 },
374 { 0x24c6, 0x5501, "Hori Real Arcade Pro VX-SA", 0, XTYPE_XBOX360 },
375 { 0x24c6, 0x5502, "Hori Fighting Stick VX Alt", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 },
376 { 0x24c6, 0x5503, "Hori Fighting Edge", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 },
377 { 0x24c6, 0x5506, "Hori SOULCALIBUR V Stick", 0, XTYPE_XBOX360 },
378 { 0x24c6, 0x550d, "Hori GEM Xbox controller", 0, XTYPE_XBOX360 },
379 { 0x24c6, 0x550e, "Hori Real Arcade Pro V Kai 360", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 },
380 …{ 0x24c6, 0x5510, "Hori Fighting Commander ONE (Xbox 360/PC Mode)", MAP_TRIGGERS_TO_BUTTONS, XTYPE…
381 { 0x24c6, 0x551a, "PowerA FUSION Pro Controller", 0, XTYPE_XBOXONE },
382 { 0x24c6, 0x561a, "PowerA FUSION Controller", 0, XTYPE_XBOXONE },
383 { 0x24c6, 0x581a, "ThrustMaster XB1 Classic Controller", 0, XTYPE_XBOXONE },
384 { 0x24c6, 0x5b00, "ThrustMaster Ferrari 458 Racing Wheel", 0, XTYPE_XBOX360 },
385 { 0x24c6, 0x5b02, "Thrustmaster, Inc. GPX Controller", 0, XTYPE_XBOX360 },
386 { 0x24c6, 0x5b03, "Thrustmaster Ferrari 458 Racing Wheel", 0, XTYPE_XBOX360 },
387 { 0x24c6, 0x5d04, "Razer Sabertooth", 0, XTYPE_XBOX360 },
388 { 0x24c6, 0xfafe, "Rock Candy Gamepad for Xbox 360", 0, XTYPE_XBOX360 },
389 { 0x2563, 0x058d, "OneXPlayer Gamepad", 0, XTYPE_XBOX360 },
390 { 0x294b, 0x3303, "Snakebyte GAMEPAD BASE X", 0, XTYPE_XBOXONE },
391 { 0x294b, 0x3404, "Snakebyte GAMEPAD RGB X", 0, XTYPE_XBOXONE },
392 { 0x2993, 0x2001, "TECNO Pocket Go", 0, XTYPE_XBOX360 },
393 { 0x2dc8, 0x2000, "8BitDo Pro 2 Wired Controller fox Xbox", 0, XTYPE_XBOXONE },
394 { 0x2dc8, 0x200f, "8BitDo Ultimate 3-mode Controller for Xbox", MAP_SHARE_BUTTON, XTYPE_XBOXONE },
395 { 0x2dc8, 0x3106, "8BitDo Ultimate Wireless / Pro 2 Wired Controller", 0, XTYPE_XBOX360 },
396 { 0x2dc8, 0x3109, "8BitDo Ultimate Wireless Bluetooth", 0, XTYPE_XBOX360 },
397 { 0x2dc8, 0x310a, "8BitDo Ultimate 2C Wireless Controller", 0, XTYPE_XBOX360 },
398 { 0x2dc8, 0x310b, "8BitDo Ultimate 2 Wireless Controller", 0, XTYPE_XBOX360 },
399 { 0x2dc8, 0x6001, "8BitDo SN30 Pro", 0, XTYPE_XBOX360 },
400 { 0x2e24, 0x0423, "Hyperkin DuchesS Xbox One pad", MAP_SHARE_BUTTON, XTYPE_XBOXONE },
401 { 0x2e24, 0x0652, "Hyperkin Duke X-Box One pad", 0, XTYPE_XBOXONE },
402 { 0x2e24, 0x1688, "Hyperkin X91 X-Box One pad", 0, XTYPE_XBOXONE },
403 { 0x2e95, 0x0504, "SCUF Gaming Controller", MAP_SHARE_BUTTON, XTYPE_XBOXONE },
404 { 0x31e3, 0x1100, "Wooting One", 0, XTYPE_XBOX360 },
405 { 0x31e3, 0x1200, "Wooting Two", 0, XTYPE_XBOX360 },
406 { 0x31e3, 0x1210, "Wooting Lekker", 0, XTYPE_XBOX360 },
407 { 0x31e3, 0x1220, "Wooting Two HE", 0, XTYPE_XBOX360 },
408 { 0x31e3, 0x1230, "Wooting Two HE (ARM)", 0, XTYPE_XBOX360 },
409 { 0x31e3, 0x1300, "Wooting 60HE (AVR)", 0, XTYPE_XBOX360 },
410 { 0x31e3, 0x1310, "Wooting 60HE (ARM)", 0, XTYPE_XBOX360 },
411 { 0x3285, 0x0603, "Nacon Pro Compact controller for Xbox", 0, XTYPE_XBOXONE },
412 { 0x3285, 0x0607, "Nacon GC-100", 0, XTYPE_XBOX360 },
413 { 0x3285, 0x0614, "Nacon Pro Compact", 0, XTYPE_XBOXONE },
414 { 0x3285, 0x0646, "Nacon Pro Compact", 0, XTYPE_XBOXONE },
415 { 0x3285, 0x0662, "Nacon Revolution5 Pro", 0, XTYPE_XBOX360 },
416 { 0x3285, 0x0663, "Nacon Evol-X", 0, XTYPE_XBOXONE },
417 { 0x3537, 0x1004, "GameSir T4 Kaleid", 0, XTYPE_XBOX360 },
418 { 0x3537, 0x1010, "GameSir G7 SE", 0, XTYPE_XBOXONE },
419 { 0x3767, 0x0101, "Fanatec Speedster 3 Forceshock Wheel", 0, XTYPE_XBOX },
420 { 0x413d, 0x2104, "Black Shark Green Ghost Gamepad", 0, XTYPE_XBOX360 },
421 { 0xffff, 0xffff, "Chinese-made Xbox Controller", 0, XTYPE_XBOX },
422 { 0x0000, 0x0000, "Generic X-Box pad", 0, XTYPE_UNKNOWN }
513 { USB_INTERFACE_INFO('X', 'B', 0) }, /* Xbox USB-IF not-approved class */
514 XPAD_XBOX360_VENDOR(0x0079), /* GPD Win 2 controller */
515 XPAD_XBOX360_VENDOR(0x03eb), /* Wooting Keyboards (Legacy) */
516 XPAD_XBOX360_VENDOR(0x03f0), /* HP HyperX Xbox 360 controllers */
517 XPAD_XBOXONE_VENDOR(0x03f0), /* HP HyperX Xbox One controllers */
518 XPAD_XBOX360_VENDOR(0x044f), /* Thrustmaster Xbox 360 controllers */
519 XPAD_XBOXONE_VENDOR(0x044f), /* Thrustmaster Xbox One controllers */
520 XPAD_XBOX360_VENDOR(0x045e), /* Microsoft Xbox 360 controllers */
521 XPAD_XBOXONE_VENDOR(0x045e), /* Microsoft Xbox One controllers */
522 XPAD_XBOX360_VENDOR(0x046d), /* Logitech Xbox 360-style controllers */
523 XPAD_XBOX360_VENDOR(0x056e), /* Elecom JC-U3613M */
524 XPAD_XBOX360_VENDOR(0x06a3), /* Saitek P3600 */
525 XPAD_XBOX360_VENDOR(0x0738), /* Mad Catz Xbox 360 controllers */
526 { USB_DEVICE(0x0738, 0x4540) }, /* Mad Catz Beat Pad */
527 XPAD_XBOXONE_VENDOR(0x0738), /* Mad Catz FightStick TE 2 */
528 XPAD_XBOX360_VENDOR(0x07ff), /* Mad Catz Gamepad */
529 XPAD_XBOXONE_VENDOR(0x0b05), /* ASUS controllers */
530 XPAD_XBOX360_VENDOR(0x0c12), /* Zeroplus X-Box 360 controllers */
531 XPAD_XBOX360_VENDOR(0x0db0), /* Micro Star International X-Box 360 controllers */
532 XPAD_XBOX360_VENDOR(0x0e6f), /* 0x0e6f Xbox 360 controllers */
533 XPAD_XBOXONE_VENDOR(0x0e6f), /* 0x0e6f Xbox One controllers */
534 XPAD_XBOX360_VENDOR(0x0f0d), /* Hori controllers */
535 XPAD_XBOXONE_VENDOR(0x0f0d), /* Hori controllers */
536 XPAD_XBOX360_VENDOR(0x1038), /* SteelSeries controllers */
537 XPAD_XBOXONE_VENDOR(0x10f5), /* Turtle Beach Controllers */
538 XPAD_XBOX360_VENDOR(0x11c9), /* Nacon GC100XF */
539 XPAD_XBOX360_VENDOR(0x11ff), /* PXN V900 */
540 XPAD_XBOX360_VENDOR(0x1209), /* Ardwiino Controllers */
541 XPAD_XBOX360_VENDOR(0x12ab), /* Xbox 360 dance pads */
542 XPAD_XBOX360_VENDOR(0x1430), /* RedOctane Xbox 360 controllers */
543 XPAD_XBOX360_VENDOR(0x146b), /* Bigben Interactive controllers */
544 XPAD_XBOX360_VENDOR(0x1532), /* Razer Sabertooth */
545 XPAD_XBOXONE_VENDOR(0x1532), /* Razer Wildcat */
546 XPAD_XBOX360_VENDOR(0x15e4), /* Numark Xbox 360 controllers */
547 XPAD_XBOX360_VENDOR(0x162e), /* Joytech Xbox 360 controllers */
548 XPAD_XBOX360_VENDOR(0x1689), /* Razer Onza */
549 XPAD_XBOX360_VENDOR(0x17ef), /* Lenovo */
550 XPAD_XBOX360_VENDOR(0x1949), /* Amazon controllers */
551 XPAD_XBOX360_VENDOR(0x1a86), /* Nanjing Qinheng Microelectronics (WCH) */
552 XPAD_XBOX360_VENDOR(0x1bad), /* Harmonix Rock Band guitar and drums */
553 XPAD_XBOX360_VENDOR(0x1ee9), /* ZOTAC Technology Limited */
554 XPAD_XBOX360_VENDOR(0x20d6), /* PowerA controllers */
555 XPAD_XBOXONE_VENDOR(0x20d6), /* PowerA controllers */
556 XPAD_XBOX360_VENDOR(0x2345), /* Machenike Controllers */
557 XPAD_XBOX360_VENDOR(0x24c6), /* PowerA controllers */
558 XPAD_XBOXONE_VENDOR(0x24c6), /* PowerA controllers */
559 XPAD_XBOX360_VENDOR(0x2563), /* OneXPlayer Gamepad */
560 XPAD_XBOX360_VENDOR(0x260d), /* Dareu H101 */
561 XPAD_XBOXONE_VENDOR(0x294b), /* Snakebyte */
562 XPAD_XBOX360_VENDOR(0x2993), /* TECNO Mobile */
563 XPAD_XBOX360_VENDOR(0x2c22), /* Qanba Controllers */
564 XPAD_XBOX360_VENDOR(0x2dc8), /* 8BitDo Controllers */
565 XPAD_XBOXONE_VENDOR(0x2dc8), /* 8BitDo Controllers */
566 XPAD_XBOXONE_VENDOR(0x2e24), /* Hyperkin Controllers */
567 XPAD_XBOX360_VENDOR(0x2f24), /* GameSir Controllers */
568 XPAD_XBOXONE_VENDOR(0x2e95), /* SCUF Gaming Controller */
569 XPAD_XBOX360_VENDOR(0x31e3), /* Wooting Keyboards */
570 XPAD_XBOX360_VENDOR(0x3285), /* Nacon GC-100 */
571 XPAD_XBOXONE_VENDOR(0x3285), /* Nacon Evol-X */
572 XPAD_XBOX360_VENDOR(0x3537), /* GameSir Controllers */
573 XPAD_XBOXONE_VENDOR(0x3537), /* GameSir Controllers */
574 XPAD_XBOX360_VENDOR(0x413d), /* Black Shark Green Ghost Controller */
601 #define GIP_CMD_ACK 0x01
602 #define GIP_CMD_IDENTIFY 0x04
603 #define GIP_CMD_POWER 0x05
604 #define GIP_CMD_AUTHENTICATE 0x06
605 #define GIP_CMD_VIRTUAL_KEY 0x07
606 #define GIP_CMD_RUMBLE 0x09
607 #define GIP_CMD_LED 0x0a
608 #define GIP_CMD_FIRMWARE 0x0c
609 #define GIP_CMD_INPUT 0x20
611 #define GIP_SEQ0 0x00
613 #define GIP_OPT_ACK 0x10
614 #define GIP_OPT_INTERNAL 0x20
626 #define GIP_PWR_ON 0x00
627 #define GIP_LED_ON 0x01
629 #define GIP_MOTOR_R BIT(0)
635 #define GIP_WIRED_INTF_DATA 0
647 * This packet is required for Xbox One S (0x045e:0x02ea)
648 * and Xbox One Elite Series 2 (0x045e:0x0b00) pads to
653 GIP_CMD_POWER, GIP_OPT_INTERNAL, GIP_SEQ0, 0x0f, 0x06
658 * from Xbox One Elite Series 2 (0x045e:0x0b00) pads.
662 0x4d, 0x10, 0x01, 0x02, 0x07, 0x00
667 * (0x0e6f:0x0165) to finish initialization and for Hori pads
668 * (0x0f0d:0x0067) to make the analog sticks work.
672 0x00, GIP_CMD_IDENTIFY, GIP_OPT_INTERNAL, 0x3a, 0x00, 0x00, 0x00, 0x80, 0x00
677 * sending input reports. These pads include: (0x0e6f:0x02ab),
678 * (0x0e6f:0x02a4), (0x0e6f:0x02a6).
681 GIP_CMD_LED, GIP_OPT_INTERNAL, GIP_SEQ0, GIP_PL_LEN(3), 0x00, GIP_LED_ON, 0x14
686 * sending input reports. These pads include: (0x0e6f:0x02ab),
687 * (0x0e6f:0x02a4), (0x0e6f:0x02a6).
690 GIP_CMD_AUTHENTICATE, GIP_OPT_INTERNAL, GIP_SEQ0, GIP_PL_LEN(2), 0x01, 0x00
695 * sending input reports. One of those pads is (0x24c6:0x543a).
698 GIP_CMD_RUMBLE, 0x00, GIP_SEQ0, GIP_PL_LEN(9),
699 0x00, GIP_MOTOR_ALL, 0x00, 0x00, 0x1D, 0x1D, 0xFF, 0x00, 0x00
709 GIP_CMD_RUMBLE, 0x00, GIP_SEQ0, GIP_PL_LEN(9),
710 0x00, GIP_MOTOR_ALL, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
720 XBOXONE_INIT_PKT(0x0e6f, 0x0165, xboxone_hori_ack_id),
721 XBOXONE_INIT_PKT(0x0f0d, 0x0067, xboxone_hori_ack_id),
722 XBOXONE_INIT_PKT(0x0000, 0x0000, xboxone_power_on),
723 XBOXONE_INIT_PKT(0x045e, 0x02ea, xboxone_s_init),
724 XBOXONE_INIT_PKT(0x045e, 0x0b00, xboxone_s_init),
725 XBOXONE_INIT_PKT(0x045e, 0x0b00, extra_input_packet_init),
726 XBOXONE_INIT_PKT(0x0e6f, 0x0000, xboxone_pdp_led_on),
727 XBOXONE_INIT_PKT(0x0f0d, 0x01b2, xboxone_pdp_led_on),
728 XBOXONE_INIT_PKT(0x20d6, 0xa01a, xboxone_pdp_led_on),
729 XBOXONE_INIT_PKT(0x0e6f, 0x0000, xboxone_pdp_auth),
730 XBOXONE_INIT_PKT(0x0f0d, 0x01b2, xboxone_pdp_auth),
731 XBOXONE_INIT_PKT(0x20d6, 0xa01a, xboxone_pdp_auth),
732 XBOXONE_INIT_PKT(0x24c6, 0x541a, xboxone_rumblebegin_init),
733 XBOXONE_INIT_PKT(0x24c6, 0x542a, xboxone_rumblebegin_init),
734 XBOXONE_INIT_PKT(0x24c6, 0x543a, xboxone_rumblebegin_init),
735 XBOXONE_INIT_PKT(0x24c6, 0x541a, xboxone_rumbleend_init),
736 XBOXONE_INIT_PKT(0x24c6, 0x542a, xboxone_rumbleend_init),
737 XBOXONE_INIT_PKT(0x24c6, 0x543a, xboxone_rumbleend_init),
746 #define XPAD_OUT_CMD_IDX 0
839 input_report_key(dev, BTN_TRIGGER_HAPPY3, data[2] & BIT(0)); in xpad_process_packet()
843 !!(data[2] & 0x08) - !!(data[2] & 0x04)); in xpad_process_packet()
845 !!(data[2] & 0x02) - !!(data[2] & 0x01)); in xpad_process_packet()
882 if (data[0] != 0x00) in xpad360_process_packet()
890 input_report_key(dev, BTN_TRIGGER_HAPPY3, data[2] & BIT(0)); in xpad360_process_packet()
903 !!(data[2] & 0x08) - !!(data[2] & 0x04)); in xpad360_process_packet()
905 !!(data[2] & 0x02) - !!(data[2] & 0x01)); in xpad360_process_packet()
921 input_report_key(dev, BTN_TL, data[3] & BIT(0)); in xpad360_process_packet()
952 if (xpad->mode_btn_down_ts > 0 && xpad->pad_present && in xpad360_process_packet()
956 xpad->mode_btn_down_ts = 0; in xpad360_process_packet()
964 xpad->mode_btn_down_ts = 0; in xpad360_process_packet()
1013 if (data[0] & 0x08) { in xpad360w_process_packet()
1014 present = (data[1] & 0x80) != 0; in xpad360w_process_packet()
1023 if (data[1] != 0x1) in xpad360w_process_packet()
1048 if (data[0] == GIP_CMD_VIRTUAL_KEY) { in xpadone_process_packet()
1057 input_report_key(dev, BTN_MODE, data[4] & GENMASK(1, 0)); in xpadone_process_packet()
1061 } else if (data[0] == GIP_CMD_FIRMWARE) { in xpadone_process_packet()
1068 if (data[19] != 0) in xpadone_process_packet()
1069 data[18] = 0; in xpadone_process_packet()
1072 input_report_key(dev, BTN_TRIGGER_HAPPY5, data[18] & BIT(0)); in xpadone_process_packet()
1079 } else if (data[0] == GIP_CMD_INPUT) { /* The main valid packet type for inputs */ in xpadone_process_packet()
1085 input_report_key(dev, KEY_RECORD, data[len - 26] & BIT(0)); in xpadone_process_packet()
1087 input_report_key(dev, KEY_RECORD, data[len - 18] & BIT(0)); in xpadone_process_packet()
1101 input_report_key(dev, BTN_TRIGGER_HAPPY3, data[5] & BIT(0)); in xpadone_process_packet()
1105 !!(data[5] & 0x08) - !!(data[5] & 0x04)); in xpadone_process_packet()
1107 !!(data[5] & 0x02) - !!(data[5] & 0x01)); in xpadone_process_packet()
1145 /* Profile button has a value of 0-3, so it is reported as an axis */ in xpadone_process_packet()
1157 if (memcmp(&data[4], &data[18], 2) != 0) in xpadone_process_packet()
1158 data[32] = 0; in xpadone_process_packet()
1163 input_report_key(dev, BTN_TRIGGER_HAPPY7, data[32] & BIT(0)); in xpadone_process_packet()
1170 if (data[19] != 0) in xpadone_process_packet()
1171 data[18] = 0; in xpadone_process_packet()
1174 input_report_key(dev, BTN_TRIGGER_HAPPY5, data[18] & BIT(0)); in xpadone_process_packet()
1183 if (data[23] != 0) in xpadone_process_packet()
1184 data[22] = 0; in xpadone_process_packet()
1189 input_report_key(dev, BTN_TRIGGER_HAPPY5, data[22] & BIT(0)); in xpadone_process_packet()
1212 case 0: in xpad_irq_in()
1230 xpad360_process_packet(xpad, xpad->dev, 0, xpad->idata); in xpad_irq_in()
1233 xpad360w_process_packet(xpad, 0, xpad->idata); in xpad_irq_in()
1236 xpadone_process_packet(xpad, 0, xpad->idata, urb->actual_length); in xpad_irq_in()
1239 xpad_process_packet(xpad, 0, xpad->idata); in xpad_irq_in()
1261 if (init_packet->idVendor != 0 && in xpad_prepare_next_init_packet()
1265 if (init_packet->idProduct != 0 && in xpad_prepare_next_init_packet()
1291 for (i = 0; i < XPAD_NUM_OUT_PACKETS; i++) { in xpad_prepare_next_out_packet()
1293 xpad->last_out_packet = 0; in xpad_prepare_next_out_packet()
1334 return 0; in xpad_try_sending_next_out_packet()
1347 case 0: in xpad_irq_out()
1386 return 0; in xpad_init_output()
1397 xpad->irq_out = usb_alloc_urb(0, GFP_KERNEL); in xpad_init_output()
1410 return 0; in xpad_init_output()
1445 packet->data[0] = 0x08; in xpad_inquiry_pad_presence()
1446 packet->data[1] = 0x00; in xpad_inquiry_pad_presence()
1447 packet->data[2] = 0x0F; in xpad_inquiry_pad_presence()
1448 packet->data[3] = 0xC0; in xpad_inquiry_pad_presence()
1449 packet->data[4] = 0x00; in xpad_inquiry_pad_presence()
1450 packet->data[5] = 0x00; in xpad_inquiry_pad_presence()
1451 packet->data[6] = 0x00; in xpad_inquiry_pad_presence()
1452 packet->data[7] = 0x00; in xpad_inquiry_pad_presence()
1453 packet->data[8] = 0x00; in xpad_inquiry_pad_presence()
1454 packet->data[9] = 0x00; in xpad_inquiry_pad_presence()
1455 packet->data[10] = 0x00; in xpad_inquiry_pad_presence()
1456 packet->data[11] = 0x00; in xpad_inquiry_pad_presence()
1473 * Controller for Series X|S (0x20d6:0x200e) to report the in xpad_start_xbox_one()
1477 GIP_WIRED_INTF_AUDIO, 0); in xpad_start_xbox_one()
1491 xpad->init_seq = 0; in xpad_start_xbox_one()
1501 0x00, GIP_CMD_VIRTUAL_KEY, GIP_OPT_INTERNAL, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00 in xpadone_ack_mode_report()
1525 return 0; in xpad_play_effect()
1534 packet->data[0] = 0x00; in xpad_play_effect()
1535 packet->data[1] = 0x06; in xpad_play_effect()
1536 packet->data[2] = 0x00; in xpad_play_effect()
1538 packet->data[4] = 0x00; in xpad_play_effect()
1545 packet->data[0] = 0x00; in xpad_play_effect()
1546 packet->data[1] = 0x08; in xpad_play_effect()
1547 packet->data[2] = 0x00; in xpad_play_effect()
1550 packet->data[5] = 0x00; in xpad_play_effect()
1551 packet->data[6] = 0x00; in xpad_play_effect()
1552 packet->data[7] = 0x00; in xpad_play_effect()
1558 packet->data[0] = 0x00; in xpad_play_effect()
1559 packet->data[1] = 0x01; in xpad_play_effect()
1560 packet->data[2] = 0x0F; in xpad_play_effect()
1561 packet->data[3] = 0xC0; in xpad_play_effect()
1562 packet->data[4] = 0x00; in xpad_play_effect()
1565 packet->data[7] = 0x00; in xpad_play_effect()
1566 packet->data[8] = 0x00; in xpad_play_effect()
1567 packet->data[9] = 0x00; in xpad_play_effect()
1568 packet->data[10] = 0x00; in xpad_play_effect()
1569 packet->data[11] = 0x00; in xpad_play_effect()
1575 packet->data[0] = GIP_CMD_RUMBLE; /* activate rumble */ in xpad_play_effect()
1576 packet->data[1] = 0x00; in xpad_play_effect()
1579 packet->data[4] = 0x00; in xpad_play_effect()
1581 packet->data[6] = 0x00; /* left trigger */ in xpad_play_effect()
1582 packet->data[7] = 0x00; /* right trigger */ in xpad_play_effect()
1585 packet->data[10] = 0xFF; /* on period */ in xpad_play_effect()
1586 packet->data[11] = 0x00; /* off period */ in xpad_play_effect()
1587 packet->data[12] = 0xFF; /* repeat count */ in xpad_play_effect()
1605 return 0; in xpad_init_ff()
1613 static int xpad_init_ff(struct usb_xpad *xpad) { return 0; } in xpad_init_ff()
1631 * 0: off
1659 packet->data[0] = 0x01; in xpad_send_led_command()
1660 packet->data[1] = 0x03; in xpad_send_led_command()
1667 packet->data[0] = 0x00; in xpad_send_led_command()
1668 packet->data[1] = 0x00; in xpad_send_led_command()
1669 packet->data[2] = 0x08; in xpad_send_led_command()
1670 packet->data[3] = 0x40 + command; in xpad_send_led_command()
1671 packet->data[4] = 0x00; in xpad_send_led_command()
1672 packet->data[5] = 0x00; in xpad_send_led_command()
1673 packet->data[6] = 0x00; in xpad_send_led_command()
1674 packet->data[7] = 0x00; in xpad_send_led_command()
1675 packet->data[8] = 0x00; in xpad_send_led_command()
1676 packet->data[9] = 0x00; in xpad_send_led_command()
1677 packet->data[10] = 0x00; in xpad_send_led_command()
1678 packet->data[11] = 0x00; in xpad_send_led_command()
1712 return 0; in xpad_led_probe()
1719 if (xpad->pad_nr < 0) { in xpad_led_probe()
1738 return 0; in xpad_led_probe()
1759 static int xpad_led_probe(struct usb_xpad *xpad) { return 0; } in xpad_led_probe()
1784 error = usb_control_msg_recv(xpad->udev, 0, in xpad_start_input()
1785 /* bRequest */ 0x01, in xpad_start_input()
1789 /* wValue */ 0x100, in xpad_start_input()
1790 /* wIndex */ 0x00, in xpad_start_input()
1799 return 0; in xpad_start_input()
1814 packet->data[0] = 0x00; in xpad360w_poweroff_controller()
1815 packet->data[1] = 0x00; in xpad360w_poweroff_controller()
1816 packet->data[2] = 0x08; in xpad360w_poweroff_controller()
1817 packet->data[3] = 0xC0; in xpad360w_poweroff_controller()
1818 packet->data[4] = 0x00; in xpad360w_poweroff_controller()
1819 packet->data[5] = 0x00; in xpad360w_poweroff_controller()
1820 packet->data[6] = 0x00; in xpad360w_poweroff_controller()
1821 packet->data[7] = 0x00; in xpad360w_poweroff_controller()
1822 packet->data[8] = 0x00; in xpad360w_poweroff_controller()
1823 packet->data[9] = 0x00; in xpad360w_poweroff_controller()
1824 packet->data[10] = 0x00; in xpad360w_poweroff_controller()
1825 packet->data[11] = 0x00; in xpad360w_poweroff_controller()
1855 return 0; in xpad360w_start_input()
1894 input_set_abs_params(input_dev, abs, 0, 1023, 0, 0); in xpad_set_up_abs()
1896 input_set_abs_params(input_dev, abs, 0, 255, 0, 0); in xpad_set_up_abs()
1900 input_set_abs_params(input_dev, abs, -1, 1, 0, 0); in xpad_set_up_abs()
1903 input_set_abs_params(input_dev, abs, 0, 4, 0, 0); in xpad_set_up_abs()
1906 input_set_abs_params(input_dev, abs, 0, 0, 0, 0); in xpad_set_up_abs()
1936 input_dev->id.product = 0x02a1; in xpad_init_input()
1950 for (i = 0; xpad_abs[i] >= 0; i++) in xpad_init_input()
1955 for (i = 0; xpad_common_btn[i] >= 0; i++) in xpad_init_input()
1961 for (i = 0; xpad360_btn[i] >= 0; i++) in xpad_init_input()
1966 for (i = 0; xpad_btn[i] >= 0; i++) in xpad_init_input()
1971 for (i = 0; xpad_btn_pad[i] >= 0; i++) in xpad_init_input()
1978 for (i = 0; xpad_btn_paddles[i] >= 0; i++) in xpad_init_input()
1990 for (i = 0; xpad_abs_pad[i] >= 0; i++) in xpad_init_input()
1995 for (i = 0; xpad_btn_triggers[i] >= 0; i++) in xpad_init_input()
1999 for (i = 0; xpad_abs_triggers[i] >= 0; i++) in xpad_init_input()
2020 return 0; in xpad_init_input()
2041 for (i = 0; xpad_device[i].idVendor; i++) { in xpad_probe()
2061 xpad->irq_in = usb_alloc_urb(0, GFP_KERNEL); in xpad_probe()
2108 for (i = 0; i < 2; i++) { in xpad_probe()
2139 if (le16_to_cpu(udev->descriptor.idVendor) == 0x045e) { /* Microsoft controllers */ in xpad_probe()
2140 if (le16_to_cpu(udev->descriptor.idProduct) == 0x02e3) { in xpad_probe()
2145 } else if (le16_to_cpu(udev->descriptor.idProduct) == 0x0b00) { in xpad_probe()
2150 if (le16_to_cpu(udev->descriptor.bcdDevice) < 0x0500) { in xpad_probe()
2156 0x050b) { in xpad_probe()
2194 return 0; in xpad_probe()
2263 return 0; in xpad_suspend()
2288 return 0; in xpad_resume()