Lines Matching +full:0 +full:xfd00

80 #define MAP_DPAD_TO_BUTTONS		(1 << 0)
90 #define XTYPE_XBOX 0
101 #define PKT_XB 0
131 { 0x0079, 0x18d4, "GPD Win 2 X-Box Controller", 0, XTYPE_XBOX360 },
132 { 0x03eb, 0xff01, "Wooting One (Legacy)", 0, XTYPE_XBOX360 },
133 { 0x03eb, 0xff02, "Wooting Two (Legacy)", 0, XTYPE_XBOX360 },
134 { 0x03f0, 0x038D, "HyperX Clutch", 0, XTYPE_XBOX360 }, /* wired */
135 { 0x03f0, 0x048D, "HyperX Clutch", 0, XTYPE_XBOX360 }, /* wireless */
136 { 0x03f0, 0x0495, "HyperX Clutch Gladiate", 0, XTYPE_XBOXONE },
137 { 0x03f0, 0x07A0, "HyperX Clutch Gladiate RGB", 0, XTYPE_XBOXONE },
138 { 0x03f0, 0x08B6, "HyperX Clutch Gladiate", 0, XTYPE_XBOXONE }, /* v2 */
139 { 0x03f0, 0x09B4, "HyperX Clutch Tanto", 0, XTYPE_XBOXONE },
140 { 0x044f, 0x0f00, "Thrustmaster Wheel", 0, XTYPE_XBOX },
141 { 0x044f, 0x0f03, "Thrustmaster Wheel", 0, XTYPE_XBOX },
142 { 0x044f, 0x0f07, "Thrustmaster, Inc. Controller", 0, XTYPE_XBOX },
143 { 0x044f, 0xd01e, "ThrustMaster, Inc. ESWAP X 2 ELDEN RING EDITION", 0, XTYPE_XBOXONE },
144 { 0x044f, 0x0f10, "Thrustmaster Modena GT Wheel", 0, XTYPE_XBOX },
145 { 0x044f, 0xb326, "Thrustmaster Gamepad GP XID", 0, XTYPE_XBOX360 },
146 { 0x045e, 0x0202, "Microsoft X-Box pad v1 (US)", 0, XTYPE_XBOX },
147 { 0x045e, 0x0285, "Microsoft X-Box pad (Japan)", 0, XTYPE_XBOX },
148 { 0x045e, 0x0287, "Microsoft Xbox Controller S", 0, XTYPE_XBOX },
149 { 0x045e, 0x0288, "Microsoft Xbox Controller S v2", 0, XTYPE_XBOX },
150 { 0x045e, 0x0289, "Microsoft X-Box pad v2 (US)", 0, XTYPE_XBOX },
151 { 0x045e, 0x028e, "Microsoft X-Box 360 pad", 0, XTYPE_XBOX360 },
152 { 0x045e, 0x028f, "Microsoft X-Box 360 pad v2", 0, XTYPE_XBOX360 },
153 { 0x045e, 0x0291, "Xbox 360 Wireless Receiver (XBOX)", MAP_DPAD_TO_BUTTONS, XTYPE_XBOX360W },
154 { 0x045e, 0x02a9, "Xbox 360 Wireless Receiver (Unofficial)", MAP_DPAD_TO_BUTTONS, XTYPE_XBOX360W },
155 { 0x045e, 0x02d1, "Microsoft X-Box One pad", 0, XTYPE_XBOXONE },
156 { 0x045e, 0x02dd, "Microsoft X-Box One pad (Firmware 2015)", 0, XTYPE_XBOXONE },
157 { 0x045e, 0x02e3, "Microsoft X-Box One Elite pad", MAP_PADDLES, XTYPE_XBOXONE },
158 { 0x045e, 0x02ea, "Microsoft X-Box One S pad", 0, XTYPE_XBOXONE },
159 { 0x045e, 0x0719, "Xbox 360 Wireless Receiver", MAP_DPAD_TO_BUTTONS, XTYPE_XBOX360W },
160 { 0x045e, 0x0b00, "Microsoft X-Box One Elite 2 pad", MAP_PADDLES, XTYPE_XBOXONE },
161 { 0x045e, 0x0b0a, "Microsoft X-Box Adaptive Controller", MAP_PROFILE_BUTTON, XTYPE_XBOXONE },
162 { 0x045e, 0x0b12, "Microsoft Xbox Series S|X Controller", MAP_SELECT_BUTTON, XTYPE_XBOXONE },
163 { 0x046d, 0xc21d, "Logitech Gamepad F310", 0, XTYPE_XBOX360 },
164 { 0x046d, 0xc21e, "Logitech Gamepad F510", 0, XTYPE_XBOX360 },
165 { 0x046d, 0xc21f, "Logitech Gamepad F710", 0, XTYPE_XBOX360 },
166 { 0x046d, 0xc242, "Logitech Chillstream Controller", 0, XTYPE_XBOX360 },
167 { 0x046d, 0xca84, "Logitech Xbox Cordless Controller", 0, XTYPE_XBOX },
168 { 0x046d, 0xca88, "Logitech Compact Controller for Xbox", 0, XTYPE_XBOX },
169 { 0x046d, 0xca8a, "Logitech Precision Vibration Feedback Wheel", 0, XTYPE_XBOX },
170 { 0x046d, 0xcaa3, "Logitech DriveFx Racing Wheel", 0, XTYPE_XBOX360 },
171 { 0x056e, 0x2004, "Elecom JC-U3613M", 0, XTYPE_XBOX360 },
172 { 0x05fd, 0x1007, "Mad Catz Controller (unverified)", 0, XTYPE_XBOX },
173 { 0x05fd, 0x107a, "InterAct 'PowerPad Pro' X-Box pad (Germany)", 0, XTYPE_XBOX },
174 { 0x05fe, 0x3030, "Chic Controller", 0, XTYPE_XBOX },
175 { 0x05fe, 0x3031, "Chic Controller", 0, XTYPE_XBOX },
176 { 0x062a, 0x0020, "Logic3 Xbox GamePad", 0, XTYPE_XBOX },
177 { 0x062a, 0x0033, "Competition Pro Steering Wheel", 0, XTYPE_XBOX },
178 { 0x06a3, 0x0200, "Saitek Racing Wheel", 0, XTYPE_XBOX },
179 { 0x06a3, 0x0201, "Saitek Adrenalin", 0, XTYPE_XBOX },
180 { 0x06a3, 0xf51a, "Saitek P3600", 0, XTYPE_XBOX360 },
181 { 0x0738, 0x4503, "Mad Catz Racing Wheel", 0, XTYPE_XBOXONE },
182 { 0x0738, 0x4506, "Mad Catz 4506 Wireless Controller", 0, XTYPE_XBOX },
183 { 0x0738, 0x4516, "Mad Catz Control Pad", 0, XTYPE_XBOX },
184 { 0x0738, 0x4520, "Mad Catz Control Pad Pro", 0, XTYPE_XBOX },
185 { 0x0738, 0x4522, "Mad Catz LumiCON", 0, XTYPE_XBOX },
186 { 0x0738, 0x4526, "Mad Catz Control Pad Pro", 0, XTYPE_XBOX },
187 { 0x0738, 0x4530, "Mad Catz Universal MC2 Racing Wheel and Pedals", 0, XTYPE_XBOX },
188 { 0x0738, 0x4536, "Mad Catz MicroCON", 0, XTYPE_XBOX },
189 { 0x0738, 0x4540, "Mad Catz Beat Pad", MAP_DPAD_TO_BUTTONS, XTYPE_XBOX },
190 { 0x0738, 0x4556, "Mad Catz Lynx Wireless Controller", 0, XTYPE_XBOX },
191 { 0x0738, 0x4586, "Mad Catz MicroCon Wireless Controller", 0, XTYPE_XBOX },
192 { 0x0738, 0x4588, "Mad Catz Blaster", 0, XTYPE_XBOX },
193 { 0x0738, 0x45ff, "Mad Catz Beat Pad (w/ Handle)", MAP_DPAD_TO_BUTTONS, XTYPE_XBOX },
194 { 0x0738, 0x4716, "Mad Catz Wired Xbox 360 Controller", 0, XTYPE_XBOX360 },
195 { 0x0738, 0x4718, "Mad Catz Street Fighter IV FightStick SE", 0, XTYPE_XBOX360 },
196 { 0x0738, 0x4726, "Mad Catz Xbox 360 Controller", 0, XTYPE_XBOX360 },
197 { 0x0738, 0x4728, "Mad Catz Street Fighter IV FightPad", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 },
198 { 0x0738, 0x4736, "Mad Catz MicroCon Gamepad", 0, XTYPE_XBOX360 },
199 …{ 0x0738, 0x4738, "Mad Catz Wired Xbox 360 Controller (SFIV)", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX…
200 { 0x0738, 0x4740, "Mad Catz Beat Pad", 0, XTYPE_XBOX360 },
201 { 0x0738, 0x4743, "Mad Catz Beat Pad Pro", MAP_DPAD_TO_BUTTONS, XTYPE_XBOX },
202 { 0x0738, 0x4758, "Mad Catz Arcade Game Stick", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 },
203 { 0x0738, 0x4a01, "Mad Catz FightStick TE 2", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOXONE },
204 { 0x0738, 0x6040, "Mad Catz Beat Pad Pro", MAP_DPAD_TO_BUTTONS, XTYPE_XBOX },
205 { 0x0738, 0x9871, "Mad Catz Portable Drum", 0, XTYPE_XBOX360 },
206 { 0x0738, 0xb726, "Mad Catz Xbox controller - MW2", 0, XTYPE_XBOX360 },
207 { 0x0738, 0xb738, "Mad Catz MVC2TE Stick 2", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 },
208 { 0x0738, 0xbeef, "Mad Catz JOYTECH NEO SE Advanced GamePad", XTYPE_XBOX360 },
209 { 0x0738, 0xcb02, "Saitek Cyborg Rumble Pad - PC/Xbox 360", 0, XTYPE_XBOX360 },
210 { 0x0738, 0xcb03, "Saitek P3200 Rumble Pad - PC/Xbox 360", 0, XTYPE_XBOX360 },
211 { 0x0738, 0xcb29, "Saitek Aviator Stick AV8R02", 0, XTYPE_XBOX360 },
212 { 0x0738, 0xf738, "Super SFIV FightStick TE S", 0, XTYPE_XBOX360 },
213 { 0x07ff, 0xffff, "Mad Catz GamePad", 0, XTYPE_XBOX360 },
214 { 0x0b05, 0x1a38, "ASUS ROG RAIKIRI", 0, XTYPE_XBOXONE },
215 { 0x0b05, 0x1abb, "ASUS ROG RAIKIRI PRO", 0, XTYPE_XBOXONE },
216 { 0x0c12, 0x0005, "Intec wireless", 0, XTYPE_XBOX },
217 { 0x0c12, 0x8801, "Nyko Xbox Controller", 0, XTYPE_XBOX },
218 { 0x0c12, 0x8802, "Zeroplus Xbox Controller", 0, XTYPE_XBOX },
219 { 0x0c12, 0x8809, "RedOctane Xbox Dance Pad", DANCEPAD_MAP_CONFIG, XTYPE_XBOX },
220 { 0x0c12, 0x880a, "Pelican Eclipse PL-2023", 0, XTYPE_XBOX },
221 { 0x0c12, 0x8810, "Zeroplus Xbox Controller", 0, XTYPE_XBOX },
222 { 0x0c12, 0x9902, "HAMA VibraX - *FAULTY HARDWARE*", 0, XTYPE_XBOX },
223 { 0x0d2f, 0x0002, "Andamiro Pump It Up pad", MAP_DPAD_TO_BUTTONS, XTYPE_XBOX },
224 { 0x0db0, 0x1901, "Micro Star International Xbox360 Controller for Windows", 0, XTYPE_XBOX360 },
225 { 0x0e4c, 0x1097, "Radica Gamester Controller", 0, XTYPE_XBOX },
226 { 0x0e4c, 0x1103, "Radica Gamester Reflex", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX },
227 { 0x0e4c, 0x2390, "Radica Games Jtech Controller", 0, XTYPE_XBOX },
228 { 0x0e4c, 0x3510, "Radica Gamester", 0, XTYPE_XBOX },
229 { 0x0e6f, 0x0003, "Logic3 Freebird wireless Controller", 0, XTYPE_XBOX },
230 { 0x0e6f, 0x0005, "Eclipse wireless Controller", 0, XTYPE_XBOX },
231 { 0x0e6f, 0x0006, "Edge wireless Controller", 0, XTYPE_XBOX },
232 { 0x0e6f, 0x0008, "After Glow Pro Controller", 0, XTYPE_XBOX },
233 { 0x0e6f, 0x0105, "HSM3 Xbox360 dancepad", MAP_DPAD_TO_BUTTONS, XTYPE_XBOX360 },
234 { 0x0e6f, 0x0113, "Afterglow AX.1 Gamepad for Xbox 360", 0, XTYPE_XBOX360 },
235 { 0x0e6f, 0x011f, "Rock Candy Gamepad Wired Controller", 0, XTYPE_XBOX360 },
236 { 0x0e6f, 0x0131, "PDP EA Sports Controller", 0, XTYPE_XBOX360 },
237 { 0x0e6f, 0x0133, "Xbox 360 Wired Controller", 0, XTYPE_XBOX360 },
238 { 0x0e6f, 0x0139, "Afterglow Prismatic Wired Controller", 0, XTYPE_XBOXONE },
239 { 0x0e6f, 0x013a, "PDP Xbox One Controller", 0, XTYPE_XBOXONE },
240 { 0x0e6f, 0x0146, "Rock Candy Wired Controller for Xbox One", 0, XTYPE_XBOXONE },
241 { 0x0e6f, 0x0147, "PDP Marvel Xbox One Controller", 0, XTYPE_XBOXONE },
242 { 0x0e6f, 0x015c, "PDP Xbox One Arcade Stick", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOXONE },
243 { 0x0e6f, 0x015d, "PDP Mirror's Edge Official Wired Controller for Xbox One", XTYPE_XBOXONE },
244 { 0x0e6f, 0x0161, "PDP Xbox One Controller", 0, XTYPE_XBOXONE },
245 { 0x0e6f, 0x0162, "PDP Xbox One Controller", 0, XTYPE_XBOXONE },
246 { 0x0e6f, 0x0163, "PDP Xbox One Controller", 0, XTYPE_XBOXONE },
247 { 0x0e6f, 0x0164, "PDP Battlefield One", 0, XTYPE_XBOXONE },
248 { 0x0e6f, 0x0165, "PDP Titanfall 2", 0, XTYPE_XBOXONE },
249 { 0x0e6f, 0x0201, "Pelican PL-3601 'TSZ' Wired Xbox 360 Controller", 0, XTYPE_XBOX360 },
250 { 0x0e6f, 0x0213, "Afterglow Gamepad for Xbox 360", 0, XTYPE_XBOX360 },
251 { 0x0e6f, 0x021f, "Rock Candy Gamepad for Xbox 360", 0, XTYPE_XBOX360 },
252 { 0x0e6f, 0x0246, "Rock Candy Gamepad for Xbox One 2015", 0, XTYPE_XBOXONE },
253 { 0x0e6f, 0x02a0, "PDP Xbox One Controller", 0, XTYPE_XBOXONE },
254 { 0x0e6f, 0x02a1, "PDP Xbox One Controller", 0, XTYPE_XBOXONE },
255 { 0x0e6f, 0x02a2, "PDP Wired Controller for Xbox One - Crimson Red", 0, XTYPE_XBOXONE },
256 { 0x0e6f, 0x02a4, "PDP Wired Controller for Xbox One - Stealth Series", 0, XTYPE_XBOXONE },
257 { 0x0e6f, 0x02a6, "PDP Wired Controller for Xbox One - Camo Series", 0, XTYPE_XBOXONE },
258 { 0x0e6f, 0x02a7, "PDP Xbox One Controller", 0, XTYPE_XBOXONE },
259 { 0x0e6f, 0x02a8, "PDP Xbox One Controller", 0, XTYPE_XBOXONE },
260 { 0x0e6f, 0x02ab, "PDP Controller for Xbox One", 0, XTYPE_XBOXONE },
261 { 0x0e6f, 0x02ad, "PDP Wired Controller for Xbox One - Stealth Series", 0, XTYPE_XBOXONE },
262 { 0x0e6f, 0x02b3, "Afterglow Prismatic Wired Controller", 0, XTYPE_XBOXONE },
263 { 0x0e6f, 0x02b8, "Afterglow Prismatic Wired Controller", 0, XTYPE_XBOXONE },
264 { 0x0e6f, 0x0301, "Logic3 Controller", 0, XTYPE_XBOX360 },
265 { 0x0e6f, 0x0346, "Rock Candy Gamepad for Xbox One 2016", 0, XTYPE_XBOXONE },
266 { 0x0e6f, 0x0401, "Logic3 Controller", 0, XTYPE_XBOX360 },
267 { 0x0e6f, 0x0413, "Afterglow AX.1 Gamepad for Xbox 360", 0, XTYPE_XBOX360 },
268 { 0x0e6f, 0x0501, "PDP Xbox 360 Controller", 0, XTYPE_XBOX360 },
269 { 0x0e6f, 0xf900, "PDP Afterglow AX.1", 0, XTYPE_XBOX360 },
270 { 0x0e8f, 0x0201, "SmartJoy Frag Xpad/PS2 adaptor", 0, XTYPE_XBOX },
271 { 0x0e8f, 0x3008, "Generic xbox control (dealextreme)", 0, XTYPE_XBOX },
272 { 0x0f0d, 0x000a, "Hori Co. DOA4 FightStick", 0, XTYPE_XBOX360 },
273 { 0x0f0d, 0x000c, "Hori PadEX Turbo", 0, XTYPE_XBOX360 },
274 { 0x0f0d, 0x000d, "Hori Fighting Stick EX2", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 },
275 { 0x0f0d, 0x0016, "Hori Real Arcade Pro.EX", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 },
276 { 0x0f0d, 0x001b, "Hori Real Arcade Pro VX", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 },
277 …{ 0x0f0d, 0x0063, "Hori Real Arcade Pro Hayabusa (USA) Xbox One", MAP_TRIGGERS_TO_BUTTONS, XTYPE_X…
278 { 0x0f0d, 0x0067, "HORIPAD ONE", 0, XTYPE_XBOXONE },
279 { 0x0f0d, 0x0078, "Hori Real Arcade Pro V Kai Xbox One", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOXONE },
280 { 0x0f0d, 0x00c5, "Hori Fighting Commander ONE", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOXONE },
281 { 0x0f0d, 0x00dc, "HORIPAD FPS for Nintendo Switch", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 },
282 { 0x0f0d, 0x0151, "Hori Racing Wheel Overdrive for Xbox Series X", 0, XTYPE_XBOXONE },
283 { 0x0f0d, 0x0152, "Hori Racing Wheel Overdrive for Xbox Series X", 0, XTYPE_XBOXONE },
284 { 0x0f30, 0x010b, "Philips Recoil", 0, XTYPE_XBOX },
285 { 0x0f30, 0x0202, "Joytech Advanced Controller", 0, XTYPE_XBOX },
286 { 0x0f30, 0x8888, "BigBen XBMiniPad Controller", 0, XTYPE_XBOX },
287 { 0x102c, 0xff0c, "Joytech Wireless Advanced Controller", 0, XTYPE_XBOX },
288 { 0x1038, 0x1430, "SteelSeries Stratus Duo", 0, XTYPE_XBOX360 },
289 { 0x1038, 0x1431, "SteelSeries Stratus Duo", 0, XTYPE_XBOX360 },
290 { 0x10f5, 0x7005, "Turtle Beach Recon Controller", 0, XTYPE_XBOXONE },
291 { 0x11c9, 0x55f0, "Nacon GC-100XF", 0, XTYPE_XBOX360 },
292 { 0x11ff, 0x0511, "PXN V900", 0, XTYPE_XBOX360 },
293 { 0x1209, 0x2882, "Ardwiino Controller", 0, XTYPE_XBOX360 },
294 { 0x12ab, 0x0004, "Honey Bee Xbox360 dancepad", MAP_DPAD_TO_BUTTONS, XTYPE_XBOX360 },
295 { 0x12ab, 0x0301, "PDP AFTERGLOW AX.1", 0, XTYPE_XBOX360 },
296 { 0x12ab, 0x0303, "Mortal Kombat Klassic FightStick", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 },
297 { 0x12ab, 0x8809, "Xbox DDR dancepad", MAP_DPAD_TO_BUTTONS, XTYPE_XBOX },
298 { 0x1430, 0x4748, "RedOctane Guitar Hero X-plorer", 0, XTYPE_XBOX360 },
299 { 0x1430, 0x8888, "TX6500+ Dance Pad (first generation)", MAP_DPAD_TO_BUTTONS, XTYPE_XBOX },
300 { 0x1430, 0xf801, "RedOctane Controller", 0, XTYPE_XBOX360 },
301 { 0x146b, 0x0601, "BigBen Interactive XBOX 360 Controller", 0, XTYPE_XBOX360 },
302 …{ 0x146b, 0x0604, "Bigben Interactive DAIJA Arcade Stick", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 …
303 { 0x1532, 0x0a00, "Razer Atrox Arcade Stick", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOXONE },
304 { 0x1532, 0x0a03, "Razer Wildcat", 0, XTYPE_XBOXONE },
305 { 0x1532, 0x0a29, "Razer Wolverine V2", 0, XTYPE_XBOXONE },
306 { 0x15e4, 0x3f00, "Power A Mini Pro Elite", 0, XTYPE_XBOX360 },
307 { 0x15e4, 0x3f0a, "Xbox Airflo wired controller", 0, XTYPE_XBOX360 },
308 { 0x15e4, 0x3f10, "Batarang Xbox 360 controller", 0, XTYPE_XBOX360 },
309 { 0x162e, 0xbeef, "Joytech Neo-Se Take2", 0, XTYPE_XBOX360 },
310 { 0x1689, 0xfd00, "Razer Onza Tournament Edition", 0, XTYPE_XBOX360 },
311 { 0x1689, 0xfd01, "Razer Onza Classic Edition", 0, XTYPE_XBOX360 },
312 { 0x1689, 0xfe00, "Razer Sabertooth", 0, XTYPE_XBOX360 },
313 { 0x17ef, 0x6182, "Lenovo Legion Controller for Windows", 0, XTYPE_XBOX360 },
314 { 0x1949, 0x041a, "Amazon Game Controller", 0, XTYPE_XBOX360 },
315 { 0x1a86, 0xe310, "Legion Go S", 0, XTYPE_XBOX360 },
316 { 0x1bad, 0x0002, "Harmonix Rock Band Guitar", 0, XTYPE_XBOX360 },
317 { 0x1bad, 0x0003, "Harmonix Rock Band Drumkit", MAP_DPAD_TO_BUTTONS, XTYPE_XBOX360 },
318 { 0x1bad, 0x0130, "Ion Drum Rocker", MAP_DPAD_TO_BUTTONS, XTYPE_XBOX360 },
319 { 0x1bad, 0xf016, "Mad Catz Xbox 360 Controller", 0, XTYPE_XBOX360 },
320 …{ 0x1bad, 0xf018, "Mad Catz Street Fighter IV SE Fighting Stick", MAP_TRIGGERS_TO_BUTTONS, XTYPE_X…
321 { 0x1bad, 0xf019, "Mad Catz Brawlstick for Xbox 360", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 },
322 { 0x1bad, 0xf021, "Mad Cats Ghost Recon FS GamePad", 0, XTYPE_XBOX360 },
323 { 0x1bad, 0xf023, "MLG Pro Circuit Controller (Xbox)", 0, XTYPE_XBOX360 },
324 { 0x1bad, 0xf025, "Mad Catz Call Of Duty", 0, XTYPE_XBOX360 },
325 { 0x1bad, 0xf027, "Mad Catz FPS Pro", 0, XTYPE_XBOX360 },
326 { 0x1bad, 0xf028, "Street Fighter IV FightPad", 0, XTYPE_XBOX360 },
327 { 0x1bad, 0xf02e, "Mad Catz Fightpad", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 },
328 { 0x1bad, 0xf030, "Mad Catz Xbox 360 MC2 MicroCon Racing Wheel", 0, XTYPE_XBOX360 },
329 { 0x1bad, 0xf036, "Mad Catz MicroCon GamePad Pro", 0, XTYPE_XBOX360 },
330 { 0x1bad, 0xf038, "Street Fighter IV FightStick TE", 0, XTYPE_XBOX360 },
331 { 0x1bad, 0xf039, "Mad Catz MvC2 TE", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 },
332 { 0x1bad, 0xf03a, "Mad Catz SFxT Fightstick Pro", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 },
333 …{ 0x1bad, 0xf03d, "Street Fighter IV Arcade Stick TE - Chun Li", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XB…
334 { 0x1bad, 0xf03e, "Mad Catz MLG FightStick TE", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 },
335 { 0x1bad, 0xf03f, "Mad Catz FightStick SoulCaliber", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 },
336 { 0x1bad, 0xf042, "Mad Catz FightStick TES+", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 },
337 { 0x1bad, 0xf080, "Mad Catz FightStick TE2", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 },
338 { 0x1bad, 0xf501, "HoriPad EX2 Turbo", 0, XTYPE_XBOX360 },
339 { 0x1bad, 0xf502, "Hori Real Arcade Pro.VX SA", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 },
340 { 0x1bad, 0xf503, "Hori Fighting Stick VX", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 },
341 { 0x1bad, 0xf504, "Hori Real Arcade Pro. EX", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 },
342 { 0x1bad, 0xf505, "Hori Fighting Stick EX2B", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 },
343 { 0x1bad, 0xf506, "Hori Real Arcade Pro.EX Premium VLX", 0, XTYPE_XBOX360 },
344 { 0x1bad, 0xf900, "Harmonix Xbox 360 Controller", 0, XTYPE_XBOX360 },
345 { 0x1bad, 0xf901, "Gamestop Xbox 360 Controller", 0, XTYPE_XBOX360 },
346 { 0x1bad, 0xf903, "Tron Xbox 360 controller", 0, XTYPE_XBOX360 },
347 { 0x1bad, 0xf904, "PDP Versus Fighting Pad", 0, XTYPE_XBOX360 },
348 { 0x1bad, 0xf906, "MortalKombat FightStick", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 },
349 { 0x1bad, 0xfa01, "MadCatz GamePad", 0, XTYPE_XBOX360 },
350 { 0x1bad, 0xfd00, "Razer Onza TE", 0, XTYPE_XBOX360 },
351 { 0x1bad, 0xfd01, "Razer Onza", 0, XTYPE_XBOX360 },
352 { 0x1ee9, 0x1590, "ZOTAC Gaming Zone", 0, XTYPE_XBOX360 },
353 { 0x20d6, 0x2001, "BDA Xbox Series X Wired Controller", 0, XTYPE_XBOXONE },
354 { 0x20d6, 0x2009, "PowerA Enhanced Wired Controller for Xbox Series X|S", 0, XTYPE_XBOXONE },
355 { 0x20d6, 0x281f, "PowerA Wired Controller For Xbox 360", 0, XTYPE_XBOX360 },
356 { 0x2345, 0xe00b, "Machenike G5 Pro Controller", 0, XTYPE_XBOX360 },
357 { 0x24c6, 0x5000, "Razer Atrox Arcade Stick", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 },
358 { 0x24c6, 0x5300, "PowerA MINI PROEX Controller", 0, XTYPE_XBOX360 },
359 { 0x24c6, 0x5303, "Xbox Airflo wired controller", 0, XTYPE_XBOX360 },
360 { 0x24c6, 0x530a, "Xbox 360 Pro EX Controller", 0, XTYPE_XBOX360 },
361 { 0x24c6, 0x531a, "PowerA Pro Ex", 0, XTYPE_XBOX360 },
362 { 0x24c6, 0x5397, "FUS1ON Tournament Controller", 0, XTYPE_XBOX360 },
363 { 0x24c6, 0x541a, "PowerA Xbox One Mini Wired Controller", 0, XTYPE_XBOXONE },
364 { 0x24c6, 0x542a, "Xbox ONE spectra", 0, XTYPE_XBOXONE },
365 { 0x24c6, 0x543a, "PowerA Xbox One wired controller", 0, XTYPE_XBOXONE },
366 { 0x24c6, 0x5500, "Hori XBOX 360 EX 2 with Turbo", 0, XTYPE_XBOX360 },
367 { 0x24c6, 0x5501, "Hori Real Arcade Pro VX-SA", 0, XTYPE_XBOX360 },
368 { 0x24c6, 0x5502, "Hori Fighting Stick VX Alt", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 },
369 { 0x24c6, 0x5503, "Hori Fighting Edge", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 },
370 { 0x24c6, 0x5506, "Hori SOULCALIBUR V Stick", 0, XTYPE_XBOX360 },
371 { 0x24c6, 0x550d, "Hori GEM Xbox controller", 0, XTYPE_XBOX360 },
372 { 0x24c6, 0x550e, "Hori Real Arcade Pro V Kai 360", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 },
373 …{ 0x24c6, 0x5510, "Hori Fighting Commander ONE (Xbox 360/PC Mode)", MAP_TRIGGERS_TO_BUTTONS, XTYPE…
374 { 0x24c6, 0x551a, "PowerA FUSION Pro Controller", 0, XTYPE_XBOXONE },
375 { 0x24c6, 0x561a, "PowerA FUSION Controller", 0, XTYPE_XBOXONE },
376 { 0x24c6, 0x581a, "ThrustMaster XB1 Classic Controller", 0, XTYPE_XBOXONE },
377 { 0x24c6, 0x5b00, "ThrustMaster Ferrari 458 Racing Wheel", 0, XTYPE_XBOX360 },
378 { 0x24c6, 0x5b02, "Thrustmaster, Inc. GPX Controller", 0, XTYPE_XBOX360 },
379 { 0x24c6, 0x5b03, "Thrustmaster Ferrari 458 Racing Wheel", 0, XTYPE_XBOX360 },
380 { 0x24c6, 0x5d04, "Razer Sabertooth", 0, XTYPE_XBOX360 },
381 { 0x24c6, 0xfafe, "Rock Candy Gamepad for Xbox 360", 0, XTYPE_XBOX360 },
382 { 0x2563, 0x058d, "OneXPlayer Gamepad", 0, XTYPE_XBOX360 },
383 { 0x294b, 0x3303, "Snakebyte GAMEPAD BASE X", 0, XTYPE_XBOXONE },
384 { 0x294b, 0x3404, "Snakebyte GAMEPAD RGB X", 0, XTYPE_XBOXONE },
385 { 0x2993, 0x2001, "TECNO Pocket Go", 0, XTYPE_XBOX360 },
386 { 0x2dc8, 0x2000, "8BitDo Pro 2 Wired Controller fox Xbox", 0, XTYPE_XBOXONE },
387 { 0x2dc8, 0x3106, "8BitDo Ultimate Wireless / Pro 2 Wired Controller", 0, XTYPE_XBOX360 },
388 { 0x2dc8, 0x3109, "8BitDo Ultimate Wireless Bluetooth", 0, XTYPE_XBOX360 },
389 { 0x2dc8, 0x310a, "8BitDo Ultimate 2C Wireless Controller", 0, XTYPE_XBOX360 },
390 { 0x2dc8, 0x6001, "8BitDo SN30 Pro", 0, XTYPE_XBOX360 },
391 { 0x2e24, 0x0652, "Hyperkin Duke X-Box One pad", 0, XTYPE_XBOXONE },
392 { 0x2e24, 0x1688, "Hyperkin X91 X-Box One pad", 0, XTYPE_XBOXONE },
393 { 0x2e95, 0x0504, "SCUF Gaming Controller", MAP_SELECT_BUTTON, XTYPE_XBOXONE },
394 { 0x31e3, 0x1100, "Wooting One", 0, XTYPE_XBOX360 },
395 { 0x31e3, 0x1200, "Wooting Two", 0, XTYPE_XBOX360 },
396 { 0x31e3, 0x1210, "Wooting Lekker", 0, XTYPE_XBOX360 },
397 { 0x31e3, 0x1220, "Wooting Two HE", 0, XTYPE_XBOX360 },
398 { 0x31e3, 0x1230, "Wooting Two HE (ARM)", 0, XTYPE_XBOX360 },
399 { 0x31e3, 0x1300, "Wooting 60HE (AVR)", 0, XTYPE_XBOX360 },
400 { 0x31e3, 0x1310, "Wooting 60HE (ARM)", 0, XTYPE_XBOX360 },
401 { 0x3285, 0x0603, "Nacon Pro Compact controller for Xbox", 0, XTYPE_XBOXONE },
402 { 0x3285, 0x0607, "Nacon GC-100", 0, XTYPE_XBOX360 },
403 { 0x3285, 0x0614, "Nacon Pro Compact", 0, XTYPE_XBOXONE },
404 { 0x3285, 0x0646, "Nacon Pro Compact", 0, XTYPE_XBOXONE },
405 { 0x3285, 0x0662, "Nacon Revolution5 Pro", 0, XTYPE_XBOX360 },
406 { 0x3285, 0x0663, "Nacon Evol-X", 0, XTYPE_XBOXONE },
407 { 0x3537, 0x1004, "GameSir T4 Kaleid", 0, XTYPE_XBOX360 },
408 { 0x3537, 0x1010, "GameSir G7 SE", 0, XTYPE_XBOXONE },
409 { 0x3767, 0x0101, "Fanatec Speedster 3 Forceshock Wheel", 0, XTYPE_XBOX },
410 { 0x413d, 0x2104, "Black Shark Green Ghost Gamepad", 0, XTYPE_XBOX360 },
411 { 0xffff, 0xffff, "Chinese-made Xbox Controller", 0, XTYPE_XBOX },
412 { 0x0000, 0x0000, "Generic X-Box pad", 0, XTYPE_UNKNOWN }
503 { USB_INTERFACE_INFO('X', 'B', 0) }, /* Xbox USB-IF not-approved class */
504 XPAD_XBOX360_VENDOR(0x0079), /* GPD Win 2 controller */
505 XPAD_XBOX360_VENDOR(0x03eb), /* Wooting Keyboards (Legacy) */
506 XPAD_XBOX360_VENDOR(0x03f0), /* HP HyperX Xbox 360 controllers */
507 XPAD_XBOXONE_VENDOR(0x03f0), /* HP HyperX Xbox One controllers */
508 XPAD_XBOX360_VENDOR(0x044f), /* Thrustmaster Xbox 360 controllers */
509 XPAD_XBOXONE_VENDOR(0x044f), /* Thrustmaster Xbox One controllers */
510 XPAD_XBOX360_VENDOR(0x045e), /* Microsoft Xbox 360 controllers */
511 XPAD_XBOXONE_VENDOR(0x045e), /* Microsoft Xbox One controllers */
512 XPAD_XBOX360_VENDOR(0x046d), /* Logitech Xbox 360-style controllers */
513 XPAD_XBOX360_VENDOR(0x056e), /* Elecom JC-U3613M */
514 XPAD_XBOX360_VENDOR(0x06a3), /* Saitek P3600 */
515 XPAD_XBOX360_VENDOR(0x0738), /* Mad Catz Xbox 360 controllers */
516 { USB_DEVICE(0x0738, 0x4540) }, /* Mad Catz Beat Pad */
517 XPAD_XBOXONE_VENDOR(0x0738), /* Mad Catz FightStick TE 2 */
518 XPAD_XBOX360_VENDOR(0x07ff), /* Mad Catz Gamepad */
519 XPAD_XBOXONE_VENDOR(0x0b05), /* ASUS controllers */
520 XPAD_XBOX360_VENDOR(0x0c12), /* Zeroplus X-Box 360 controllers */
521 XPAD_XBOX360_VENDOR(0x0db0), /* Micro Star International X-Box 360 controllers */
522 XPAD_XBOX360_VENDOR(0x0e6f), /* 0x0e6f Xbox 360 controllers */
523 XPAD_XBOXONE_VENDOR(0x0e6f), /* 0x0e6f Xbox One controllers */
524 XPAD_XBOX360_VENDOR(0x0f0d), /* Hori controllers */
525 XPAD_XBOXONE_VENDOR(0x0f0d), /* Hori controllers */
526 XPAD_XBOX360_VENDOR(0x1038), /* SteelSeries controllers */
527 XPAD_XBOXONE_VENDOR(0x10f5), /* Turtle Beach Controllers */
528 XPAD_XBOX360_VENDOR(0x11c9), /* Nacon GC100XF */
529 XPAD_XBOX360_VENDOR(0x11ff), /* PXN V900 */
530 XPAD_XBOX360_VENDOR(0x1209), /* Ardwiino Controllers */
531 XPAD_XBOX360_VENDOR(0x12ab), /* Xbox 360 dance pads */
532 XPAD_XBOX360_VENDOR(0x1430), /* RedOctane Xbox 360 controllers */
533 XPAD_XBOX360_VENDOR(0x146b), /* Bigben Interactive controllers */
534 XPAD_XBOX360_VENDOR(0x1532), /* Razer Sabertooth */
535 XPAD_XBOXONE_VENDOR(0x1532), /* Razer Wildcat */
536 XPAD_XBOX360_VENDOR(0x15e4), /* Numark Xbox 360 controllers */
537 XPAD_XBOX360_VENDOR(0x162e), /* Joytech Xbox 360 controllers */
538 XPAD_XBOX360_VENDOR(0x1689), /* Razer Onza */
539 XPAD_XBOX360_VENDOR(0x17ef), /* Lenovo */
540 XPAD_XBOX360_VENDOR(0x1949), /* Amazon controllers */
541 XPAD_XBOX360_VENDOR(0x1a86), /* Nanjing Qinheng Microelectronics (WCH) */
542 XPAD_XBOX360_VENDOR(0x1bad), /* Harmonix Rock Band guitar and drums */
543 XPAD_XBOX360_VENDOR(0x1ee9), /* ZOTAC Technology Limited */
544 XPAD_XBOX360_VENDOR(0x20d6), /* PowerA controllers */
545 XPAD_XBOXONE_VENDOR(0x20d6), /* PowerA controllers */
546 XPAD_XBOX360_VENDOR(0x2345), /* Machenike Controllers */
547 XPAD_XBOX360_VENDOR(0x24c6), /* PowerA controllers */
548 XPAD_XBOXONE_VENDOR(0x24c6), /* PowerA controllers */
549 XPAD_XBOX360_VENDOR(0x2563), /* OneXPlayer Gamepad */
550 XPAD_XBOX360_VENDOR(0x260d), /* Dareu H101 */
551 XPAD_XBOXONE_VENDOR(0x294b), /* Snakebyte */
552 XPAD_XBOX360_VENDOR(0x2993), /* TECNO Mobile */
553 XPAD_XBOX360_VENDOR(0x2c22), /* Qanba Controllers */
554 XPAD_XBOX360_VENDOR(0x2dc8), /* 8BitDo Controllers */
555 XPAD_XBOXONE_VENDOR(0x2dc8), /* 8BitDo Controllers */
556 XPAD_XBOXONE_VENDOR(0x2e24), /* Hyperkin Controllers */
557 XPAD_XBOX360_VENDOR(0x2f24), /* GameSir Controllers */
558 XPAD_XBOXONE_VENDOR(0x2e95), /* SCUF Gaming Controller */
559 XPAD_XBOX360_VENDOR(0x31e3), /* Wooting Keyboards */
560 XPAD_XBOX360_VENDOR(0x3285), /* Nacon GC-100 */
561 XPAD_XBOXONE_VENDOR(0x3285), /* Nacon Evol-X */
562 XPAD_XBOX360_VENDOR(0x3537), /* GameSir Controllers */
563 XPAD_XBOXONE_VENDOR(0x3537), /* GameSir Controllers */
564 XPAD_XBOX360_VENDOR(0x413d), /* Black Shark Green Ghost Controller */
591 #define GIP_CMD_ACK 0x01
592 #define GIP_CMD_IDENTIFY 0x04
593 #define GIP_CMD_POWER 0x05
594 #define GIP_CMD_AUTHENTICATE 0x06
595 #define GIP_CMD_VIRTUAL_KEY 0x07
596 #define GIP_CMD_RUMBLE 0x09
597 #define GIP_CMD_LED 0x0a
598 #define GIP_CMD_FIRMWARE 0x0c
599 #define GIP_CMD_INPUT 0x20
601 #define GIP_SEQ0 0x00
603 #define GIP_OPT_ACK 0x10
604 #define GIP_OPT_INTERNAL 0x20
616 #define GIP_PWR_ON 0x00
617 #define GIP_LED_ON 0x01
619 #define GIP_MOTOR_R BIT(0)
625 #define GIP_WIRED_INTF_DATA 0
637 * This packet is required for Xbox One S (0x045e:0x02ea)
638 * and Xbox One Elite Series 2 (0x045e:0x0b00) pads to
643 GIP_CMD_POWER, GIP_OPT_INTERNAL, GIP_SEQ0, 0x0f, 0x06
648 * from Xbox One Elite Series 2 (0x045e:0x0b00) pads.
652 0x4d, 0x10, 0x01, 0x02, 0x07, 0x00
657 * (0x0e6f:0x0165) to finish initialization and for Hori pads
658 * (0x0f0d:0x0067) to make the analog sticks work.
662 0x00, GIP_CMD_IDENTIFY, GIP_OPT_INTERNAL, 0x3a, 0x00, 0x00, 0x00, 0x80, 0x00
667 * sending input reports. These pads include: (0x0e6f:0x02ab),
668 * (0x0e6f:0x02a4), (0x0e6f:0x02a6).
671 GIP_CMD_LED, GIP_OPT_INTERNAL, GIP_SEQ0, GIP_PL_LEN(3), 0x00, GIP_LED_ON, 0x14
676 * sending input reports. These pads include: (0x0e6f:0x02ab),
677 * (0x0e6f:0x02a4), (0x0e6f:0x02a6).
680 GIP_CMD_AUTHENTICATE, GIP_OPT_INTERNAL, GIP_SEQ0, GIP_PL_LEN(2), 0x01, 0x00
685 * sending input reports. One of those pads is (0x24c6:0x543a).
688 GIP_CMD_RUMBLE, 0x00, GIP_SEQ0, GIP_PL_LEN(9),
689 0x00, GIP_MOTOR_ALL, 0x00, 0x00, 0x1D, 0x1D, 0xFF, 0x00, 0x00
699 GIP_CMD_RUMBLE, 0x00, GIP_SEQ0, GIP_PL_LEN(9),
700 0x00, GIP_MOTOR_ALL, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
710 XBOXONE_INIT_PKT(0x0e6f, 0x0165, xboxone_hori_ack_id),
711 XBOXONE_INIT_PKT(0x0f0d, 0x0067, xboxone_hori_ack_id),
712 XBOXONE_INIT_PKT(0x0000, 0x0000, xboxone_power_on),
713 XBOXONE_INIT_PKT(0x045e, 0x02ea, xboxone_s_init),
714 XBOXONE_INIT_PKT(0x045e, 0x0b00, xboxone_s_init),
715 XBOXONE_INIT_PKT(0x045e, 0x0b00, extra_input_packet_init),
716 XBOXONE_INIT_PKT(0x0e6f, 0x0000, xboxone_pdp_led_on),
717 XBOXONE_INIT_PKT(0x20d6, 0xa01a, xboxone_pdp_led_on),
718 XBOXONE_INIT_PKT(0x0e6f, 0x0000, xboxone_pdp_auth),
719 XBOXONE_INIT_PKT(0x20d6, 0xa01a, xboxone_pdp_auth),
720 XBOXONE_INIT_PKT(0x24c6, 0x541a, xboxone_rumblebegin_init),
721 XBOXONE_INIT_PKT(0x24c6, 0x542a, xboxone_rumblebegin_init),
722 XBOXONE_INIT_PKT(0x24c6, 0x543a, xboxone_rumblebegin_init),
723 XBOXONE_INIT_PKT(0x24c6, 0x541a, xboxone_rumbleend_init),
724 XBOXONE_INIT_PKT(0x24c6, 0x542a, xboxone_rumbleend_init),
725 XBOXONE_INIT_PKT(0x24c6, 0x543a, xboxone_rumbleend_init),
734 #define XPAD_OUT_CMD_IDX 0
827 input_report_key(dev, BTN_TRIGGER_HAPPY3, data[2] & BIT(0)); in xpad_process_packet()
831 !!(data[2] & 0x08) - !!(data[2] & 0x04)); in xpad_process_packet()
833 !!(data[2] & 0x02) - !!(data[2] & 0x01)); in xpad_process_packet()
870 if (data[0] != 0x00) in xpad360_process_packet()
878 input_report_key(dev, BTN_TRIGGER_HAPPY3, data[2] & BIT(0)); in xpad360_process_packet()
891 !!(data[2] & 0x08) - !!(data[2] & 0x04)); in xpad360_process_packet()
893 !!(data[2] & 0x02) - !!(data[2] & 0x01)); in xpad360_process_packet()
909 input_report_key(dev, BTN_TL, data[3] & BIT(0)); in xpad360_process_packet()
940 if (xpad->mode_btn_down_ts > 0 && xpad->pad_present && in xpad360_process_packet()
944 xpad->mode_btn_down_ts = 0; in xpad360_process_packet()
952 xpad->mode_btn_down_ts = 0; in xpad360_process_packet()
1001 if (data[0] & 0x08) { in xpad360w_process_packet()
1002 present = (data[1] & 0x80) != 0; in xpad360w_process_packet()
1011 if (data[1] != 0x1) in xpad360w_process_packet()
1036 if (data[0] == GIP_CMD_VIRTUAL_KEY) { in xpadone_process_packet()
1045 input_report_key(dev, BTN_MODE, data[4] & GENMASK(1, 0)); in xpadone_process_packet()
1049 } else if (data[0] == GIP_CMD_FIRMWARE) { in xpadone_process_packet()
1056 if (data[19] != 0) in xpadone_process_packet()
1057 data[18] = 0; in xpadone_process_packet()
1060 input_report_key(dev, BTN_TRIGGER_HAPPY5, data[18] & BIT(0)); in xpadone_process_packet()
1067 } else if (data[0] == GIP_CMD_INPUT) { /* The main valid packet type for inputs */ in xpadone_process_packet()
1072 input_report_key(dev, KEY_RECORD, data[22] & BIT(0)); in xpadone_process_packet()
1085 input_report_key(dev, BTN_TRIGGER_HAPPY3, data[5] & BIT(0)); in xpadone_process_packet()
1089 !!(data[5] & 0x08) - !!(data[5] & 0x04)); in xpadone_process_packet()
1091 !!(data[5] & 0x02) - !!(data[5] & 0x01)); in xpadone_process_packet()
1129 /* Profile button has a value of 0-3, so it is reported as an axis */ in xpadone_process_packet()
1141 if (memcmp(&data[4], &data[18], 2) != 0) in xpadone_process_packet()
1142 data[32] = 0; in xpadone_process_packet()
1147 input_report_key(dev, BTN_TRIGGER_HAPPY7, data[32] & BIT(0)); in xpadone_process_packet()
1154 if (data[19] != 0) in xpadone_process_packet()
1155 data[18] = 0; in xpadone_process_packet()
1158 input_report_key(dev, BTN_TRIGGER_HAPPY5, data[18] & BIT(0)); in xpadone_process_packet()
1167 if (data[23] != 0) in xpadone_process_packet()
1168 data[22] = 0; in xpadone_process_packet()
1173 input_report_key(dev, BTN_TRIGGER_HAPPY5, data[22] & BIT(0)); in xpadone_process_packet()
1196 case 0: in xpad_irq_in()
1214 xpad360_process_packet(xpad, xpad->dev, 0, xpad->idata); in xpad_irq_in()
1217 xpad360w_process_packet(xpad, 0, xpad->idata); in xpad_irq_in()
1220 xpadone_process_packet(xpad, 0, xpad->idata); in xpad_irq_in()
1223 xpad_process_packet(xpad, 0, xpad->idata); in xpad_irq_in()
1245 if (init_packet->idVendor != 0 && in xpad_prepare_next_init_packet()
1249 if (init_packet->idProduct != 0 && in xpad_prepare_next_init_packet()
1275 for (i = 0; i < XPAD_NUM_OUT_PACKETS; i++) { in xpad_prepare_next_out_packet()
1277 xpad->last_out_packet = 0; in xpad_prepare_next_out_packet()
1318 return 0; in xpad_try_sending_next_out_packet()
1331 case 0: in xpad_irq_out()
1370 return 0; in xpad_init_output()
1381 xpad->irq_out = usb_alloc_urb(0, GFP_KERNEL); in xpad_init_output()
1394 return 0; in xpad_init_output()
1429 packet->data[0] = 0x08; in xpad_inquiry_pad_presence()
1430 packet->data[1] = 0x00; in xpad_inquiry_pad_presence()
1431 packet->data[2] = 0x0F; in xpad_inquiry_pad_presence()
1432 packet->data[3] = 0xC0; in xpad_inquiry_pad_presence()
1433 packet->data[4] = 0x00; in xpad_inquiry_pad_presence()
1434 packet->data[5] = 0x00; in xpad_inquiry_pad_presence()
1435 packet->data[6] = 0x00; in xpad_inquiry_pad_presence()
1436 packet->data[7] = 0x00; in xpad_inquiry_pad_presence()
1437 packet->data[8] = 0x00; in xpad_inquiry_pad_presence()
1438 packet->data[9] = 0x00; in xpad_inquiry_pad_presence()
1439 packet->data[10] = 0x00; in xpad_inquiry_pad_presence()
1440 packet->data[11] = 0x00; in xpad_inquiry_pad_presence()
1457 * Controller for Series X|S (0x20d6:0x200e) to report the in xpad_start_xbox_one()
1461 GIP_WIRED_INTF_AUDIO, 0); in xpad_start_xbox_one()
1475 xpad->init_seq = 0; in xpad_start_xbox_one()
1485 0x00, GIP_CMD_VIRTUAL_KEY, GIP_OPT_INTERNAL, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00 in xpadone_ack_mode_report()
1509 return 0; in xpad_play_effect()
1518 packet->data[0] = 0x00; in xpad_play_effect()
1519 packet->data[1] = 0x06; in xpad_play_effect()
1520 packet->data[2] = 0x00; in xpad_play_effect()
1522 packet->data[4] = 0x00; in xpad_play_effect()
1529 packet->data[0] = 0x00; in xpad_play_effect()
1530 packet->data[1] = 0x08; in xpad_play_effect()
1531 packet->data[2] = 0x00; in xpad_play_effect()
1534 packet->data[5] = 0x00; in xpad_play_effect()
1535 packet->data[6] = 0x00; in xpad_play_effect()
1536 packet->data[7] = 0x00; in xpad_play_effect()
1542 packet->data[0] = 0x00; in xpad_play_effect()
1543 packet->data[1] = 0x01; in xpad_play_effect()
1544 packet->data[2] = 0x0F; in xpad_play_effect()
1545 packet->data[3] = 0xC0; in xpad_play_effect()
1546 packet->data[4] = 0x00; in xpad_play_effect()
1549 packet->data[7] = 0x00; in xpad_play_effect()
1550 packet->data[8] = 0x00; in xpad_play_effect()
1551 packet->data[9] = 0x00; in xpad_play_effect()
1552 packet->data[10] = 0x00; in xpad_play_effect()
1553 packet->data[11] = 0x00; in xpad_play_effect()
1559 packet->data[0] = GIP_CMD_RUMBLE; /* activate rumble */ in xpad_play_effect()
1560 packet->data[1] = 0x00; in xpad_play_effect()
1563 packet->data[4] = 0x00; in xpad_play_effect()
1565 packet->data[6] = 0x00; /* left trigger */ in xpad_play_effect()
1566 packet->data[7] = 0x00; /* right trigger */ in xpad_play_effect()
1569 packet->data[10] = 0xFF; /* on period */ in xpad_play_effect()
1570 packet->data[11] = 0x00; /* off period */ in xpad_play_effect()
1571 packet->data[12] = 0xFF; /* repeat count */ in xpad_play_effect()
1589 return 0; in xpad_init_ff()
1597 static int xpad_init_ff(struct usb_xpad *xpad) { return 0; } in xpad_init_ff()
1615 * 0: off
1643 packet->data[0] = 0x01; in xpad_send_led_command()
1644 packet->data[1] = 0x03; in xpad_send_led_command()
1651 packet->data[0] = 0x00; in xpad_send_led_command()
1652 packet->data[1] = 0x00; in xpad_send_led_command()
1653 packet->data[2] = 0x08; in xpad_send_led_command()
1654 packet->data[3] = 0x40 + command; in xpad_send_led_command()
1655 packet->data[4] = 0x00; in xpad_send_led_command()
1656 packet->data[5] = 0x00; in xpad_send_led_command()
1657 packet->data[6] = 0x00; in xpad_send_led_command()
1658 packet->data[7] = 0x00; in xpad_send_led_command()
1659 packet->data[8] = 0x00; in xpad_send_led_command()
1660 packet->data[9] = 0x00; in xpad_send_led_command()
1661 packet->data[10] = 0x00; in xpad_send_led_command()
1662 packet->data[11] = 0x00; in xpad_send_led_command()
1696 return 0; in xpad_led_probe()
1703 if (xpad->pad_nr < 0) { in xpad_led_probe()
1722 return 0; in xpad_led_probe()
1743 static int xpad_led_probe(struct usb_xpad *xpad) { return 0; } in xpad_led_probe()
1768 error = usb_control_msg_recv(xpad->udev, 0, in xpad_start_input()
1769 /* bRequest */ 0x01, in xpad_start_input()
1773 /* wValue */ 0x100, in xpad_start_input()
1774 /* wIndex */ 0x00, in xpad_start_input()
1783 return 0; in xpad_start_input()
1798 packet->data[0] = 0x00; in xpad360w_poweroff_controller()
1799 packet->data[1] = 0x00; in xpad360w_poweroff_controller()
1800 packet->data[2] = 0x08; in xpad360w_poweroff_controller()
1801 packet->data[3] = 0xC0; in xpad360w_poweroff_controller()
1802 packet->data[4] = 0x00; in xpad360w_poweroff_controller()
1803 packet->data[5] = 0x00; in xpad360w_poweroff_controller()
1804 packet->data[6] = 0x00; in xpad360w_poweroff_controller()
1805 packet->data[7] = 0x00; in xpad360w_poweroff_controller()
1806 packet->data[8] = 0x00; in xpad360w_poweroff_controller()
1807 packet->data[9] = 0x00; in xpad360w_poweroff_controller()
1808 packet->data[10] = 0x00; in xpad360w_poweroff_controller()
1809 packet->data[11] = 0x00; in xpad360w_poweroff_controller()
1839 return 0; in xpad360w_start_input()
1878 input_set_abs_params(input_dev, abs, 0, 1023, 0, 0); in xpad_set_up_abs()
1880 input_set_abs_params(input_dev, abs, 0, 255, 0, 0); in xpad_set_up_abs()
1884 input_set_abs_params(input_dev, abs, -1, 1, 0, 0); in xpad_set_up_abs()
1887 input_set_abs_params(input_dev, abs, 0, 4, 0, 0); in xpad_set_up_abs()
1890 input_set_abs_params(input_dev, abs, 0, 0, 0, 0); in xpad_set_up_abs()
1920 input_dev->id.product = 0x02a1; in xpad_init_input()
1934 for (i = 0; xpad_abs[i] >= 0; i++) in xpad_init_input()
1939 for (i = 0; xpad_common_btn[i] >= 0; i++) in xpad_init_input()
1945 for (i = 0; xpad360_btn[i] >= 0; i++) in xpad_init_input()
1950 for (i = 0; xpad_btn[i] >= 0; i++) in xpad_init_input()
1955 for (i = 0; xpad_btn_pad[i] >= 0; i++) in xpad_init_input()
1962 for (i = 0; xpad_btn_paddles[i] >= 0; i++) in xpad_init_input()
1974 for (i = 0; xpad_abs_pad[i] >= 0; i++) in xpad_init_input()
1979 for (i = 0; xpad_btn_triggers[i] >= 0; i++) in xpad_init_input()
1983 for (i = 0; xpad_abs_triggers[i] >= 0; i++) in xpad_init_input()
2004 return 0; in xpad_init_input()
2025 for (i = 0; xpad_device[i].idVendor; i++) { in xpad_probe()
2045 xpad->irq_in = usb_alloc_urb(0, GFP_KERNEL); in xpad_probe()
2092 for (i = 0; i < 2; i++) { in xpad_probe()
2123 if (le16_to_cpu(udev->descriptor.idVendor) == 0x045e) { /* Microsoft controllers */ in xpad_probe()
2124 if (le16_to_cpu(udev->descriptor.idProduct) == 0x02e3) { in xpad_probe()
2129 } else if (le16_to_cpu(udev->descriptor.idProduct) == 0x0b00) { in xpad_probe()
2134 if (le16_to_cpu(udev->descriptor.bcdDevice) < 0x0500) { in xpad_probe()
2140 0x050b) { in xpad_probe()
2178 return 0; in xpad_probe()
2247 return 0; in xpad_suspend()
2272 return 0; in xpad_resume()