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, 0x0f10, "Thrustmaster Modena GT Wheel", 0, XTYPE_XBOX },
144 { 0x044f, 0xb326, "Thrustmaster Gamepad GP XID", 0, XTYPE_XBOX360 },
145 { 0x045e, 0x0202, "Microsoft X-Box pad v1 (US)", 0, XTYPE_XBOX },
146 { 0x045e, 0x0285, "Microsoft X-Box pad (Japan)", 0, XTYPE_XBOX },
147 { 0x045e, 0x0287, "Microsoft Xbox Controller S", 0, XTYPE_XBOX },
148 { 0x045e, 0x0288, "Microsoft Xbox Controller S v2", 0, XTYPE_XBOX },
149 { 0x045e, 0x0289, "Microsoft X-Box pad v2 (US)", 0, XTYPE_XBOX },
150 { 0x045e, 0x028e, "Microsoft X-Box 360 pad", 0, XTYPE_XBOX360 },
151 { 0x045e, 0x028f, "Microsoft X-Box 360 pad v2", 0, XTYPE_XBOX360 },
152 { 0x045e, 0x0291, "Xbox 360 Wireless Receiver (XBOX)", MAP_DPAD_TO_BUTTONS, XTYPE_XBOX360W },
153 { 0x045e, 0x02d1, "Microsoft X-Box One pad", 0, XTYPE_XBOXONE },
154 { 0x045e, 0x02dd, "Microsoft X-Box One pad (Firmware 2015)", 0, XTYPE_XBOXONE },
155 { 0x045e, 0x02e3, "Microsoft X-Box One Elite pad", MAP_PADDLES, XTYPE_XBOXONE },
156 { 0x045e, 0x02ea, "Microsoft X-Box One S pad", 0, XTYPE_XBOXONE },
157 { 0x045e, 0x0719, "Xbox 360 Wireless Receiver", MAP_DPAD_TO_BUTTONS, XTYPE_XBOX360W },
158 { 0x045e, 0x0b00, "Microsoft X-Box One Elite 2 pad", MAP_PADDLES, XTYPE_XBOXONE },
159 { 0x045e, 0x0b0a, "Microsoft X-Box Adaptive Controller", MAP_PROFILE_BUTTON, XTYPE_XBOXONE },
160 { 0x045e, 0x0b12, "Microsoft Xbox Series S|X Controller", MAP_SELECT_BUTTON, XTYPE_XBOXONE },
161 { 0x046d, 0xc21d, "Logitech Gamepad F310", 0, XTYPE_XBOX360 },
162 { 0x046d, 0xc21e, "Logitech Gamepad F510", 0, XTYPE_XBOX360 },
163 { 0x046d, 0xc21f, "Logitech Gamepad F710", 0, XTYPE_XBOX360 },
164 { 0x046d, 0xc242, "Logitech Chillstream Controller", 0, XTYPE_XBOX360 },
165 { 0x046d, 0xca84, "Logitech Xbox Cordless Controller", 0, XTYPE_XBOX },
166 { 0x046d, 0xca88, "Logitech Compact Controller for Xbox", 0, XTYPE_XBOX },
167 { 0x046d, 0xca8a, "Logitech Precision Vibration Feedback Wheel", 0, XTYPE_XBOX },
168 { 0x046d, 0xcaa3, "Logitech DriveFx Racing Wheel", 0, XTYPE_XBOX360 },
169 { 0x056e, 0x2004, "Elecom JC-U3613M", 0, XTYPE_XBOX360 },
170 { 0x05fd, 0x1007, "Mad Catz Controller (unverified)", 0, XTYPE_XBOX },
171 { 0x05fd, 0x107a, "InterAct 'PowerPad Pro' X-Box pad (Germany)", 0, XTYPE_XBOX },
172 { 0x05fe, 0x3030, "Chic Controller", 0, XTYPE_XBOX },
173 { 0x05fe, 0x3031, "Chic Controller", 0, XTYPE_XBOX },
174 { 0x062a, 0x0020, "Logic3 Xbox GamePad", 0, XTYPE_XBOX },
175 { 0x062a, 0x0033, "Competition Pro Steering Wheel", 0, XTYPE_XBOX },
176 { 0x06a3, 0x0200, "Saitek Racing Wheel", 0, XTYPE_XBOX },
177 { 0x06a3, 0x0201, "Saitek Adrenalin", 0, XTYPE_XBOX },
178 { 0x06a3, 0xf51a, "Saitek P3600", 0, XTYPE_XBOX360 },
179 { 0x0738, 0x4506, "Mad Catz 4506 Wireless Controller", 0, XTYPE_XBOX },
180 { 0x0738, 0x4516, "Mad Catz Control Pad", 0, XTYPE_XBOX },
181 { 0x0738, 0x4520, "Mad Catz Control Pad Pro", 0, XTYPE_XBOX },
182 { 0x0738, 0x4522, "Mad Catz LumiCON", 0, XTYPE_XBOX },
183 { 0x0738, 0x4526, "Mad Catz Control Pad Pro", 0, XTYPE_XBOX },
184 { 0x0738, 0x4530, "Mad Catz Universal MC2 Racing Wheel and Pedals", 0, XTYPE_XBOX },
185 { 0x0738, 0x4536, "Mad Catz MicroCON", 0, XTYPE_XBOX },
186 { 0x0738, 0x4540, "Mad Catz Beat Pad", MAP_DPAD_TO_BUTTONS, XTYPE_XBOX },
187 { 0x0738, 0x4556, "Mad Catz Lynx Wireless Controller", 0, XTYPE_XBOX },
188 { 0x0738, 0x4586, "Mad Catz MicroCon Wireless Controller", 0, XTYPE_XBOX },
189 { 0x0738, 0x4588, "Mad Catz Blaster", 0, XTYPE_XBOX },
190 { 0x0738, 0x45ff, "Mad Catz Beat Pad (w/ Handle)", MAP_DPAD_TO_BUTTONS, XTYPE_XBOX },
191 { 0x0738, 0x4716, "Mad Catz Wired Xbox 360 Controller", 0, XTYPE_XBOX360 },
192 { 0x0738, 0x4718, "Mad Catz Street Fighter IV FightStick SE", 0, XTYPE_XBOX360 },
193 { 0x0738, 0x4726, "Mad Catz Xbox 360 Controller", 0, XTYPE_XBOX360 },
194 { 0x0738, 0x4728, "Mad Catz Street Fighter IV FightPad", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 },
195 { 0x0738, 0x4736, "Mad Catz MicroCon Gamepad", 0, XTYPE_XBOX360 },
196 …{ 0x0738, 0x4738, "Mad Catz Wired Xbox 360 Controller (SFIV)", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX…
197 { 0x0738, 0x4740, "Mad Catz Beat Pad", 0, XTYPE_XBOX360 },
198 { 0x0738, 0x4743, "Mad Catz Beat Pad Pro", MAP_DPAD_TO_BUTTONS, XTYPE_XBOX },
199 { 0x0738, 0x4758, "Mad Catz Arcade Game Stick", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 },
200 { 0x0738, 0x4a01, "Mad Catz FightStick TE 2", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOXONE },
201 { 0x0738, 0x6040, "Mad Catz Beat Pad Pro", MAP_DPAD_TO_BUTTONS, XTYPE_XBOX },
202 { 0x0738, 0x9871, "Mad Catz Portable Drum", 0, XTYPE_XBOX360 },
203 { 0x0738, 0xb726, "Mad Catz Xbox controller - MW2", 0, XTYPE_XBOX360 },
204 { 0x0738, 0xb738, "Mad Catz MVC2TE Stick 2", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 },
205 { 0x0738, 0xbeef, "Mad Catz JOYTECH NEO SE Advanced GamePad", XTYPE_XBOX360 },
206 { 0x0738, 0xcb02, "Saitek Cyborg Rumble Pad - PC/Xbox 360", 0, XTYPE_XBOX360 },
207 { 0x0738, 0xcb03, "Saitek P3200 Rumble Pad - PC/Xbox 360", 0, XTYPE_XBOX360 },
208 { 0x0738, 0xcb29, "Saitek Aviator Stick AV8R02", 0, XTYPE_XBOX360 },
209 { 0x0738, 0xf738, "Super SFIV FightStick TE S", 0, XTYPE_XBOX360 },
210 { 0x07ff, 0xffff, "Mad Catz GamePad", 0, XTYPE_XBOX360 },
211 { 0x0b05, 0x1a38, "ASUS ROG RAIKIRI", 0, XTYPE_XBOXONE },
212 { 0x0b05, 0x1abb, "ASUS ROG RAIKIRI PRO", 0, XTYPE_XBOXONE },
213 { 0x0c12, 0x0005, "Intec wireless", 0, XTYPE_XBOX },
214 { 0x0c12, 0x8801, "Nyko Xbox Controller", 0, XTYPE_XBOX },
215 { 0x0c12, 0x8802, "Zeroplus Xbox Controller", 0, XTYPE_XBOX },
216 { 0x0c12, 0x8809, "RedOctane Xbox Dance Pad", DANCEPAD_MAP_CONFIG, XTYPE_XBOX },
217 { 0x0c12, 0x880a, "Pelican Eclipse PL-2023", 0, XTYPE_XBOX },
218 { 0x0c12, 0x8810, "Zeroplus Xbox Controller", 0, XTYPE_XBOX },
219 { 0x0c12, 0x9902, "HAMA VibraX - *FAULTY HARDWARE*", 0, XTYPE_XBOX },
220 { 0x0d2f, 0x0002, "Andamiro Pump It Up pad", MAP_DPAD_TO_BUTTONS, XTYPE_XBOX },
221 { 0x0db0, 0x1901, "Micro Star International Xbox360 Controller for Windows", 0, XTYPE_XBOX360 },
222 { 0x0e4c, 0x1097, "Radica Gamester Controller", 0, XTYPE_XBOX },
223 { 0x0e4c, 0x1103, "Radica Gamester Reflex", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX },
224 { 0x0e4c, 0x2390, "Radica Games Jtech Controller", 0, XTYPE_XBOX },
225 { 0x0e4c, 0x3510, "Radica Gamester", 0, XTYPE_XBOX },
226 { 0x0e6f, 0x0003, "Logic3 Freebird wireless Controller", 0, XTYPE_XBOX },
227 { 0x0e6f, 0x0005, "Eclipse wireless Controller", 0, XTYPE_XBOX },
228 { 0x0e6f, 0x0006, "Edge wireless Controller", 0, XTYPE_XBOX },
229 { 0x0e6f, 0x0008, "After Glow Pro Controller", 0, XTYPE_XBOX },
230 { 0x0e6f, 0x0105, "HSM3 Xbox360 dancepad", MAP_DPAD_TO_BUTTONS, XTYPE_XBOX360 },
231 { 0x0e6f, 0x0113, "Afterglow AX.1 Gamepad for Xbox 360", 0, XTYPE_XBOX360 },
232 { 0x0e6f, 0x011f, "Rock Candy Gamepad Wired Controller", 0, XTYPE_XBOX360 },
233 { 0x0e6f, 0x0131, "PDP EA Sports Controller", 0, XTYPE_XBOX360 },
234 { 0x0e6f, 0x0133, "Xbox 360 Wired Controller", 0, XTYPE_XBOX360 },
235 { 0x0e6f, 0x0139, "Afterglow Prismatic Wired Controller", 0, XTYPE_XBOXONE },
236 { 0x0e6f, 0x013a, "PDP Xbox One Controller", 0, XTYPE_XBOXONE },
237 { 0x0e6f, 0x0146, "Rock Candy Wired Controller for Xbox One", 0, XTYPE_XBOXONE },
238 { 0x0e6f, 0x0147, "PDP Marvel Xbox One Controller", 0, XTYPE_XBOXONE },
239 { 0x0e6f, 0x015c, "PDP Xbox One Arcade Stick", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOXONE },
240 { 0x0e6f, 0x0161, "PDP Xbox One Controller", 0, XTYPE_XBOXONE },
241 { 0x0e6f, 0x0162, "PDP Xbox One Controller", 0, XTYPE_XBOXONE },
242 { 0x0e6f, 0x0163, "PDP Xbox One Controller", 0, XTYPE_XBOXONE },
243 { 0x0e6f, 0x0164, "PDP Battlefield One", 0, XTYPE_XBOXONE },
244 { 0x0e6f, 0x0165, "PDP Titanfall 2", 0, XTYPE_XBOXONE },
245 { 0x0e6f, 0x0201, "Pelican PL-3601 'TSZ' Wired Xbox 360 Controller", 0, XTYPE_XBOX360 },
246 { 0x0e6f, 0x0213, "Afterglow Gamepad for Xbox 360", 0, XTYPE_XBOX360 },
247 { 0x0e6f, 0x021f, "Rock Candy Gamepad for Xbox 360", 0, XTYPE_XBOX360 },
248 { 0x0e6f, 0x0246, "Rock Candy Gamepad for Xbox One 2015", 0, XTYPE_XBOXONE },
249 { 0x0e6f, 0x02a0, "PDP Xbox One Controller", 0, XTYPE_XBOXONE },
250 { 0x0e6f, 0x02a1, "PDP Xbox One Controller", 0, XTYPE_XBOXONE },
251 { 0x0e6f, 0x02a2, "PDP Wired Controller for Xbox One - Crimson Red", 0, XTYPE_XBOXONE },
252 { 0x0e6f, 0x02a4, "PDP Wired Controller for Xbox One - Stealth Series", 0, XTYPE_XBOXONE },
253 { 0x0e6f, 0x02a6, "PDP Wired Controller for Xbox One - Camo Series", 0, XTYPE_XBOXONE },
254 { 0x0e6f, 0x02a7, "PDP Xbox One Controller", 0, XTYPE_XBOXONE },
255 { 0x0e6f, 0x02a8, "PDP Xbox One Controller", 0, XTYPE_XBOXONE },
256 { 0x0e6f, 0x02ab, "PDP Controller for Xbox One", 0, XTYPE_XBOXONE },
257 { 0x0e6f, 0x02ad, "PDP Wired Controller for Xbox One - Stealth Series", 0, XTYPE_XBOXONE },
258 { 0x0e6f, 0x02b3, "Afterglow Prismatic Wired Controller", 0, XTYPE_XBOXONE },
259 { 0x0e6f, 0x02b8, "Afterglow Prismatic Wired Controller", 0, XTYPE_XBOXONE },
260 { 0x0e6f, 0x0301, "Logic3 Controller", 0, XTYPE_XBOX360 },
261 { 0x0e6f, 0x0346, "Rock Candy Gamepad for Xbox One 2016", 0, XTYPE_XBOXONE },
262 { 0x0e6f, 0x0401, "Logic3 Controller", 0, XTYPE_XBOX360 },
263 { 0x0e6f, 0x0413, "Afterglow AX.1 Gamepad for Xbox 360", 0, XTYPE_XBOX360 },
264 { 0x0e6f, 0x0501, "PDP Xbox 360 Controller", 0, XTYPE_XBOX360 },
265 { 0x0e6f, 0xf900, "PDP Afterglow AX.1", 0, XTYPE_XBOX360 },
266 { 0x0e8f, 0x0201, "SmartJoy Frag Xpad/PS2 adaptor", 0, XTYPE_XBOX },
267 { 0x0e8f, 0x3008, "Generic xbox control (dealextreme)", 0, XTYPE_XBOX },
268 { 0x0f0d, 0x000a, "Hori Co. DOA4 FightStick", 0, XTYPE_XBOX360 },
269 { 0x0f0d, 0x000c, "Hori PadEX Turbo", 0, XTYPE_XBOX360 },
270 { 0x0f0d, 0x000d, "Hori Fighting Stick EX2", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 },
271 { 0x0f0d, 0x0016, "Hori Real Arcade Pro.EX", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 },
272 { 0x0f0d, 0x001b, "Hori Real Arcade Pro VX", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 },
273 …{ 0x0f0d, 0x0063, "Hori Real Arcade Pro Hayabusa (USA) Xbox One", MAP_TRIGGERS_TO_BUTTONS, XTYPE_X…
274 { 0x0f0d, 0x0067, "HORIPAD ONE", 0, XTYPE_XBOXONE },
275 { 0x0f0d, 0x0078, "Hori Real Arcade Pro V Kai Xbox One", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOXONE },
276 { 0x0f0d, 0x00c5, "Hori Fighting Commander ONE", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOXONE },
277 { 0x0f0d, 0x00dc, "HORIPAD FPS for Nintendo Switch", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 },
278 { 0x0f30, 0x010b, "Philips Recoil", 0, XTYPE_XBOX },
279 { 0x0f30, 0x0202, "Joytech Advanced Controller", 0, XTYPE_XBOX },
280 { 0x0f30, 0x8888, "BigBen XBMiniPad Controller", 0, XTYPE_XBOX },
281 { 0x102c, 0xff0c, "Joytech Wireless Advanced Controller", 0, XTYPE_XBOX },
282 { 0x1038, 0x1430, "SteelSeries Stratus Duo", 0, XTYPE_XBOX360 },
283 { 0x1038, 0x1431, "SteelSeries Stratus Duo", 0, XTYPE_XBOX360 },
284 { 0x11c9, 0x55f0, "Nacon GC-100XF", 0, XTYPE_XBOX360 },
285 { 0x11ff, 0x0511, "PXN V900", 0, XTYPE_XBOX360 },
286 { 0x1209, 0x2882, "Ardwiino Controller", 0, XTYPE_XBOX360 },
287 { 0x12ab, 0x0004, "Honey Bee Xbox360 dancepad", MAP_DPAD_TO_BUTTONS, XTYPE_XBOX360 },
288 { 0x12ab, 0x0301, "PDP AFTERGLOW AX.1", 0, XTYPE_XBOX360 },
289 { 0x12ab, 0x0303, "Mortal Kombat Klassic FightStick", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 },
290 { 0x12ab, 0x8809, "Xbox DDR dancepad", MAP_DPAD_TO_BUTTONS, XTYPE_XBOX },
291 { 0x1430, 0x4748, "RedOctane Guitar Hero X-plorer", 0, XTYPE_XBOX360 },
292 { 0x1430, 0x8888, "TX6500+ Dance Pad (first generation)", MAP_DPAD_TO_BUTTONS, XTYPE_XBOX },
293 { 0x1430, 0xf801, "RedOctane Controller", 0, XTYPE_XBOX360 },
294 { 0x146b, 0x0601, "BigBen Interactive XBOX 360 Controller", 0, XTYPE_XBOX360 },
295 …{ 0x146b, 0x0604, "Bigben Interactive DAIJA Arcade Stick", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 …
296 { 0x1532, 0x0a00, "Razer Atrox Arcade Stick", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOXONE },
297 { 0x1532, 0x0a03, "Razer Wildcat", 0, XTYPE_XBOXONE },
298 { 0x1532, 0x0a29, "Razer Wolverine V2", 0, XTYPE_XBOXONE },
299 { 0x15e4, 0x3f00, "Power A Mini Pro Elite", 0, XTYPE_XBOX360 },
300 { 0x15e4, 0x3f0a, "Xbox Airflo wired controller", 0, XTYPE_XBOX360 },
301 { 0x15e4, 0x3f10, "Batarang Xbox 360 controller", 0, XTYPE_XBOX360 },
302 { 0x162e, 0xbeef, "Joytech Neo-Se Take2", 0, XTYPE_XBOX360 },
303 { 0x1689, 0xfd00, "Razer Onza Tournament Edition", 0, XTYPE_XBOX360 },
304 { 0x1689, 0xfd01, "Razer Onza Classic Edition", 0, XTYPE_XBOX360 },
305 { 0x1689, 0xfe00, "Razer Sabertooth", 0, XTYPE_XBOX360 },
306 { 0x17ef, 0x6182, "Lenovo Legion Controller for Windows", 0, XTYPE_XBOX360 },
307 { 0x1949, 0x041a, "Amazon Game Controller", 0, XTYPE_XBOX360 },
308 { 0x1bad, 0x0002, "Harmonix Rock Band Guitar", 0, XTYPE_XBOX360 },
309 { 0x1bad, 0x0003, "Harmonix Rock Band Drumkit", MAP_DPAD_TO_BUTTONS, XTYPE_XBOX360 },
310 { 0x1bad, 0x0130, "Ion Drum Rocker", MAP_DPAD_TO_BUTTONS, XTYPE_XBOX360 },
311 { 0x1bad, 0xf016, "Mad Catz Xbox 360 Controller", 0, XTYPE_XBOX360 },
312 …{ 0x1bad, 0xf018, "Mad Catz Street Fighter IV SE Fighting Stick", MAP_TRIGGERS_TO_BUTTONS, XTYPE_X…
313 { 0x1bad, 0xf019, "Mad Catz Brawlstick for Xbox 360", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 },
314 { 0x1bad, 0xf021, "Mad Cats Ghost Recon FS GamePad", 0, XTYPE_XBOX360 },
315 { 0x1bad, 0xf023, "MLG Pro Circuit Controller (Xbox)", 0, XTYPE_XBOX360 },
316 { 0x1bad, 0xf025, "Mad Catz Call Of Duty", 0, XTYPE_XBOX360 },
317 { 0x1bad, 0xf027, "Mad Catz FPS Pro", 0, XTYPE_XBOX360 },
318 { 0x1bad, 0xf028, "Street Fighter IV FightPad", 0, XTYPE_XBOX360 },
319 { 0x1bad, 0xf02e, "Mad Catz Fightpad", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 },
320 { 0x1bad, 0xf030, "Mad Catz Xbox 360 MC2 MicroCon Racing Wheel", 0, XTYPE_XBOX360 },
321 { 0x1bad, 0xf036, "Mad Catz MicroCon GamePad Pro", 0, XTYPE_XBOX360 },
322 { 0x1bad, 0xf038, "Street Fighter IV FightStick TE", 0, XTYPE_XBOX360 },
323 { 0x1bad, 0xf039, "Mad Catz MvC2 TE", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 },
324 { 0x1bad, 0xf03a, "Mad Catz SFxT Fightstick Pro", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 },
325 …{ 0x1bad, 0xf03d, "Street Fighter IV Arcade Stick TE - Chun Li", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XB…
326 { 0x1bad, 0xf03e, "Mad Catz MLG FightStick TE", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 },
327 { 0x1bad, 0xf03f, "Mad Catz FightStick SoulCaliber", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 },
328 { 0x1bad, 0xf042, "Mad Catz FightStick TES+", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 },
329 { 0x1bad, 0xf080, "Mad Catz FightStick TE2", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 },
330 { 0x1bad, 0xf501, "HoriPad EX2 Turbo", 0, XTYPE_XBOX360 },
331 { 0x1bad, 0xf502, "Hori Real Arcade Pro.VX SA", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 },
332 { 0x1bad, 0xf503, "Hori Fighting Stick VX", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 },
333 { 0x1bad, 0xf504, "Hori Real Arcade Pro. EX", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 },
334 { 0x1bad, 0xf505, "Hori Fighting Stick EX2B", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 },
335 { 0x1bad, 0xf506, "Hori Real Arcade Pro.EX Premium VLX", 0, XTYPE_XBOX360 },
336 { 0x1bad, 0xf900, "Harmonix Xbox 360 Controller", 0, XTYPE_XBOX360 },
337 { 0x1bad, 0xf901, "Gamestop Xbox 360 Controller", 0, XTYPE_XBOX360 },
338 { 0x1bad, 0xf903, "Tron Xbox 360 controller", 0, XTYPE_XBOX360 },
339 { 0x1bad, 0xf904, "PDP Versus Fighting Pad", 0, XTYPE_XBOX360 },
340 { 0x1bad, 0xf906, "MortalKombat FightStick", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 },
341 { 0x1bad, 0xfa01, "MadCatz GamePad", 0, XTYPE_XBOX360 },
342 { 0x1bad, 0xfd00, "Razer Onza TE", 0, XTYPE_XBOX360 },
343 { 0x1bad, 0xfd01, "Razer Onza", 0, XTYPE_XBOX360 },
344 { 0x20d6, 0x2001, "BDA Xbox Series X Wired Controller", 0, XTYPE_XBOXONE },
345 { 0x20d6, 0x2009, "PowerA Enhanced Wired Controller for Xbox Series X|S", 0, XTYPE_XBOXONE },
346 { 0x20d6, 0x281f, "PowerA Wired Controller For Xbox 360", 0, XTYPE_XBOX360 },
347 { 0x2345, 0xe00b, "Machenike G5 Pro Controller", 0, XTYPE_XBOX360 },
348 { 0x24c6, 0x5000, "Razer Atrox Arcade Stick", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 },
349 { 0x24c6, 0x5300, "PowerA MINI PROEX Controller", 0, XTYPE_XBOX360 },
350 { 0x24c6, 0x5303, "Xbox Airflo wired controller", 0, XTYPE_XBOX360 },
351 { 0x24c6, 0x530a, "Xbox 360 Pro EX Controller", 0, XTYPE_XBOX360 },
352 { 0x24c6, 0x531a, "PowerA Pro Ex", 0, XTYPE_XBOX360 },
353 { 0x24c6, 0x5397, "FUS1ON Tournament Controller", 0, XTYPE_XBOX360 },
354 { 0x24c6, 0x541a, "PowerA Xbox One Mini Wired Controller", 0, XTYPE_XBOXONE },
355 { 0x24c6, 0x542a, "Xbox ONE spectra", 0, XTYPE_XBOXONE },
356 { 0x24c6, 0x543a, "PowerA Xbox One wired controller", 0, XTYPE_XBOXONE },
357 { 0x24c6, 0x5500, "Hori XBOX 360 EX 2 with Turbo", 0, XTYPE_XBOX360 },
358 { 0x24c6, 0x5501, "Hori Real Arcade Pro VX-SA", 0, XTYPE_XBOX360 },
359 { 0x24c6, 0x5502, "Hori Fighting Stick VX Alt", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 },
360 { 0x24c6, 0x5503, "Hori Fighting Edge", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 },
361 { 0x24c6, 0x5506, "Hori SOULCALIBUR V Stick", 0, XTYPE_XBOX360 },
362 { 0x24c6, 0x550d, "Hori GEM Xbox controller", 0, XTYPE_XBOX360 },
363 { 0x24c6, 0x550e, "Hori Real Arcade Pro V Kai 360", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 },
364 …{ 0x24c6, 0x5510, "Hori Fighting Commander ONE (Xbox 360/PC Mode)", MAP_TRIGGERS_TO_BUTTONS, XTYPE…
365 { 0x24c6, 0x551a, "PowerA FUSION Pro Controller", 0, XTYPE_XBOXONE },
366 { 0x24c6, 0x561a, "PowerA FUSION Controller", 0, XTYPE_XBOXONE },
367 { 0x24c6, 0x5b00, "ThrustMaster Ferrari 458 Racing Wheel", 0, XTYPE_XBOX360 },
368 { 0x24c6, 0x5b02, "Thrustmaster, Inc. GPX Controller", 0, XTYPE_XBOX360 },
369 { 0x24c6, 0x5b03, "Thrustmaster Ferrari 458 Racing Wheel", 0, XTYPE_XBOX360 },
370 { 0x24c6, 0x5d04, "Razer Sabertooth", 0, XTYPE_XBOX360 },
371 { 0x24c6, 0xfafe, "Rock Candy Gamepad for Xbox 360", 0, XTYPE_XBOX360 },
372 { 0x2563, 0x058d, "OneXPlayer Gamepad", 0, XTYPE_XBOX360 },
373 { 0x294b, 0x3303, "Snakebyte GAMEPAD BASE X", 0, XTYPE_XBOXONE },
374 { 0x294b, 0x3404, "Snakebyte GAMEPAD RGB X", 0, XTYPE_XBOXONE },
375 { 0x2dc8, 0x2000, "8BitDo Pro 2 Wired Controller fox Xbox", 0, XTYPE_XBOXONE },
376 { 0x2dc8, 0x3106, "8BitDo Pro 2 Wired Controller", 0, XTYPE_XBOX360 },
377 { 0x2dc8, 0x310a, "8BitDo Ultimate 2C Wireless Controller", 0, XTYPE_XBOX360 },
378 { 0x2e24, 0x0652, "Hyperkin Duke X-Box One pad", 0, XTYPE_XBOXONE },
379 { 0x31e3, 0x1100, "Wooting One", 0, XTYPE_XBOX360 },
380 { 0x31e3, 0x1200, "Wooting Two", 0, XTYPE_XBOX360 },
381 { 0x31e3, 0x1210, "Wooting Lekker", 0, XTYPE_XBOX360 },
382 { 0x31e3, 0x1220, "Wooting Two HE", 0, XTYPE_XBOX360 },
383 { 0x31e3, 0x1300, "Wooting 60HE (AVR)", 0, XTYPE_XBOX360 },
384 { 0x31e3, 0x1310, "Wooting 60HE (ARM)", 0, XTYPE_XBOX360 },
385 { 0x3285, 0x0607, "Nacon GC-100", 0, XTYPE_XBOX360 },
386 { 0x3537, 0x1004, "GameSir T4 Kaleid", 0, XTYPE_XBOX360 },
387 { 0x3767, 0x0101, "Fanatec Speedster 3 Forceshock Wheel", 0, XTYPE_XBOX },
388 { 0xffff, 0xffff, "Chinese-made Xbox Controller", 0, XTYPE_XBOX },
389 { 0x0000, 0x0000, "Generic X-Box pad", 0, XTYPE_UNKNOWN }
480 { USB_INTERFACE_INFO('X', 'B', 0) }, /* Xbox USB-IF not-approved class */
481 XPAD_XBOX360_VENDOR(0x0079), /* GPD Win 2 controller */
482 XPAD_XBOX360_VENDOR(0x03eb), /* Wooting Keyboards (Legacy) */
483 XPAD_XBOX360_VENDOR(0x03f0), /* HP HyperX Xbox 360 controllers */
484 XPAD_XBOXONE_VENDOR(0x03f0), /* HP HyperX Xbox One controllers */
485 XPAD_XBOX360_VENDOR(0x044f), /* Thrustmaster Xbox 360 controllers */
486 XPAD_XBOX360_VENDOR(0x045e), /* Microsoft Xbox 360 controllers */
487 XPAD_XBOXONE_VENDOR(0x045e), /* Microsoft Xbox One controllers */
488 XPAD_XBOX360_VENDOR(0x046d), /* Logitech Xbox 360-style controllers */
489 XPAD_XBOX360_VENDOR(0x056e), /* Elecom JC-U3613M */
490 XPAD_XBOX360_VENDOR(0x06a3), /* Saitek P3600 */
491 XPAD_XBOX360_VENDOR(0x0738), /* Mad Catz Xbox 360 controllers */
492 { USB_DEVICE(0x0738, 0x4540) }, /* Mad Catz Beat Pad */
493 XPAD_XBOXONE_VENDOR(0x0738), /* Mad Catz FightStick TE 2 */
494 XPAD_XBOX360_VENDOR(0x07ff), /* Mad Catz Gamepad */
495 XPAD_XBOXONE_VENDOR(0x0b05), /* ASUS controllers */
496 XPAD_XBOX360_VENDOR(0x0c12), /* Zeroplus X-Box 360 controllers */
497 XPAD_XBOX360_VENDOR(0x0db0), /* Micro Star International X-Box 360 controllers */
498 XPAD_XBOX360_VENDOR(0x0e6f), /* 0x0e6f Xbox 360 controllers */
499 XPAD_XBOXONE_VENDOR(0x0e6f), /* 0x0e6f Xbox One controllers */
500 XPAD_XBOX360_VENDOR(0x0f0d), /* Hori controllers */
501 XPAD_XBOXONE_VENDOR(0x0f0d), /* Hori controllers */
502 XPAD_XBOX360_VENDOR(0x1038), /* SteelSeries controllers */
503 XPAD_XBOXONE_VENDOR(0x10f5), /* Turtle Beach Controllers */
504 XPAD_XBOX360_VENDOR(0x11c9), /* Nacon GC100XF */
505 XPAD_XBOX360_VENDOR(0x11ff), /* PXN V900 */
506 XPAD_XBOX360_VENDOR(0x1209), /* Ardwiino Controllers */
507 XPAD_XBOX360_VENDOR(0x12ab), /* Xbox 360 dance pads */
508 XPAD_XBOX360_VENDOR(0x1430), /* RedOctane Xbox 360 controllers */
509 XPAD_XBOX360_VENDOR(0x146b), /* Bigben Interactive controllers */
510 XPAD_XBOX360_VENDOR(0x1532), /* Razer Sabertooth */
511 XPAD_XBOXONE_VENDOR(0x1532), /* Razer Wildcat */
512 XPAD_XBOX360_VENDOR(0x15e4), /* Numark Xbox 360 controllers */
513 XPAD_XBOX360_VENDOR(0x162e), /* Joytech Xbox 360 controllers */
514 XPAD_XBOX360_VENDOR(0x1689), /* Razer Onza */
515 XPAD_XBOX360_VENDOR(0x17ef), /* Lenovo */
516 XPAD_XBOX360_VENDOR(0x1949), /* Amazon controllers */
517 XPAD_XBOX360_VENDOR(0x1bad), /* Harmonix Rock Band guitar and drums */
518 XPAD_XBOX360_VENDOR(0x20d6), /* PowerA controllers */
519 XPAD_XBOXONE_VENDOR(0x20d6), /* PowerA controllers */
520 XPAD_XBOX360_VENDOR(0x2345), /* Machenike Controllers */
521 XPAD_XBOX360_VENDOR(0x24c6), /* PowerA controllers */
522 XPAD_XBOXONE_VENDOR(0x24c6), /* PowerA controllers */
523 XPAD_XBOX360_VENDOR(0x2563), /* OneXPlayer Gamepad */
524 XPAD_XBOX360_VENDOR(0x260d), /* Dareu H101 */
525 XPAD_XBOXONE_VENDOR(0x294b), /* Snakebyte */
526 XPAD_XBOX360_VENDOR(0x2c22), /* Qanba Controllers */
527 XPAD_XBOX360_VENDOR(0x2dc8), /* 8BitDo Pro 2 Wired Controller */
528 XPAD_XBOXONE_VENDOR(0x2dc8), /* 8BitDo Pro 2 Wired Controller for Xbox */
529 XPAD_XBOXONE_VENDOR(0x2e24), /* Hyperkin Duke Xbox One pad */
530 XPAD_XBOX360_VENDOR(0x2f24), /* GameSir controllers */
531 XPAD_XBOX360_VENDOR(0x31e3), /* Wooting Keyboards */
532 XPAD_XBOX360_VENDOR(0x3285), /* Nacon GC-100 */
533 XPAD_XBOX360_VENDOR(0x3537), /* GameSir Controllers */
534 XPAD_XBOXONE_VENDOR(0x3537), /* GameSir Controllers */
561 #define GIP_CMD_ACK 0x01
562 #define GIP_CMD_IDENTIFY 0x04
563 #define GIP_CMD_POWER 0x05
564 #define GIP_CMD_AUTHENTICATE 0x06
565 #define GIP_CMD_VIRTUAL_KEY 0x07
566 #define GIP_CMD_RUMBLE 0x09
567 #define GIP_CMD_LED 0x0a
568 #define GIP_CMD_FIRMWARE 0x0c
569 #define GIP_CMD_INPUT 0x20
571 #define GIP_SEQ0 0x00
573 #define GIP_OPT_ACK 0x10
574 #define GIP_OPT_INTERNAL 0x20
586 #define GIP_PWR_ON 0x00
587 #define GIP_LED_ON 0x01
589 #define GIP_MOTOR_R BIT(0)
595 #define GIP_WIRED_INTF_DATA 0
607 * This packet is required for Xbox One S (0x045e:0x02ea)
608 * and Xbox One Elite Series 2 (0x045e:0x0b00) pads to
613 GIP_CMD_POWER, GIP_OPT_INTERNAL, GIP_SEQ0, 0x0f, 0x06
618 * from Xbox One Elite Series 2 (0x045e:0x0b00) pads.
622 0x4d, 0x10, 0x01, 0x02, 0x07, 0x00
627 * (0x0e6f:0x0165) to finish initialization and for Hori pads
628 * (0x0f0d:0x0067) to make the analog sticks work.
632 0x00, GIP_CMD_IDENTIFY, GIP_OPT_INTERNAL, 0x3a, 0x00, 0x00, 0x00, 0x80, 0x00
637 * sending input reports. These pads include: (0x0e6f:0x02ab),
638 * (0x0e6f:0x02a4), (0x0e6f:0x02a6).
641 GIP_CMD_LED, GIP_OPT_INTERNAL, GIP_SEQ0, GIP_PL_LEN(3), 0x00, GIP_LED_ON, 0x14
646 * sending input reports. These pads include: (0x0e6f:0x02ab),
647 * (0x0e6f:0x02a4), (0x0e6f:0x02a6).
650 GIP_CMD_AUTHENTICATE, GIP_OPT_INTERNAL, GIP_SEQ0, GIP_PL_LEN(2), 0x01, 0x00
655 * sending input reports. One of those pads is (0x24c6:0x543a).
658 GIP_CMD_RUMBLE, 0x00, GIP_SEQ0, GIP_PL_LEN(9),
659 0x00, GIP_MOTOR_ALL, 0x00, 0x00, 0x1D, 0x1D, 0xFF, 0x00, 0x00
669 GIP_CMD_RUMBLE, 0x00, GIP_SEQ0, GIP_PL_LEN(9),
670 0x00, GIP_MOTOR_ALL, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
680 XBOXONE_INIT_PKT(0x0e6f, 0x0165, xboxone_hori_ack_id),
681 XBOXONE_INIT_PKT(0x0f0d, 0x0067, xboxone_hori_ack_id),
682 XBOXONE_INIT_PKT(0x0000, 0x0000, xboxone_power_on),
683 XBOXONE_INIT_PKT(0x045e, 0x02ea, xboxone_s_init),
684 XBOXONE_INIT_PKT(0x045e, 0x0b00, xboxone_s_init),
685 XBOXONE_INIT_PKT(0x045e, 0x0b00, extra_input_packet_init),
686 XBOXONE_INIT_PKT(0x0e6f, 0x0000, xboxone_pdp_led_on),
687 XBOXONE_INIT_PKT(0x0e6f, 0x0000, xboxone_pdp_auth),
688 XBOXONE_INIT_PKT(0x24c6, 0x541a, xboxone_rumblebegin_init),
689 XBOXONE_INIT_PKT(0x24c6, 0x542a, xboxone_rumblebegin_init),
690 XBOXONE_INIT_PKT(0x24c6, 0x543a, xboxone_rumblebegin_init),
691 XBOXONE_INIT_PKT(0x24c6, 0x541a, xboxone_rumbleend_init),
692 XBOXONE_INIT_PKT(0x24c6, 0x542a, xboxone_rumbleend_init),
693 XBOXONE_INIT_PKT(0x24c6, 0x543a, xboxone_rumbleend_init),
702 #define XPAD_OUT_CMD_IDX 0
795 input_report_key(dev, BTN_TRIGGER_HAPPY3, data[2] & BIT(0)); in xpad_process_packet()
799 !!(data[2] & 0x08) - !!(data[2] & 0x04)); in xpad_process_packet()
801 !!(data[2] & 0x02) - !!(data[2] & 0x01)); in xpad_process_packet()
838 if (data[0] != 0x00) in xpad360_process_packet()
846 input_report_key(dev, BTN_TRIGGER_HAPPY3, data[2] & BIT(0)); in xpad360_process_packet()
859 !!(data[2] & 0x08) - !!(data[2] & 0x04)); in xpad360_process_packet()
861 !!(data[2] & 0x02) - !!(data[2] & 0x01)); in xpad360_process_packet()
877 input_report_key(dev, BTN_TL, data[3] & BIT(0)); in xpad360_process_packet()
908 if (xpad->mode_btn_down_ts > 0 && xpad->pad_present && in xpad360_process_packet()
912 xpad->mode_btn_down_ts = 0; in xpad360_process_packet()
920 xpad->mode_btn_down_ts = 0; in xpad360_process_packet()
969 if (data[0] & 0x08) { in xpad360w_process_packet()
970 present = (data[1] & 0x80) != 0; in xpad360w_process_packet()
979 if (data[1] != 0x1) in xpad360w_process_packet()
1004 if (data[0] == GIP_CMD_VIRTUAL_KEY) { in xpadone_process_packet()
1013 input_report_key(dev, BTN_MODE, data[4] & GENMASK(1, 0)); in xpadone_process_packet()
1017 } else if (data[0] == GIP_CMD_FIRMWARE) { in xpadone_process_packet()
1024 if (data[19] != 0) in xpadone_process_packet()
1025 data[18] = 0; in xpadone_process_packet()
1028 input_report_key(dev, BTN_TRIGGER_HAPPY5, data[18] & BIT(0)); in xpadone_process_packet()
1035 } else if (data[0] == GIP_CMD_INPUT) { /* The main valid packet type for inputs */ in xpadone_process_packet()
1040 input_report_key(dev, KEY_RECORD, data[22] & BIT(0)); in xpadone_process_packet()
1053 input_report_key(dev, BTN_TRIGGER_HAPPY3, data[5] & BIT(0)); in xpadone_process_packet()
1057 !!(data[5] & 0x08) - !!(data[5] & 0x04)); in xpadone_process_packet()
1059 !!(data[5] & 0x02) - !!(data[5] & 0x01)); in xpadone_process_packet()
1097 /* Profile button has a value of 0-3, so it is reported as an axis */ in xpadone_process_packet()
1109 if (memcmp(&data[4], &data[18], 2) != 0) in xpadone_process_packet()
1110 data[32] = 0; in xpadone_process_packet()
1115 input_report_key(dev, BTN_TRIGGER_HAPPY7, data[32] & BIT(0)); in xpadone_process_packet()
1122 if (data[19] != 0) in xpadone_process_packet()
1123 data[18] = 0; in xpadone_process_packet()
1126 input_report_key(dev, BTN_TRIGGER_HAPPY5, data[18] & BIT(0)); in xpadone_process_packet()
1135 if (data[23] != 0) in xpadone_process_packet()
1136 data[22] = 0; in xpadone_process_packet()
1141 input_report_key(dev, BTN_TRIGGER_HAPPY5, data[22] & BIT(0)); in xpadone_process_packet()
1164 case 0: in xpad_irq_in()
1182 xpad360_process_packet(xpad, xpad->dev, 0, xpad->idata); in xpad_irq_in()
1185 xpad360w_process_packet(xpad, 0, xpad->idata); in xpad_irq_in()
1188 xpadone_process_packet(xpad, 0, xpad->idata); in xpad_irq_in()
1191 xpad_process_packet(xpad, 0, xpad->idata); in xpad_irq_in()
1213 if (init_packet->idVendor != 0 && in xpad_prepare_next_init_packet()
1217 if (init_packet->idProduct != 0 && in xpad_prepare_next_init_packet()
1243 for (i = 0; i < XPAD_NUM_OUT_PACKETS; i++) { in xpad_prepare_next_out_packet()
1245 xpad->last_out_packet = 0; in xpad_prepare_next_out_packet()
1286 return 0; in xpad_try_sending_next_out_packet()
1300 case 0: in xpad_irq_out()
1341 return 0; in xpad_init_output()
1352 xpad->irq_out = usb_alloc_urb(0, GFP_KERNEL); in xpad_init_output()
1365 return 0; in xpad_init_output()
1402 packet->data[0] = 0x08; in xpad_inquiry_pad_presence()
1403 packet->data[1] = 0x00; in xpad_inquiry_pad_presence()
1404 packet->data[2] = 0x0F; in xpad_inquiry_pad_presence()
1405 packet->data[3] = 0xC0; in xpad_inquiry_pad_presence()
1406 packet->data[4] = 0x00; in xpad_inquiry_pad_presence()
1407 packet->data[5] = 0x00; in xpad_inquiry_pad_presence()
1408 packet->data[6] = 0x00; in xpad_inquiry_pad_presence()
1409 packet->data[7] = 0x00; in xpad_inquiry_pad_presence()
1410 packet->data[8] = 0x00; in xpad_inquiry_pad_presence()
1411 packet->data[9] = 0x00; in xpad_inquiry_pad_presence()
1412 packet->data[10] = 0x00; in xpad_inquiry_pad_presence()
1413 packet->data[11] = 0x00; in xpad_inquiry_pad_presence()
1435 * Controller for Series X|S (0x20d6:0x200e) to report the in xpad_start_xbox_one()
1439 GIP_WIRED_INTF_AUDIO, 0); in xpad_start_xbox_one()
1453 xpad->init_seq = 0; in xpad_start_xbox_one()
1468 0x00, GIP_CMD_VIRTUAL_KEY, GIP_OPT_INTERNAL, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00 in xpadone_ack_mode_report()
1496 return 0; in xpad_play_effect()
1505 packet->data[0] = 0x00; in xpad_play_effect()
1506 packet->data[1] = 0x06; in xpad_play_effect()
1507 packet->data[2] = 0x00; in xpad_play_effect()
1509 packet->data[4] = 0x00; in xpad_play_effect()
1516 packet->data[0] = 0x00; in xpad_play_effect()
1517 packet->data[1] = 0x08; in xpad_play_effect()
1518 packet->data[2] = 0x00; in xpad_play_effect()
1521 packet->data[5] = 0x00; in xpad_play_effect()
1522 packet->data[6] = 0x00; in xpad_play_effect()
1523 packet->data[7] = 0x00; in xpad_play_effect()
1529 packet->data[0] = 0x00; in xpad_play_effect()
1530 packet->data[1] = 0x01; in xpad_play_effect()
1531 packet->data[2] = 0x0F; in xpad_play_effect()
1532 packet->data[3] = 0xC0; in xpad_play_effect()
1533 packet->data[4] = 0x00; in xpad_play_effect()
1536 packet->data[7] = 0x00; in xpad_play_effect()
1537 packet->data[8] = 0x00; in xpad_play_effect()
1538 packet->data[9] = 0x00; in xpad_play_effect()
1539 packet->data[10] = 0x00; in xpad_play_effect()
1540 packet->data[11] = 0x00; in xpad_play_effect()
1546 packet->data[0] = GIP_CMD_RUMBLE; /* activate rumble */ in xpad_play_effect()
1547 packet->data[1] = 0x00; in xpad_play_effect()
1550 packet->data[4] = 0x00; in xpad_play_effect()
1552 packet->data[6] = 0x00; /* left trigger */ in xpad_play_effect()
1553 packet->data[7] = 0x00; /* right trigger */ in xpad_play_effect()
1556 packet->data[10] = 0xFF; /* on period */ in xpad_play_effect()
1557 packet->data[11] = 0x00; /* off period */ in xpad_play_effect()
1558 packet->data[12] = 0xFF; /* repeat count */ in xpad_play_effect()
1581 return 0; in xpad_init_ff()
1589 static int xpad_init_ff(struct usb_xpad *xpad) { return 0; } in xpad_init_ff()
1607 * 0: off
1636 packet->data[0] = 0x01; in xpad_send_led_command()
1637 packet->data[1] = 0x03; in xpad_send_led_command()
1644 packet->data[0] = 0x00; in xpad_send_led_command()
1645 packet->data[1] = 0x00; in xpad_send_led_command()
1646 packet->data[2] = 0x08; in xpad_send_led_command()
1647 packet->data[3] = 0x40 + command; in xpad_send_led_command()
1648 packet->data[4] = 0x00; in xpad_send_led_command()
1649 packet->data[5] = 0x00; in xpad_send_led_command()
1650 packet->data[6] = 0x00; in xpad_send_led_command()
1651 packet->data[7] = 0x00; in xpad_send_led_command()
1652 packet->data[8] = 0x00; in xpad_send_led_command()
1653 packet->data[9] = 0x00; in xpad_send_led_command()
1654 packet->data[10] = 0x00; in xpad_send_led_command()
1655 packet->data[11] = 0x00; in xpad_send_led_command()
1691 return 0; in xpad_led_probe()
1698 if (xpad->pad_nr < 0) { in xpad_led_probe()
1717 return 0; in xpad_led_probe()
1738 static int xpad_led_probe(struct usb_xpad *xpad) { return 0; } in xpad_led_probe()
1763 error = usb_control_msg_recv(xpad->udev, 0, in xpad_start_input()
1764 /* bRequest */ 0x01, in xpad_start_input()
1768 /* wValue */ 0x100, in xpad_start_input()
1769 /* wIndex */ 0x00, in xpad_start_input()
1778 return 0; in xpad_start_input()
1794 packet->data[0] = 0x00; in xpad360w_poweroff_controller()
1795 packet->data[1] = 0x00; in xpad360w_poweroff_controller()
1796 packet->data[2] = 0x08; in xpad360w_poweroff_controller()
1797 packet->data[3] = 0xC0; in xpad360w_poweroff_controller()
1798 packet->data[4] = 0x00; in xpad360w_poweroff_controller()
1799 packet->data[5] = 0x00; in xpad360w_poweroff_controller()
1800 packet->data[6] = 0x00; in xpad360w_poweroff_controller()
1801 packet->data[7] = 0x00; in xpad360w_poweroff_controller()
1802 packet->data[8] = 0x00; in xpad360w_poweroff_controller()
1803 packet->data[9] = 0x00; in xpad360w_poweroff_controller()
1804 packet->data[10] = 0x00; in xpad360w_poweroff_controller()
1805 packet->data[11] = 0x00; in xpad360w_poweroff_controller()
1837 return 0; in xpad360w_start_input()
1876 input_set_abs_params(input_dev, abs, 0, 1023, 0, 0); in xpad_set_up_abs()
1878 input_set_abs_params(input_dev, abs, 0, 255, 0, 0); in xpad_set_up_abs()
1882 input_set_abs_params(input_dev, abs, -1, 1, 0, 0); in xpad_set_up_abs()
1885 input_set_abs_params(input_dev, abs, 0, 4, 0, 0); in xpad_set_up_abs()
1888 input_set_abs_params(input_dev, abs, 0, 0, 0, 0); in xpad_set_up_abs()
1918 input_dev->id.product = 0x02a1; in xpad_init_input()
1932 for (i = 0; xpad_abs[i] >= 0; i++) in xpad_init_input()
1937 for (i = 0; xpad_common_btn[i] >= 0; i++) in xpad_init_input()
1943 for (i = 0; xpad360_btn[i] >= 0; i++) in xpad_init_input()
1948 for (i = 0; xpad_btn[i] >= 0; i++) in xpad_init_input()
1953 for (i = 0; xpad_btn_pad[i] >= 0; i++) in xpad_init_input()
1960 for (i = 0; xpad_btn_paddles[i] >= 0; i++) in xpad_init_input()
1972 for (i = 0; xpad_abs_pad[i] >= 0; i++) in xpad_init_input()
1977 for (i = 0; xpad_btn_triggers[i] >= 0; i++) in xpad_init_input()
1981 for (i = 0; xpad_abs_triggers[i] >= 0; i++) in xpad_init_input()
2002 return 0; in xpad_init_input()
2023 for (i = 0; xpad_device[i].idVendor; i++) { in xpad_probe()
2043 xpad->irq_in = usb_alloc_urb(0, GFP_KERNEL); in xpad_probe()
2090 for (i = 0; i < 2; i++) { in xpad_probe()
2121 if (le16_to_cpu(udev->descriptor.idVendor) == 0x045e) { /* Microsoft controllers */ in xpad_probe()
2122 if (le16_to_cpu(udev->descriptor.idProduct) == 0x02e3) { in xpad_probe()
2127 } else if (le16_to_cpu(udev->descriptor.idProduct) == 0x0b00) { in xpad_probe()
2132 if (le16_to_cpu(udev->descriptor.bcdDevice) < 0x0500) { in xpad_probe()
2138 0x050b) { in xpad_probe()
2176 return 0; in xpad_probe()
2245 return 0; in xpad_suspend()
2252 int retval = 0; in xpad_resume()