Lines Matching +full:0 +full:x0b00

80 #define MAP_DPAD_TO_BUTTONS		BIT(0)
91 #define XTYPE_XBOX 0
102 #define PKT_XB 0
108 #define FLAG_DELAY_INIT BIT(0)
135 { 0x0079, 0x18d4, "GPD Win 2 X-Box Controller", 0, XTYPE_XBOX360 },
136 { 0x03eb, 0xff01, "Wooting One (Legacy)", 0, XTYPE_XBOX360 },
137 { 0x03eb, 0xff02, "Wooting Two (Legacy)", 0, XTYPE_XBOX360 },
138 { 0x03f0, 0x038D, "HyperX Clutch", 0, XTYPE_XBOX360 }, /* wired */
139 { 0x03f0, 0x048D, "HyperX Clutch", 0, XTYPE_XBOX360 }, /* wireless */
140 { 0x03f0, 0x0495, "HyperX Clutch Gladiate", 0, XTYPE_XBOXONE },
141 { 0x03f0, 0x07A0, "HyperX Clutch Gladiate RGB", 0, XTYPE_XBOXONE },
142 { 0x03f0, 0x08B6, "HyperX Clutch Gladiate", MAP_SHARE_BUTTON, XTYPE_XBOXONE }, /* v2 */
143 { 0x03f0, 0x09B4, "HyperX Clutch Tanto", 0, XTYPE_XBOXONE },
144 { 0x044f, 0x0f00, "Thrustmaster Wheel", 0, XTYPE_XBOX },
145 { 0x044f, 0x0f03, "Thrustmaster Wheel", 0, XTYPE_XBOX },
146 { 0x044f, 0x0f07, "Thrustmaster, Inc. Controller", 0, XTYPE_XBOX },
147 { 0x044f, 0x0f10, "Thrustmaster Modena GT Wheel", 0, XTYPE_XBOX },
148 { 0x044f, 0xb326, "Thrustmaster Gamepad GP XID", 0, XTYPE_XBOX360 },
149 { 0x044f, 0xd01e, "ThrustMaster, Inc. ESWAP X 2 ELDEN RING EDITION", 0, XTYPE_XBOXONE },
150 { 0x045e, 0x0202, "Microsoft X-Box pad v1 (US)", 0, XTYPE_XBOX },
151 { 0x045e, 0x0285, "Microsoft X-Box pad (Japan)", 0, XTYPE_XBOX },
152 { 0x045e, 0x0287, "Microsoft Xbox Controller S", 0, XTYPE_XBOX },
153 { 0x045e, 0x0288, "Microsoft Xbox Controller S v2", 0, XTYPE_XBOX },
154 { 0x045e, 0x0289, "Microsoft X-Box pad v2 (US)", 0, XTYPE_XBOX },
155 { 0x045e, 0x028e, "Microsoft X-Box 360 pad", 0, XTYPE_XBOX360 },
156 { 0x045e, 0x028f, "Microsoft X-Box 360 pad v2", 0, XTYPE_XBOX360 },
157 { 0x045e, 0x0291, "Xbox 360 Wireless Receiver (XBOX)", MAP_DPAD_TO_BUTTONS, XTYPE_XBOX360W },
158 { 0x045e, 0x02a9, "Xbox 360 Wireless Receiver (Unofficial)", MAP_DPAD_TO_BUTTONS, XTYPE_XBOX360W },
159 { 0x045e, 0x02d1, "Microsoft X-Box One pad", 0, XTYPE_XBOXONE },
160 { 0x045e, 0x02dd, "Microsoft X-Box One pad (Firmware 2015)", 0, XTYPE_XBOXONE },
161 { 0x045e, 0x02e3, "Microsoft X-Box One Elite pad", MAP_PADDLES, XTYPE_XBOXONE },
162 { 0x045e, 0x02ea, "Microsoft X-Box One S pad", 0, XTYPE_XBOXONE },
163 { 0x045e, 0x0719, "Xbox 360 Wireless Receiver", MAP_DPAD_TO_BUTTONS, XTYPE_XBOX360W },
164 { 0x045e, 0x0b00, "Microsoft X-Box One Elite 2 pad", MAP_PADDLES, XTYPE_XBOXONE },
165 { 0x045e, 0x0b0a, "Microsoft X-Box Adaptive Controller", MAP_PROFILE_BUTTON, XTYPE_XBOXONE },
166 …{ 0x045e, 0x0b12, "Microsoft Xbox Series S|X Controller", MAP_SHARE_BUTTON | MAP_SHARE_OFFSET, XTY…
167 { 0x046d, 0xc21d, "Logitech Gamepad F310", 0, XTYPE_XBOX360 },
168 { 0x046d, 0xc21e, "Logitech Gamepad F510", 0, XTYPE_XBOX360 },
169 { 0x046d, 0xc21f, "Logitech Gamepad F710", 0, XTYPE_XBOX360 },
170 { 0x046d, 0xc242, "Logitech Chillstream Controller", 0, XTYPE_XBOX360 },
171 { 0x046d, 0xca84, "Logitech Xbox Cordless Controller", 0, XTYPE_XBOX },
172 { 0x046d, 0xca88, "Logitech Compact Controller for Xbox", 0, XTYPE_XBOX },
173 { 0x046d, 0xca8a, "Logitech Precision Vibration Feedback Wheel", 0, XTYPE_XBOX },
174 { 0x046d, 0xcaa3, "Logitech DriveFx Racing Wheel", 0, XTYPE_XBOX360 },
175 { 0x0502, 0x1305, "Acer NGR200", 0, XTYPE_XBOX360 },
176 { 0x056e, 0x2004, "Elecom JC-U3613M", 0, XTYPE_XBOX360 },
177 { 0x05fd, 0x1007, "Mad Catz Controller (unverified)", 0, XTYPE_XBOX },
178 { 0x05fd, 0x107a, "InterAct 'PowerPad Pro' X-Box pad (Germany)", 0, XTYPE_XBOX },
179 { 0x05fe, 0x3030, "Chic Controller", 0, XTYPE_XBOX },
180 { 0x05fe, 0x3031, "Chic Controller", 0, XTYPE_XBOX },
181 { 0x062a, 0x0020, "Logic3 Xbox GamePad", 0, XTYPE_XBOX },
182 { 0x062a, 0x0033, "Competition Pro Steering Wheel", 0, XTYPE_XBOX },
183 { 0x06a3, 0x0200, "Saitek Racing Wheel", 0, XTYPE_XBOX },
184 { 0x06a3, 0x0201, "Saitek Adrenalin", 0, XTYPE_XBOX },
185 { 0x06a3, 0xf51a, "Saitek P3600", 0, XTYPE_XBOX360 },
186 { 0x0738, 0x4503, "Mad Catz Racing Wheel", 0, XTYPE_XBOXONE },
187 { 0x0738, 0x4506, "Mad Catz 4506 Wireless Controller", 0, XTYPE_XBOX },
188 { 0x0738, 0x4516, "Mad Catz Control Pad", 0, XTYPE_XBOX },
189 { 0x0738, 0x4520, "Mad Catz Control Pad Pro", 0, XTYPE_XBOX },
190 { 0x0738, 0x4522, "Mad Catz LumiCON", 0, XTYPE_XBOX },
191 { 0x0738, 0x4526, "Mad Catz Control Pad Pro", 0, XTYPE_XBOX },
192 { 0x0738, 0x4530, "Mad Catz Universal MC2 Racing Wheel and Pedals", 0, XTYPE_XBOX },
193 { 0x0738, 0x4536, "Mad Catz MicroCON", 0, XTYPE_XBOX },
194 { 0x0738, 0x4540, "Mad Catz Beat Pad", MAP_DPAD_TO_BUTTONS, XTYPE_XBOX },
195 { 0x0738, 0x4556, "Mad Catz Lynx Wireless Controller", 0, XTYPE_XBOX },
196 { 0x0738, 0x4586, "Mad Catz MicroCon Wireless Controller", 0, XTYPE_XBOX },
197 { 0x0738, 0x4588, "Mad Catz Blaster", 0, XTYPE_XBOX },
198 { 0x0738, 0x45ff, "Mad Catz Beat Pad (w/ Handle)", MAP_DPAD_TO_BUTTONS, XTYPE_XBOX },
199 { 0x0738, 0x4716, "Mad Catz Wired Xbox 360 Controller", 0, XTYPE_XBOX360 },
200 { 0x0738, 0x4718, "Mad Catz Street Fighter IV FightStick SE", 0, XTYPE_XBOX360 },
201 { 0x0738, 0x4726, "Mad Catz Xbox 360 Controller", 0, XTYPE_XBOX360 },
202 { 0x0738, 0x4728, "Mad Catz Street Fighter IV FightPad", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 },
203 { 0x0738, 0x4736, "Mad Catz MicroCon Gamepad", 0, XTYPE_XBOX360 },
204 …{ 0x0738, 0x4738, "Mad Catz Wired Xbox 360 Controller (SFIV)", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX…
205 { 0x0738, 0x4740, "Mad Catz Beat Pad", 0, XTYPE_XBOX360 },
206 { 0x0738, 0x4743, "Mad Catz Beat Pad Pro", MAP_DPAD_TO_BUTTONS, XTYPE_XBOX },
207 { 0x0738, 0x4758, "Mad Catz Arcade Game Stick", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 },
208 { 0x0738, 0x4a01, "Mad Catz FightStick TE 2", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOXONE },
209 { 0x0738, 0x6040, "Mad Catz Beat Pad Pro", MAP_DPAD_TO_BUTTONS, XTYPE_XBOX },
210 { 0x0738, 0x9871, "Mad Catz Portable Drum", 0, XTYPE_XBOX360 },
211 { 0x0738, 0xb726, "Mad Catz Xbox controller - MW2", 0, XTYPE_XBOX360 },
212 { 0x0738, 0xb738, "Mad Catz MVC2TE Stick 2", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 },
213 { 0x0738, 0xbeef, "Mad Catz JOYTECH NEO SE Advanced GamePad", 0, XTYPE_XBOX360 },
214 { 0x0738, 0xcb02, "Saitek Cyborg Rumble Pad - PC/Xbox 360", 0, XTYPE_XBOX360 },
215 { 0x0738, 0xcb03, "Saitek P3200 Rumble Pad - PC/Xbox 360", 0, XTYPE_XBOX360 },
216 { 0x0738, 0xcb29, "Saitek Aviator Stick AV8R02", 0, XTYPE_XBOX360 },
217 { 0x0738, 0xf738, "Super SFIV FightStick TE S", 0, XTYPE_XBOX360 },
218 { 0x07ff, 0xffff, "Mad Catz GamePad", 0, XTYPE_XBOX360 },
219 { 0x0b05, 0x1a38, "ASUS ROG RAIKIRI", MAP_SHARE_BUTTON, XTYPE_XBOXONE },
220 { 0x0b05, 0x1abb, "ASUS ROG RAIKIRI PRO", 0, XTYPE_XBOXONE },
221 { 0x0c12, 0x0005, "Intec wireless", 0, XTYPE_XBOX },
222 { 0x0c12, 0x8801, "Nyko Xbox Controller", 0, XTYPE_XBOX },
223 { 0x0c12, 0x8802, "Zeroplus Xbox Controller", 0, XTYPE_XBOX },
224 { 0x0c12, 0x8809, "RedOctane Xbox Dance Pad", DANCEPAD_MAP_CONFIG, XTYPE_XBOX },
225 { 0x0c12, 0x880a, "Pelican Eclipse PL-2023", 0, XTYPE_XBOX },
226 { 0x0c12, 0x8810, "Zeroplus Xbox Controller", 0, XTYPE_XBOX },
227 { 0x0c12, 0x9902, "HAMA VibraX - *FAULTY HARDWARE*", 0, XTYPE_XBOX },
228 { 0x0d2f, 0x0002, "Andamiro Pump It Up pad", MAP_DPAD_TO_BUTTONS, XTYPE_XBOX },
229 { 0x0db0, 0x1901, "Micro Star International Xbox360 Controller for Windows", 0, XTYPE_XBOX360 },
230 { 0x0e4c, 0x1097, "Radica Gamester Controller", 0, XTYPE_XBOX },
231 { 0x0e4c, 0x1103, "Radica Gamester Reflex", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX },
232 { 0x0e4c, 0x2390, "Radica Games Jtech Controller", 0, XTYPE_XBOX },
233 { 0x0e4c, 0x3510, "Radica Gamester", 0, XTYPE_XBOX },
234 { 0x0e6f, 0x0003, "Logic3 Freebird wireless Controller", 0, XTYPE_XBOX },
235 { 0x0e6f, 0x0005, "Eclipse wireless Controller", 0, XTYPE_XBOX },
236 { 0x0e6f, 0x0006, "Edge wireless Controller", 0, XTYPE_XBOX },
237 { 0x0e6f, 0x0008, "After Glow Pro Controller", 0, XTYPE_XBOX },
238 { 0x0e6f, 0x0105, "HSM3 Xbox360 dancepad", MAP_DPAD_TO_BUTTONS, XTYPE_XBOX360 },
239 { 0x0e6f, 0x0113, "Afterglow AX.1 Gamepad for Xbox 360", 0, XTYPE_XBOX360 },
240 { 0x0e6f, 0x011f, "Rock Candy Gamepad Wired Controller", 0, XTYPE_XBOX360 },
241 { 0x0e6f, 0x0131, "PDP EA Sports Controller", 0, XTYPE_XBOX360 },
242 { 0x0e6f, 0x0133, "Xbox 360 Wired Controller", 0, XTYPE_XBOX360 },
243 { 0x0e6f, 0x0139, "Afterglow Prismatic Wired Controller", 0, XTYPE_XBOXONE },
244 { 0x0e6f, 0x013a, "PDP Xbox One Controller", 0, XTYPE_XBOXONE },
245 { 0x0e6f, 0x0146, "Rock Candy Wired Controller for Xbox One", 0, XTYPE_XBOXONE },
246 { 0x0e6f, 0x0147, "PDP Marvel Xbox One Controller", 0, XTYPE_XBOXONE },
247 { 0x0e6f, 0x015c, "PDP Xbox One Arcade Stick", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOXONE },
248 { 0x0e6f, 0x015d, "PDP Mirror's Edge Official Wired Controller for Xbox One", 0, XTYPE_XBOXONE },
249 { 0x0e6f, 0x0161, "PDP Xbox One Controller", 0, XTYPE_XBOXONE },
250 { 0x0e6f, 0x0162, "PDP Xbox One Controller", 0, XTYPE_XBOXONE },
251 { 0x0e6f, 0x0163, "PDP Xbox One Controller", 0, XTYPE_XBOXONE },
252 { 0x0e6f, 0x0164, "PDP Battlefield One", 0, XTYPE_XBOXONE },
253 { 0x0e6f, 0x0165, "PDP Titanfall 2", 0, XTYPE_XBOXONE },
254 { 0x0e6f, 0x0201, "Pelican PL-3601 'TSZ' Wired Xbox 360 Controller", 0, XTYPE_XBOX360 },
255 { 0x0e6f, 0x0213, "Afterglow Gamepad for Xbox 360", 0, XTYPE_XBOX360 },
256 { 0x0e6f, 0x021f, "Rock Candy Gamepad for Xbox 360", 0, XTYPE_XBOX360 },
257 { 0x0e6f, 0x0246, "Rock Candy Gamepad for Xbox One 2015", 0, XTYPE_XBOXONE },
258 { 0x0e6f, 0x02a0, "PDP Xbox One Controller", 0, XTYPE_XBOXONE },
259 { 0x0e6f, 0x02a1, "PDP Xbox One Controller", 0, XTYPE_XBOXONE },
260 { 0x0e6f, 0x02a2, "PDP Wired Controller for Xbox One - Crimson Red", 0, XTYPE_XBOXONE },
261 { 0x0e6f, 0x02a4, "PDP Wired Controller for Xbox One - Stealth Series", 0, XTYPE_XBOXONE },
262 { 0x0e6f, 0x02a6, "PDP Wired Controller for Xbox One - Camo Series", 0, XTYPE_XBOXONE },
263 { 0x0e6f, 0x02a7, "PDP Xbox One Controller", 0, XTYPE_XBOXONE },
264 { 0x0e6f, 0x02a8, "PDP Xbox One Controller", 0, XTYPE_XBOXONE },
265 { 0x0e6f, 0x02ab, "PDP Controller for Xbox One", 0, XTYPE_XBOXONE },
266 { 0x0e6f, 0x02ad, "PDP Wired Controller for Xbox One - Stealth Series", 0, XTYPE_XBOXONE },
267 { 0x0e6f, 0x02b3, "Afterglow Prismatic Wired Controller", 0, XTYPE_XBOXONE },
268 { 0x0e6f, 0x02b8, "Afterglow Prismatic Wired Controller", 0, XTYPE_XBOXONE },
269 { 0x0e6f, 0x0301, "Logic3 Controller", 0, XTYPE_XBOX360 },
270 { 0x0e6f, 0x0346, "Rock Candy Gamepad for Xbox One 2016", 0, XTYPE_XBOXONE },
271 { 0x0e6f, 0x0401, "Logic3 Controller", 0, XTYPE_XBOX360 },
272 { 0x0e6f, 0x0413, "Afterglow AX.1 Gamepad for Xbox 360", 0, XTYPE_XBOX360 },
273 { 0x0e6f, 0x0501, "PDP Xbox 360 Controller", 0, XTYPE_XBOX360 },
274 { 0x0e6f, 0xf900, "PDP Afterglow AX.1", 0, XTYPE_XBOX360 },
275 { 0x0e8f, 0x0201, "SmartJoy Frag Xpad/PS2 adaptor", 0, XTYPE_XBOX },
276 { 0x0e8f, 0x3008, "Generic xbox control (dealextreme)", 0, XTYPE_XBOX },
277 { 0x0f0d, 0x000a, "Hori Co. DOA4 FightStick", 0, XTYPE_XBOX360 },
278 { 0x0f0d, 0x000c, "Hori PadEX Turbo", 0, XTYPE_XBOX360 },
279 { 0x0f0d, 0x000d, "Hori Fighting Stick EX2", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 },
280 { 0x0f0d, 0x0016, "Hori Real Arcade Pro.EX", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 },
281 { 0x0f0d, 0x001b, "Hori Real Arcade Pro VX", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 },
282 …{ 0x0f0d, 0x0063, "Hori Real Arcade Pro Hayabusa (USA) Xbox One", MAP_TRIGGERS_TO_BUTTONS, XTYPE_X…
283 { 0x0f0d, 0x0067, "HORIPAD ONE", 0, XTYPE_XBOXONE },
284 { 0x0f0d, 0x0078, "Hori Real Arcade Pro V Kai Xbox One", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOXONE },
285 { 0x0f0d, 0x00c5, "Hori Fighting Commander ONE", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOXONE },
286 { 0x0f0d, 0x00dc, "HORIPAD FPS for Nintendo Switch", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 },
287 { 0x0f0d, 0x0151, "Hori Racing Wheel Overdrive for Xbox Series X", 0, XTYPE_XBOXONE },
288 { 0x0f0d, 0x0152, "Hori Racing Wheel Overdrive for Xbox Series X", 0, XTYPE_XBOXONE },
289 { 0x0f0d, 0x01b2, "HORI Taiko No Tatsujin Drum Controller", MAP_SHARE_BUTTON, XTYPE_XBOXONE },
290 { 0x0f30, 0x010b, "Philips Recoil", 0, XTYPE_XBOX },
291 { 0x0f30, 0x0202, "Joytech Advanced Controller", 0, XTYPE_XBOX },
292 { 0x0f30, 0x8888, "BigBen XBMiniPad Controller", 0, XTYPE_XBOX },
293 { 0x102c, 0xff0c, "Joytech Wireless Advanced Controller", 0, XTYPE_XBOX },
294 { 0x1038, 0x1430, "SteelSeries Stratus Duo", 0, XTYPE_XBOX360 },
295 { 0x1038, 0x1431, "SteelSeries Stratus Duo", 0, XTYPE_XBOX360 },
296 { 0x10f5, 0x7005, "Turtle Beach Recon Controller", 0, XTYPE_XBOXONE },
297 { 0x10f5, 0x7008, "Turtle Beach Recon Controller", MAP_SHARE_BUTTON, XTYPE_XBOXONE },
298 { 0x10f5, 0x7073, "Turtle Beach Stealth Ultra Controller", MAP_SHARE_BUTTON, XTYPE_XBOXONE },
299 { 0x11c9, 0x55f0, "Nacon GC-100XF", 0, XTYPE_XBOX360 },
300 { 0x11ff, 0x0511, "PXN V900", 0, XTYPE_XBOX360 },
301 { 0x1209, 0x2882, "Ardwiino Controller", 0, XTYPE_XBOX360 },
302 { 0x12ab, 0x0004, "Honey Bee Xbox360 dancepad", MAP_DPAD_TO_BUTTONS, XTYPE_XBOX360 },
303 { 0x12ab, 0x0301, "PDP AFTERGLOW AX.1", 0, XTYPE_XBOX360 },
304 { 0x12ab, 0x0303, "Mortal Kombat Klassic FightStick", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 },
305 { 0x12ab, 0x8809, "Xbox DDR dancepad", MAP_DPAD_TO_BUTTONS, XTYPE_XBOX },
306 { 0x1430, 0x4748, "RedOctane Guitar Hero X-plorer", 0, XTYPE_XBOX360 },
307 { 0x1430, 0x8888, "TX6500+ Dance Pad (first generation)", MAP_DPAD_TO_BUTTONS, XTYPE_XBOX },
308 { 0x1430, 0xf801, "RedOctane Controller", 0, XTYPE_XBOX360 },
309 { 0x146b, 0x0601, "BigBen Interactive XBOX 360 Controller", 0, XTYPE_XBOX360 },
310 …{ 0x146b, 0x0604, "Bigben Interactive DAIJA Arcade Stick", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 …
311 { 0x1532, 0x0a00, "Razer Atrox Arcade Stick", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOXONE },
312 { 0x1532, 0x0a03, "Razer Wildcat", 0, XTYPE_XBOXONE },
313 { 0x1532, 0x0a29, "Razer Wolverine V2", 0, XTYPE_XBOXONE },
314 { 0x15e4, 0x3f00, "Power A Mini Pro Elite", 0, XTYPE_XBOX360 },
315 { 0x15e4, 0x3f0a, "Xbox Airflo wired controller", 0, XTYPE_XBOX360 },
316 { 0x15e4, 0x3f10, "Batarang Xbox 360 controller", 0, XTYPE_XBOX360 },
317 { 0x162e, 0xbeef, "Joytech Neo-Se Take2", 0, XTYPE_XBOX360 },
318 { 0x1689, 0xfd00, "Razer Onza Tournament Edition", 0, XTYPE_XBOX360 },
319 { 0x1689, 0xfd01, "Razer Onza Classic Edition", 0, XTYPE_XBOX360 },
320 { 0x1689, 0xfe00, "Razer Sabertooth", 0, XTYPE_XBOX360 },
321 { 0x17ef, 0x6182, "Lenovo Legion Controller for Windows", 0, XTYPE_XBOX360 },
322 { 0x1949, 0x041a, "Amazon Game Controller", 0, XTYPE_XBOX360 },
323 { 0x1a86, 0xe310, "Legion Go S", 0, XTYPE_XBOX360 },
324 { 0x1bad, 0x0002, "Harmonix Rock Band Guitar", 0, XTYPE_XBOX360 },
325 { 0x1bad, 0x0003, "Harmonix Rock Band Drumkit", MAP_DPAD_TO_BUTTONS, XTYPE_XBOX360 },
326 { 0x1bad, 0x0130, "Ion Drum Rocker", MAP_DPAD_TO_BUTTONS, XTYPE_XBOX360 },
327 { 0x1bad, 0xf016, "Mad Catz Xbox 360 Controller", 0, XTYPE_XBOX360 },
328 …{ 0x1bad, 0xf018, "Mad Catz Street Fighter IV SE Fighting Stick", MAP_TRIGGERS_TO_BUTTONS, XTYPE_X…
329 { 0x1bad, 0xf019, "Mad Catz Brawlstick for Xbox 360", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 },
330 { 0x1bad, 0xf021, "Mad Cats Ghost Recon FS GamePad", 0, XTYPE_XBOX360 },
331 { 0x1bad, 0xf023, "MLG Pro Circuit Controller (Xbox)", 0, XTYPE_XBOX360 },
332 { 0x1bad, 0xf025, "Mad Catz Call Of Duty", 0, XTYPE_XBOX360 },
333 { 0x1bad, 0xf027, "Mad Catz FPS Pro", 0, XTYPE_XBOX360 },
334 { 0x1bad, 0xf028, "Street Fighter IV FightPad", 0, XTYPE_XBOX360 },
335 { 0x1bad, 0xf02e, "Mad Catz Fightpad", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 },
336 { 0x1bad, 0xf030, "Mad Catz Xbox 360 MC2 MicroCon Racing Wheel", 0, XTYPE_XBOX360 },
337 { 0x1bad, 0xf036, "Mad Catz MicroCon GamePad Pro", 0, XTYPE_XBOX360 },
338 { 0x1bad, 0xf038, "Street Fighter IV FightStick TE", 0, XTYPE_XBOX360 },
339 { 0x1bad, 0xf039, "Mad Catz MvC2 TE", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 },
340 { 0x1bad, 0xf03a, "Mad Catz SFxT Fightstick Pro", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 },
341 …{ 0x1bad, 0xf03d, "Street Fighter IV Arcade Stick TE - Chun Li", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XB…
342 { 0x1bad, 0xf03e, "Mad Catz MLG FightStick TE", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 },
343 { 0x1bad, 0xf03f, "Mad Catz FightStick SoulCaliber", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 },
344 { 0x1bad, 0xf042, "Mad Catz FightStick TES+", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 },
345 { 0x1bad, 0xf080, "Mad Catz FightStick TE2", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 },
346 { 0x1bad, 0xf501, "HoriPad EX2 Turbo", 0, XTYPE_XBOX360 },
347 { 0x1bad, 0xf502, "Hori Real Arcade Pro.VX SA", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 },
348 { 0x1bad, 0xf503, "Hori Fighting Stick VX", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 },
349 { 0x1bad, 0xf504, "Hori Real Arcade Pro. EX", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 },
350 { 0x1bad, 0xf505, "Hori Fighting Stick EX2B", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 },
351 { 0x1bad, 0xf506, "Hori Real Arcade Pro.EX Premium VLX", 0, XTYPE_XBOX360 },
352 { 0x1bad, 0xf900, "Harmonix Xbox 360 Controller", 0, XTYPE_XBOX360 },
353 { 0x1bad, 0xf901, "Gamestop Xbox 360 Controller", 0, XTYPE_XBOX360 },
354 { 0x1bad, 0xf903, "Tron Xbox 360 controller", 0, XTYPE_XBOX360 },
355 { 0x1bad, 0xf904, "PDP Versus Fighting Pad", 0, XTYPE_XBOX360 },
356 { 0x1bad, 0xf906, "MortalKombat FightStick", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 },
357 { 0x1bad, 0xfa01, "MadCatz GamePad", 0, XTYPE_XBOX360 },
358 { 0x1bad, 0xfd00, "Razer Onza TE", 0, XTYPE_XBOX360 },
359 { 0x1bad, 0xfd01, "Razer Onza", 0, XTYPE_XBOX360 },
360 { 0x1ee9, 0x1590, "ZOTAC Gaming Zone", 0, XTYPE_XBOX360 },
361 { 0x20d6, 0x2001, "BDA Xbox Series X Wired Controller", 0, XTYPE_XBOXONE },
362 { 0x20d6, 0x2009, "PowerA Enhanced Wired Controller for Xbox Series X|S", 0, XTYPE_XBOXONE },
363 { 0x20d6, 0x2064, "PowerA Wired Controller for Xbox", MAP_SHARE_BUTTON, XTYPE_XBOXONE },
364 { 0x20d6, 0x281f, "PowerA Wired Controller For Xbox 360", 0, XTYPE_XBOX360 },
365 { 0x20d6, 0x400b, "PowerA FUSION Pro 4 Wired Controller", MAP_SHARE_BUTTON, XTYPE_XBOXONE },
366 { 0x20d6, 0x890b, "PowerA MOGA XP-Ultra Controller", MAP_SHARE_BUTTON, XTYPE_XBOXONE },
367 { 0x2345, 0xe00b, "Machenike G5 Pro Controller", 0, XTYPE_XBOX360 },
368 { 0x24c6, 0x5000, "Razer Atrox Arcade Stick", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 },
369 { 0x24c6, 0x5300, "PowerA MINI PROEX Controller", 0, XTYPE_XBOX360 },
370 { 0x24c6, 0x5303, "Xbox Airflo wired controller", 0, XTYPE_XBOX360 },
371 { 0x24c6, 0x530a, "Xbox 360 Pro EX Controller", 0, XTYPE_XBOX360 },
372 { 0x24c6, 0x531a, "PowerA Pro Ex", 0, XTYPE_XBOX360 },
373 { 0x24c6, 0x5397, "FUS1ON Tournament Controller", 0, XTYPE_XBOX360 },
374 { 0x24c6, 0x541a, "PowerA Xbox One Mini Wired Controller", 0, XTYPE_XBOXONE },
375 { 0x24c6, 0x542a, "Xbox ONE spectra", 0, XTYPE_XBOXONE },
376 { 0x24c6, 0x543a, "PowerA Xbox One wired controller", 0, XTYPE_XBOXONE },
377 { 0x24c6, 0x5500, "Hori XBOX 360 EX 2 with Turbo", 0, XTYPE_XBOX360 },
378 { 0x24c6, 0x5501, "Hori Real Arcade Pro VX-SA", 0, XTYPE_XBOX360 },
379 { 0x24c6, 0x5502, "Hori Fighting Stick VX Alt", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 },
380 { 0x24c6, 0x5503, "Hori Fighting Edge", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 },
381 { 0x24c6, 0x5506, "Hori SOULCALIBUR V Stick", 0, XTYPE_XBOX360 },
382 { 0x24c6, 0x550d, "Hori GEM Xbox controller", 0, XTYPE_XBOX360 },
383 { 0x24c6, 0x550e, "Hori Real Arcade Pro V Kai 360", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 },
384 …{ 0x24c6, 0x5510, "Hori Fighting Commander ONE (Xbox 360/PC Mode)", MAP_TRIGGERS_TO_BUTTONS, XTYPE…
385 { 0x24c6, 0x551a, "PowerA FUSION Pro Controller", 0, XTYPE_XBOXONE },
386 { 0x24c6, 0x561a, "PowerA FUSION Controller", 0, XTYPE_XBOXONE },
387 { 0x24c6, 0x581a, "ThrustMaster XB1 Classic Controller", 0, XTYPE_XBOXONE },
388 { 0x24c6, 0x5b00, "ThrustMaster Ferrari 458 Racing Wheel", 0, XTYPE_XBOX360 },
389 { 0x24c6, 0x5b02, "Thrustmaster, Inc. GPX Controller", 0, XTYPE_XBOX360 },
390 { 0x24c6, 0x5b03, "Thrustmaster Ferrari 458 Racing Wheel", 0, XTYPE_XBOX360 },
391 { 0x24c6, 0x5d04, "Razer Sabertooth", 0, XTYPE_XBOX360 },
392 { 0x24c6, 0xfafe, "Rock Candy Gamepad for Xbox 360", 0, XTYPE_XBOX360 },
393 { 0x2563, 0x058d, "OneXPlayer Gamepad", 0, XTYPE_XBOX360 },
394 { 0x294b, 0x3303, "Snakebyte GAMEPAD BASE X", 0, XTYPE_XBOXONE },
395 { 0x294b, 0x3404, "Snakebyte GAMEPAD RGB X", 0, XTYPE_XBOXONE },
396 { 0x2993, 0x2001, "TECNO Pocket Go", 0, XTYPE_XBOX360 },
397 { 0x2dc8, 0x2000, "8BitDo Pro 2 Wired Controller fox Xbox", 0, XTYPE_XBOXONE },
398 { 0x2dc8, 0x200f, "8BitDo Ultimate 3-mode Controller for Xbox", MAP_SHARE_BUTTON, XTYPE_XBOXONE },
399 { 0x2dc8, 0x3106, "8BitDo Ultimate Wireless / Pro 2 Wired Controller", 0, XTYPE_XBOX360 },
400 { 0x2dc8, 0x3109, "8BitDo Ultimate Wireless Bluetooth", 0, XTYPE_XBOX360 },
401 { 0x2dc8, 0x310a, "8BitDo Ultimate 2C Wireless Controller", 0, XTYPE_XBOX360 },
402 { 0x2dc8, 0x310b, "8BitDo Ultimate 2 Wireless Controller", 0, XTYPE_XBOX360 },
403 { 0x2dc8, 0x6001, "8BitDo SN30 Pro", 0, XTYPE_XBOX360 },
404 { 0x2e24, 0x0423, "Hyperkin DuchesS Xbox One pad", MAP_SHARE_BUTTON, XTYPE_XBOXONE },
405 { 0x2e24, 0x0652, "Hyperkin Duke X-Box One pad", 0, XTYPE_XBOXONE },
406 { 0x2e24, 0x1688, "Hyperkin X91 X-Box One pad", 0, XTYPE_XBOXONE },
407 { 0x2e95, 0x0504, "SCUF Gaming Controller", MAP_SHARE_BUTTON, XTYPE_XBOXONE },
408 { 0x31e3, 0x1100, "Wooting One", 0, XTYPE_XBOX360 },
409 { 0x31e3, 0x1200, "Wooting Two", 0, XTYPE_XBOX360 },
410 { 0x31e3, 0x1210, "Wooting Lekker", 0, XTYPE_XBOX360 },
411 { 0x31e3, 0x1220, "Wooting Two HE", 0, XTYPE_XBOX360 },
412 { 0x31e3, 0x1230, "Wooting Two HE (ARM)", 0, XTYPE_XBOX360 },
413 { 0x31e3, 0x1300, "Wooting 60HE (AVR)", 0, XTYPE_XBOX360 },
414 { 0x31e3, 0x1310, "Wooting 60HE (ARM)", 0, XTYPE_XBOX360 },
415 { 0x3285, 0x0603, "Nacon Pro Compact controller for Xbox", 0, XTYPE_XBOXONE },
416 { 0x3285, 0x0607, "Nacon GC-100", 0, XTYPE_XBOX360 },
417 { 0x3285, 0x0614, "Nacon Pro Compact", 0, XTYPE_XBOXONE },
418 { 0x3285, 0x0646, "Nacon Pro Compact", 0, XTYPE_XBOXONE },
419 { 0x3285, 0x0662, "Nacon Revolution5 Pro", 0, XTYPE_XBOX360 },
420 { 0x3285, 0x0663, "Nacon Evol-X", 0, XTYPE_XBOXONE },
421 { 0x3537, 0x1004, "GameSir T4 Kaleid", 0, XTYPE_XBOX360 },
422 { 0x3537, 0x1010, "GameSir G7 SE", 0, XTYPE_XBOXONE },
423 { 0x366c, 0x0005, "ByoWave Proteus Controller", MAP_SHARE_BUTTON, XTYPE_XBOXONE, FLAG_DELAY_INIT },
424 { 0x3767, 0x0101, "Fanatec Speedster 3 Forceshock Wheel", 0, XTYPE_XBOX },
425 { 0x37d7, 0x2501, "Flydigi Apex 5", 0, XTYPE_XBOX360 },
426 { 0x413d, 0x2104, "Black Shark Green Ghost Gamepad", 0, XTYPE_XBOX360 },
427 { 0xffff, 0xffff, "Chinese-made Xbox Controller", 0, XTYPE_XBOX },
428 { 0x0000, 0x0000, "Generic X-Box pad", 0, XTYPE_UNKNOWN }
519 { USB_INTERFACE_INFO('X', 'B', 0) }, /* Xbox USB-IF not-approved class */
520 XPAD_XBOX360_VENDOR(0x0079), /* GPD Win 2 controller */
521 XPAD_XBOX360_VENDOR(0x03eb), /* Wooting Keyboards (Legacy) */
522 XPAD_XBOX360_VENDOR(0x03f0), /* HP HyperX Xbox 360 controllers */
523 XPAD_XBOXONE_VENDOR(0x03f0), /* HP HyperX Xbox One controllers */
524 XPAD_XBOX360_VENDOR(0x044f), /* Thrustmaster Xbox 360 controllers */
525 XPAD_XBOXONE_VENDOR(0x044f), /* Thrustmaster Xbox One controllers */
526 XPAD_XBOX360_VENDOR(0x045e), /* Microsoft Xbox 360 controllers */
527 XPAD_XBOXONE_VENDOR(0x045e), /* Microsoft Xbox One controllers */
528 XPAD_XBOX360_VENDOR(0x046d), /* Logitech Xbox 360-style controllers */
529 XPAD_XBOX360_VENDOR(0x0502), /* Acer Inc. Xbox 360 style controllers */
530 XPAD_XBOX360_VENDOR(0x056e), /* Elecom JC-U3613M */
531 XPAD_XBOX360_VENDOR(0x06a3), /* Saitek P3600 */
532 XPAD_XBOX360_VENDOR(0x0738), /* Mad Catz Xbox 360 controllers */
533 { USB_DEVICE(0x0738, 0x4540) }, /* Mad Catz Beat Pad */
534 XPAD_XBOXONE_VENDOR(0x0738), /* Mad Catz FightStick TE 2 */
535 XPAD_XBOX360_VENDOR(0x07ff), /* Mad Catz Gamepad */
536 XPAD_XBOXONE_VENDOR(0x0b05), /* ASUS controllers */
537 XPAD_XBOX360_VENDOR(0x0c12), /* Zeroplus X-Box 360 controllers */
538 XPAD_XBOX360_VENDOR(0x0db0), /* Micro Star International X-Box 360 controllers */
539 XPAD_XBOX360_VENDOR(0x0e6f), /* 0x0e6f Xbox 360 controllers */
540 XPAD_XBOXONE_VENDOR(0x0e6f), /* 0x0e6f Xbox One controllers */
541 XPAD_XBOX360_VENDOR(0x0f0d), /* Hori controllers */
542 XPAD_XBOXONE_VENDOR(0x0f0d), /* Hori controllers */
543 XPAD_XBOX360_VENDOR(0x1038), /* SteelSeries controllers */
544 XPAD_XBOXONE_VENDOR(0x10f5), /* Turtle Beach Controllers */
545 XPAD_XBOX360_VENDOR(0x11c9), /* Nacon GC100XF */
546 XPAD_XBOX360_VENDOR(0x11ff), /* PXN V900 */
547 XPAD_XBOX360_VENDOR(0x1209), /* Ardwiino Controllers */
548 XPAD_XBOX360_VENDOR(0x12ab), /* Xbox 360 dance pads */
549 XPAD_XBOX360_VENDOR(0x1430), /* RedOctane Xbox 360 controllers */
550 XPAD_XBOX360_VENDOR(0x146b), /* Bigben Interactive controllers */
551 XPAD_XBOX360_VENDOR(0x1532), /* Razer Sabertooth */
552 XPAD_XBOXONE_VENDOR(0x1532), /* Razer Wildcat */
553 XPAD_XBOX360_VENDOR(0x15e4), /* Numark Xbox 360 controllers */
554 XPAD_XBOX360_VENDOR(0x162e), /* Joytech Xbox 360 controllers */
555 XPAD_XBOX360_VENDOR(0x1689), /* Razer Onza */
556 XPAD_XBOX360_VENDOR(0x17ef), /* Lenovo */
557 XPAD_XBOX360_VENDOR(0x1949), /* Amazon controllers */
558 XPAD_XBOX360_VENDOR(0x1a86), /* Nanjing Qinheng Microelectronics (WCH) */
559 XPAD_XBOX360_VENDOR(0x1bad), /* Harmonix Rock Band guitar and drums */
560 XPAD_XBOX360_VENDOR(0x1ee9), /* ZOTAC Technology Limited */
561 XPAD_XBOX360_VENDOR(0x20d6), /* PowerA controllers */
562 XPAD_XBOXONE_VENDOR(0x20d6), /* PowerA controllers */
563 XPAD_XBOX360_VENDOR(0x2345), /* Machenike Controllers */
564 XPAD_XBOX360_VENDOR(0x24c6), /* PowerA controllers */
565 XPAD_XBOXONE_VENDOR(0x24c6), /* PowerA controllers */
566 XPAD_XBOX360_VENDOR(0x2563), /* OneXPlayer Gamepad */
567 XPAD_XBOX360_VENDOR(0x260d), /* Dareu H101 */
568 XPAD_XBOXONE_VENDOR(0x294b), /* Snakebyte */
569 XPAD_XBOX360_VENDOR(0x2993), /* TECNO Mobile */
570 XPAD_XBOX360_VENDOR(0x2c22), /* Qanba Controllers */
571 XPAD_XBOX360_VENDOR(0x2dc8), /* 8BitDo Controllers */
572 XPAD_XBOXONE_VENDOR(0x2dc8), /* 8BitDo Controllers */
573 XPAD_XBOXONE_VENDOR(0x2e24), /* Hyperkin Controllers */
574 XPAD_XBOX360_VENDOR(0x2f24), /* GameSir Controllers */
575 XPAD_XBOXONE_VENDOR(0x2e95), /* SCUF Gaming Controller */
576 XPAD_XBOX360_VENDOR(0x31e3), /* Wooting Keyboards */
577 XPAD_XBOX360_VENDOR(0x3285), /* Nacon GC-100 */
578 XPAD_XBOXONE_VENDOR(0x3285), /* Nacon Evol-X */
579 XPAD_XBOX360_VENDOR(0x3537), /* GameSir Controllers */
580 XPAD_XBOXONE_VENDOR(0x3537), /* GameSir Controllers */
581 XPAD_XBOXONE_VENDOR(0x366c), /* ByoWave controllers */
582 XPAD_XBOX360_VENDOR(0x37d7), /* Flydigi Controllers */
583 XPAD_XBOX360_VENDOR(0x413d), /* Black Shark Green Ghost Controller */
610 #define GIP_CMD_ACK 0x01
611 #define GIP_CMD_ANNOUNCE 0x02
612 #define GIP_CMD_IDENTIFY 0x04
613 #define GIP_CMD_POWER 0x05
614 #define GIP_CMD_AUTHENTICATE 0x06
615 #define GIP_CMD_VIRTUAL_KEY 0x07
616 #define GIP_CMD_RUMBLE 0x09
617 #define GIP_CMD_LED 0x0a
618 #define GIP_CMD_FIRMWARE 0x0c
619 #define GIP_CMD_INPUT 0x20
621 #define GIP_SEQ0 0x00
623 #define GIP_OPT_ACK 0x10
624 #define GIP_OPT_INTERNAL 0x20
636 #define GIP_PWR_ON 0x00
637 #define GIP_LED_ON 0x01
639 #define GIP_MOTOR_R BIT(0)
645 #define GIP_WIRED_INTF_DATA 0
657 * This packet is required for Xbox One S (0x045e:0x02ea)
658 * and Xbox One Elite Series 2 (0x045e:0x0b00) pads to
663 GIP_CMD_POWER, GIP_OPT_INTERNAL, GIP_SEQ0, 0x0f, 0x06
668 * from Xbox One Elite Series 2 (0x045e:0x0b00) pads.
672 0x4d, 0x10, 0x01, 0x02, 0x07, 0x00
677 * (0x0e6f:0x0165) to finish initialization and for Hori pads
678 * (0x0f0d:0x0067) to make the analog sticks work.
682 0x00, GIP_CMD_IDENTIFY, GIP_OPT_INTERNAL, 0x3a, 0x00, 0x00, 0x00, 0x80, 0x00
688 * include: (0x0e6f:0x02ab), (0x0e6f:0x02a4), (0x0e6f:0x02a6).
691 GIP_PL_LEN(3), 0x00, GIP_LED_ON, 0x14 };
695 * sending input reports. These pads include: (0x0e6f:0x02ab),
696 * (0x0e6f:0x02a4), (0x0e6f:0x02a6).
699 GIP_CMD_AUTHENTICATE, GIP_OPT_INTERNAL, GIP_SEQ0, GIP_PL_LEN(2), 0x01, 0x00
704 * sending input reports. One of those pads is (0x24c6:0x543a).
707 GIP_CMD_RUMBLE, 0x00, GIP_SEQ0, GIP_PL_LEN(9),
708 0x00, GIP_MOTOR_ALL, 0x00, 0x00, 0x1D, 0x1D, 0xFF, 0x00, 0x00
718 GIP_CMD_RUMBLE, 0x00, GIP_SEQ0, GIP_PL_LEN(9),
719 0x00, GIP_MOTOR_ALL, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
729 XBOXONE_INIT_PKT(0x0e6f, 0x0165, xboxone_hori_ack_id),
730 XBOXONE_INIT_PKT(0x0f0d, 0x0067, xboxone_hori_ack_id),
731 XBOXONE_INIT_PKT(0x0000, 0x0000, xboxone_power_on),
732 XBOXONE_INIT_PKT(0x045e, 0x02ea, xboxone_s_init),
733 XBOXONE_INIT_PKT(0x045e, 0x0b00, xboxone_s_init),
734 XBOXONE_INIT_PKT(0x045e, 0x0b00, extra_input_packet_init),
735 XBOXONE_INIT_PKT(0x0000, 0x0000, xboxone_led_on),
736 XBOXONE_INIT_PKT(0x0000, 0x0000, xboxone_auth_done),
737 XBOXONE_INIT_PKT(0x24c6, 0x541a, xboxone_rumblebegin_init),
738 XBOXONE_INIT_PKT(0x24c6, 0x542a, xboxone_rumblebegin_init),
739 XBOXONE_INIT_PKT(0x24c6, 0x543a, xboxone_rumblebegin_init),
740 XBOXONE_INIT_PKT(0x24c6, 0x541a, xboxone_rumbleend_init),
741 XBOXONE_INIT_PKT(0x24c6, 0x542a, xboxone_rumbleend_init),
742 XBOXONE_INIT_PKT(0x24c6, 0x543a, xboxone_rumbleend_init),
751 #define XPAD_OUT_CMD_IDX 0
847 input_report_key(dev, BTN_DPAD_UP, data[2] & BIT(0)); in xpad_process_packet()
851 !!(data[2] & 0x08) - !!(data[2] & 0x04)); in xpad_process_packet()
853 !!(data[2] & 0x02) - !!(data[2] & 0x01)); in xpad_process_packet()
890 if (data[0] != 0x00) in xpad360_process_packet()
898 input_report_key(dev, BTN_DPAD_UP, data[2] & BIT(0)); in xpad360_process_packet()
911 !!(data[2] & 0x08) - !!(data[2] & 0x04)); in xpad360_process_packet()
913 !!(data[2] & 0x02) - !!(data[2] & 0x01)); in xpad360_process_packet()
929 input_report_key(dev, BTN_TL, data[3] & BIT(0)); in xpad360_process_packet()
960 if (xpad->mode_btn_down_ts > 0 && xpad->pad_present && in xpad360_process_packet()
964 xpad->mode_btn_down_ts = 0; in xpad360_process_packet()
972 xpad->mode_btn_down_ts = 0; in xpad360_process_packet()
1021 if (data[0] & 0x08) { in xpad360w_process_packet()
1022 present = (data[1] & 0x80) != 0; in xpad360w_process_packet()
1031 if (data[1] != 0x1) in xpad360w_process_packet()
1056 if (data[0] == GIP_CMD_VIRTUAL_KEY) { in xpadone_process_packet()
1065 input_report_key(dev, BTN_MODE, data[4] & GENMASK(1, 0)); in xpadone_process_packet()
1069 } else if (data[0] == GIP_CMD_FIRMWARE) { in xpadone_process_packet()
1076 if (data[19] != 0) in xpadone_process_packet()
1077 data[18] = 0; in xpadone_process_packet()
1080 input_report_key(dev, BTN_GRIPR, data[18] & BIT(0)); in xpadone_process_packet()
1087 } else if (data[0] == GIP_CMD_ANNOUNCE) { in xpadone_process_packet()
1098 } else if (data[0] == GIP_CMD_INPUT) { /* The main valid packet type for inputs */ in xpadone_process_packet()
1104 input_report_key(dev, KEY_RECORD, data[len - 26] & BIT(0)); in xpadone_process_packet()
1106 input_report_key(dev, KEY_RECORD, data[len - 18] & BIT(0)); in xpadone_process_packet()
1120 input_report_key(dev, BTN_DPAD_UP, data[5] & BIT(0)); in xpadone_process_packet()
1124 !!(data[5] & 0x08) - !!(data[5] & 0x04)); in xpadone_process_packet()
1126 !!(data[5] & 0x02) - !!(data[5] & 0x01)); in xpadone_process_packet()
1164 /* Profile button has a value of 0-3, so it is reported as an axis */ in xpadone_process_packet()
1176 if (memcmp(&data[4], &data[18], 2) != 0) in xpadone_process_packet()
1177 data[32] = 0; in xpadone_process_packet()
1182 input_report_key(dev, BTN_GRIPL, data[32] & BIT(0)); in xpadone_process_packet()
1189 if (data[19] != 0) in xpadone_process_packet()
1190 data[18] = 0; in xpadone_process_packet()
1193 input_report_key(dev, BTN_GRIPR, data[18] & BIT(0)); in xpadone_process_packet()
1202 if (data[23] != 0) in xpadone_process_packet()
1203 data[22] = 0; in xpadone_process_packet()
1208 input_report_key(dev, BTN_GRIPR, data[22] & BIT(0)); in xpadone_process_packet()
1231 case 0: in xpad_irq_in()
1249 xpad360_process_packet(xpad, xpad->dev, 0, xpad->idata); in xpad_irq_in()
1252 xpad360w_process_packet(xpad, 0, xpad->idata); in xpad_irq_in()
1255 xpadone_process_packet(xpad, 0, xpad->idata, urb->actual_length); in xpad_irq_in()
1258 xpad_process_packet(xpad, 0, xpad->idata); in xpad_irq_in()
1288 if (init_packet->idVendor != 0 && in xpad_prepare_next_init_packet()
1292 if (init_packet->idProduct != 0 && in xpad_prepare_next_init_packet()
1318 for (i = 0; i < XPAD_NUM_OUT_PACKETS; i++) { in xpad_prepare_next_out_packet()
1320 xpad->last_out_packet = 0; in xpad_prepare_next_out_packet()
1362 return 0; in xpad_try_sending_next_out_packet()
1375 case 0: in xpad_irq_out()
1414 return 0; in xpad_init_output()
1425 xpad->irq_out = usb_alloc_urb(0, GFP_KERNEL); in xpad_init_output()
1438 return 0; in xpad_init_output()
1473 packet->data[0] = 0x08; in xpad_inquiry_pad_presence()
1474 packet->data[1] = 0x00; in xpad_inquiry_pad_presence()
1475 packet->data[2] = 0x0F; in xpad_inquiry_pad_presence()
1476 packet->data[3] = 0xC0; in xpad_inquiry_pad_presence()
1477 packet->data[4] = 0x00; in xpad_inquiry_pad_presence()
1478 packet->data[5] = 0x00; in xpad_inquiry_pad_presence()
1479 packet->data[6] = 0x00; in xpad_inquiry_pad_presence()
1480 packet->data[7] = 0x00; in xpad_inquiry_pad_presence()
1481 packet->data[8] = 0x00; in xpad_inquiry_pad_presence()
1482 packet->data[9] = 0x00; in xpad_inquiry_pad_presence()
1483 packet->data[10] = 0x00; in xpad_inquiry_pad_presence()
1484 packet->data[11] = 0x00; in xpad_inquiry_pad_presence()
1501 * Controller for Series X|S (0x20d6:0x200e) to report the in xpad_start_xbox_one()
1505 GIP_WIRED_INTF_AUDIO, 0); in xpad_start_xbox_one()
1519 xpad->init_seq = 0; in xpad_start_xbox_one()
1529 0x00, GIP_CMD_VIRTUAL_KEY, GIP_OPT_INTERNAL, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00 in xpadone_ack_mode_report()
1553 return 0; in xpad_play_effect()
1562 packet->data[0] = 0x00; in xpad_play_effect()
1563 packet->data[1] = 0x06; in xpad_play_effect()
1564 packet->data[2] = 0x00; in xpad_play_effect()
1566 packet->data[4] = 0x00; in xpad_play_effect()
1573 packet->data[0] = 0x00; in xpad_play_effect()
1574 packet->data[1] = 0x08; in xpad_play_effect()
1575 packet->data[2] = 0x00; in xpad_play_effect()
1578 packet->data[5] = 0x00; in xpad_play_effect()
1579 packet->data[6] = 0x00; in xpad_play_effect()
1580 packet->data[7] = 0x00; in xpad_play_effect()
1586 packet->data[0] = 0x00; in xpad_play_effect()
1587 packet->data[1] = 0x01; in xpad_play_effect()
1588 packet->data[2] = 0x0F; in xpad_play_effect()
1589 packet->data[3] = 0xC0; in xpad_play_effect()
1590 packet->data[4] = 0x00; in xpad_play_effect()
1593 packet->data[7] = 0x00; in xpad_play_effect()
1594 packet->data[8] = 0x00; in xpad_play_effect()
1595 packet->data[9] = 0x00; in xpad_play_effect()
1596 packet->data[10] = 0x00; in xpad_play_effect()
1597 packet->data[11] = 0x00; in xpad_play_effect()
1603 packet->data[0] = GIP_CMD_RUMBLE; /* activate rumble */ in xpad_play_effect()
1604 packet->data[1] = 0x00; in xpad_play_effect()
1607 packet->data[4] = 0x00; in xpad_play_effect()
1609 packet->data[6] = 0x00; /* left trigger */ in xpad_play_effect()
1610 packet->data[7] = 0x00; /* right trigger */ in xpad_play_effect()
1613 packet->data[10] = 0xFF; /* on period */ in xpad_play_effect()
1614 packet->data[11] = 0x00; /* off period */ in xpad_play_effect()
1615 packet->data[12] = 0xFF; /* repeat count */ in xpad_play_effect()
1633 return 0; in xpad_init_ff()
1641 static int xpad_init_ff(struct usb_xpad *xpad) { return 0; } in xpad_init_ff()
1659 * 0: off
1687 packet->data[0] = 0x01; in xpad_send_led_command()
1688 packet->data[1] = 0x03; in xpad_send_led_command()
1695 packet->data[0] = 0x00; in xpad_send_led_command()
1696 packet->data[1] = 0x00; in xpad_send_led_command()
1697 packet->data[2] = 0x08; in xpad_send_led_command()
1698 packet->data[3] = 0x40 + command; in xpad_send_led_command()
1699 packet->data[4] = 0x00; in xpad_send_led_command()
1700 packet->data[5] = 0x00; in xpad_send_led_command()
1701 packet->data[6] = 0x00; in xpad_send_led_command()
1702 packet->data[7] = 0x00; in xpad_send_led_command()
1703 packet->data[8] = 0x00; in xpad_send_led_command()
1704 packet->data[9] = 0x00; in xpad_send_led_command()
1705 packet->data[10] = 0x00; in xpad_send_led_command()
1706 packet->data[11] = 0x00; in xpad_send_led_command()
1740 return 0; in xpad_led_probe()
1747 if (xpad->pad_nr < 0) { in xpad_led_probe()
1766 return 0; in xpad_led_probe()
1787 static int xpad_led_probe(struct usb_xpad *xpad) { return 0; } in xpad_led_probe()
1812 error = usb_control_msg_recv(xpad->udev, 0, in xpad_start_input()
1813 /* bRequest */ 0x01, in xpad_start_input()
1817 /* wValue */ 0x100, in xpad_start_input()
1818 /* wIndex */ 0x00, in xpad_start_input()
1827 return 0; in xpad_start_input()
1842 packet->data[0] = 0x00; in xpad360w_poweroff_controller()
1843 packet->data[1] = 0x00; in xpad360w_poweroff_controller()
1844 packet->data[2] = 0x08; in xpad360w_poweroff_controller()
1845 packet->data[3] = 0xC0; in xpad360w_poweroff_controller()
1846 packet->data[4] = 0x00; in xpad360w_poweroff_controller()
1847 packet->data[5] = 0x00; in xpad360w_poweroff_controller()
1848 packet->data[6] = 0x00; in xpad360w_poweroff_controller()
1849 packet->data[7] = 0x00; in xpad360w_poweroff_controller()
1850 packet->data[8] = 0x00; in xpad360w_poweroff_controller()
1851 packet->data[9] = 0x00; in xpad360w_poweroff_controller()
1852 packet->data[10] = 0x00; in xpad360w_poweroff_controller()
1853 packet->data[11] = 0x00; in xpad360w_poweroff_controller()
1883 return 0; in xpad360w_start_input()
1922 input_set_abs_params(input_dev, abs, 0, 1023, 0, 0); in xpad_set_up_abs()
1924 input_set_abs_params(input_dev, abs, 0, 255, 0, 0); in xpad_set_up_abs()
1928 input_set_abs_params(input_dev, abs, -1, 1, 0, 0); in xpad_set_up_abs()
1931 input_set_abs_params(input_dev, abs, 0, 4, 0, 0); in xpad_set_up_abs()
1934 input_set_abs_params(input_dev, abs, 0, 0, 0, 0); in xpad_set_up_abs()
1964 input_dev->id.product = 0x02a1; in xpad_init_input()
1978 for (i = 0; xpad_abs[i] >= 0; i++) in xpad_init_input()
1983 for (i = 0; xpad_common_btn[i] >= 0; i++) in xpad_init_input()
1989 for (i = 0; xpad360_btn[i] >= 0; i++) in xpad_init_input()
1994 for (i = 0; xpad_btn[i] >= 0; i++) in xpad_init_input()
1999 for (i = 0; xpad_btn_pad[i] >= 0; i++) in xpad_init_input()
2006 for (i = 0; xpad_btn_paddles[i] >= 0; i++) in xpad_init_input()
2018 for (i = 0; xpad_abs_pad[i] >= 0; i++) in xpad_init_input()
2023 for (i = 0; xpad_btn_triggers[i] >= 0; i++) in xpad_init_input()
2027 for (i = 0; xpad_abs_triggers[i] >= 0; i++) in xpad_init_input()
2048 return 0; in xpad_init_input()
2069 for (i = 0; xpad_device[i].idVendor; i++) { in xpad_probe()
2089 xpad->irq_in = usb_alloc_urb(0, GFP_KERNEL); in xpad_probe()
2139 for (i = 0; i < 2; i++) { in xpad_probe()
2170 if (le16_to_cpu(udev->descriptor.idVendor) == 0x045e) { /* Microsoft controllers */ in xpad_probe()
2171 if (le16_to_cpu(udev->descriptor.idProduct) == 0x02e3) { in xpad_probe()
2176 } else if (le16_to_cpu(udev->descriptor.idProduct) == 0x0b00) { in xpad_probe()
2181 if (le16_to_cpu(udev->descriptor.bcdDevice) < 0x0500) { in xpad_probe()
2187 0x050b) { in xpad_probe()
2225 return 0; in xpad_probe()
2294 return 0; in xpad_suspend()
2320 return 0; in xpad_resume()