Lines Matching +full:0 +full:x5b00
80 #define MAP_DPAD_TO_BUTTONS (1 << 0)
90 #define XTYPE_XBOX 0
101 #define PKT_XB 0
130 { 0x0079, 0x18d4, "GPD Win 2 X-Box Controller", 0, XTYPE_XBOX360 },
131 { 0x03eb, 0xff01, "Wooting One (Legacy)", 0, XTYPE_XBOX360 },
132 { 0x03eb, 0xff02, "Wooting Two (Legacy)", 0, XTYPE_XBOX360 },
133 { 0x03f0, 0x038D, "HyperX Clutch", 0, XTYPE_XBOX360 }, /* wired */
134 { 0x03f0, 0x048D, "HyperX Clutch", 0, XTYPE_XBOX360 }, /* wireless */
135 { 0x03f0, 0x0495, "HyperX Clutch Gladiate", 0, XTYPE_XBOXONE },
136 { 0x03f0, 0x07A0, "HyperX Clutch Gladiate RGB", 0, XTYPE_XBOXONE },
137 { 0x03f0, 0x08B6, "HyperX Clutch Gladiate", 0, XTYPE_XBOXONE }, /* v2 */
138 { 0x03f0, 0x09B4, "HyperX Clutch Tanto", 0, XTYPE_XBOXONE },
139 { 0x044f, 0x0f00, "Thrustmaster Wheel", 0, XTYPE_XBOX },
140 { 0x044f, 0x0f03, "Thrustmaster Wheel", 0, XTYPE_XBOX },
141 { 0x044f, 0x0f07, "Thrustmaster, Inc. Controller", 0, XTYPE_XBOX },
142 { 0x044f, 0x0f10, "Thrustmaster Modena GT Wheel", 0, XTYPE_XBOX },
143 { 0x044f, 0xb326, "Thrustmaster Gamepad GP XID", 0, XTYPE_XBOX360 },
144 { 0x045e, 0x0202, "Microsoft X-Box pad v1 (US)", 0, XTYPE_XBOX },
145 { 0x045e, 0x0285, "Microsoft X-Box pad (Japan)", 0, XTYPE_XBOX },
146 { 0x045e, 0x0287, "Microsoft Xbox Controller S", 0, XTYPE_XBOX },
147 { 0x045e, 0x0288, "Microsoft Xbox Controller S v2", 0, XTYPE_XBOX },
148 { 0x045e, 0x0289, "Microsoft X-Box pad v2 (US)", 0, XTYPE_XBOX },
149 { 0x045e, 0x028e, "Microsoft X-Box 360 pad", 0, XTYPE_XBOX360 },
150 { 0x045e, 0x028f, "Microsoft X-Box 360 pad v2", 0, XTYPE_XBOX360 },
151 { 0x045e, 0x0291, "Xbox 360 Wireless Receiver (XBOX)", MAP_DPAD_TO_BUTTONS, XTYPE_XBOX360W },
152 { 0x045e, 0x02d1, "Microsoft X-Box One pad", 0, XTYPE_XBOXONE },
153 { 0x045e, 0x02dd, "Microsoft X-Box One pad (Firmware 2015)", 0, XTYPE_XBOXONE },
154 { 0x045e, 0x02e3, "Microsoft X-Box One Elite pad", MAP_PADDLES, XTYPE_XBOXONE },
155 { 0x045e, 0x0b00, "Microsoft X-Box One Elite 2 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, 0x0b0a, "Microsoft X-Box Adaptive Controller", MAP_PROFILE_BUTTON, XTYPE_XBOXONE },
159 { 0x045e, 0x0b12, "Microsoft Xbox Series S|X Controller", MAP_SELECT_BUTTON, XTYPE_XBOXONE },
160 { 0x046d, 0xc21d, "Logitech Gamepad F310", 0, XTYPE_XBOX360 },
161 { 0x046d, 0xc21e, "Logitech Gamepad F510", 0, XTYPE_XBOX360 },
162 { 0x046d, 0xc21f, "Logitech Gamepad F710", 0, XTYPE_XBOX360 },
163 { 0x046d, 0xc242, "Logitech Chillstream Controller", 0, XTYPE_XBOX360 },
164 { 0x046d, 0xca84, "Logitech Xbox Cordless Controller", 0, XTYPE_XBOX },
165 { 0x046d, 0xca88, "Logitech Compact Controller for Xbox", 0, XTYPE_XBOX },
166 { 0x046d, 0xca8a, "Logitech Precision Vibration Feedback Wheel", 0, XTYPE_XBOX },
167 { 0x046d, 0xcaa3, "Logitech DriveFx Racing Wheel", 0, XTYPE_XBOX360 },
168 { 0x056e, 0x2004, "Elecom JC-U3613M", 0, XTYPE_XBOX360 },
169 { 0x05fd, 0x1007, "Mad Catz Controller (unverified)", 0, XTYPE_XBOX },
170 { 0x05fd, 0x107a, "InterAct 'PowerPad Pro' X-Box pad (Germany)", 0, XTYPE_XBOX },
171 { 0x05fe, 0x3030, "Chic Controller", 0, XTYPE_XBOX },
172 { 0x05fe, 0x3031, "Chic Controller", 0, XTYPE_XBOX },
173 { 0x062a, 0x0020, "Logic3 Xbox GamePad", 0, XTYPE_XBOX },
174 { 0x062a, 0x0033, "Competition Pro Steering Wheel", 0, XTYPE_XBOX },
175 { 0x06a3, 0x0200, "Saitek Racing Wheel", 0, XTYPE_XBOX },
176 { 0x06a3, 0x0201, "Saitek Adrenalin", 0, XTYPE_XBOX },
177 { 0x06a3, 0xf51a, "Saitek P3600", 0, XTYPE_XBOX360 },
178 { 0x0738, 0x4506, "Mad Catz 4506 Wireless Controller", 0, XTYPE_XBOX },
179 { 0x0738, 0x4516, "Mad Catz Control Pad", 0, XTYPE_XBOX },
180 { 0x0738, 0x4520, "Mad Catz Control Pad Pro", 0, XTYPE_XBOX },
181 { 0x0738, 0x4522, "Mad Catz LumiCON", 0, XTYPE_XBOX },
182 { 0x0738, 0x4526, "Mad Catz Control Pad Pro", 0, XTYPE_XBOX },
183 { 0x0738, 0x4530, "Mad Catz Universal MC2 Racing Wheel and Pedals", 0, XTYPE_XBOX },
184 { 0x0738, 0x4536, "Mad Catz MicroCON", 0, XTYPE_XBOX },
185 { 0x0738, 0x4540, "Mad Catz Beat Pad", MAP_DPAD_TO_BUTTONS, XTYPE_XBOX },
186 { 0x0738, 0x4556, "Mad Catz Lynx Wireless Controller", 0, XTYPE_XBOX },
187 { 0x0738, 0x4586, "Mad Catz MicroCon Wireless Controller", 0, XTYPE_XBOX },
188 { 0x0738, 0x4588, "Mad Catz Blaster", 0, XTYPE_XBOX },
189 { 0x0738, 0x45ff, "Mad Catz Beat Pad (w/ Handle)", MAP_DPAD_TO_BUTTONS, XTYPE_XBOX },
190 { 0x0738, 0x4716, "Mad Catz Wired Xbox 360 Controller", 0, XTYPE_XBOX360 },
191 { 0x0738, 0x4718, "Mad Catz Street Fighter IV FightStick SE", 0, XTYPE_XBOX360 },
192 { 0x0738, 0x4726, "Mad Catz Xbox 360 Controller", 0, XTYPE_XBOX360 },
193 { 0x0738, 0x4728, "Mad Catz Street Fighter IV FightPad", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 },
194 { 0x0738, 0x4736, "Mad Catz MicroCon Gamepad", 0, XTYPE_XBOX360 },
195 …{ 0x0738, 0x4738, "Mad Catz Wired Xbox 360 Controller (SFIV)", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX…
196 { 0x0738, 0x4740, "Mad Catz Beat Pad", 0, XTYPE_XBOX360 },
197 { 0x0738, 0x4743, "Mad Catz Beat Pad Pro", MAP_DPAD_TO_BUTTONS, XTYPE_XBOX },
198 { 0x0738, 0x4758, "Mad Catz Arcade Game Stick", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 },
199 { 0x0738, 0x4a01, "Mad Catz FightStick TE 2", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOXONE },
200 { 0x0738, 0x6040, "Mad Catz Beat Pad Pro", MAP_DPAD_TO_BUTTONS, XTYPE_XBOX },
201 { 0x0738, 0x9871, "Mad Catz Portable Drum", 0, XTYPE_XBOX360 },
202 { 0x0738, 0xb726, "Mad Catz Xbox controller - MW2", 0, XTYPE_XBOX360 },
203 { 0x0738, 0xb738, "Mad Catz MVC2TE Stick 2", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 },
204 { 0x0738, 0xbeef, "Mad Catz JOYTECH NEO SE Advanced GamePad", XTYPE_XBOX360 },
205 { 0x0738, 0xcb02, "Saitek Cyborg Rumble Pad - PC/Xbox 360", 0, XTYPE_XBOX360 },
206 { 0x0738, 0xcb03, "Saitek P3200 Rumble Pad - PC/Xbox 360", 0, XTYPE_XBOX360 },
207 { 0x0738, 0xcb29, "Saitek Aviator Stick AV8R02", 0, XTYPE_XBOX360 },
208 { 0x0738, 0xf738, "Super SFIV FightStick TE S", 0, XTYPE_XBOX360 },
209 { 0x07ff, 0xffff, "Mad Catz GamePad", 0, XTYPE_XBOX360 },
210 { 0x0c12, 0x0005, "Intec wireless", 0, XTYPE_XBOX },
211 { 0x0c12, 0x8801, "Nyko Xbox Controller", 0, XTYPE_XBOX },
212 { 0x0c12, 0x8802, "Zeroplus Xbox Controller", 0, XTYPE_XBOX },
213 { 0x0c12, 0x8809, "RedOctane Xbox Dance Pad", DANCEPAD_MAP_CONFIG, XTYPE_XBOX },
214 { 0x0c12, 0x880a, "Pelican Eclipse PL-2023", 0, XTYPE_XBOX },
215 { 0x0c12, 0x8810, "Zeroplus Xbox Controller", 0, XTYPE_XBOX },
216 { 0x0c12, 0x9902, "HAMA VibraX - *FAULTY HARDWARE*", 0, XTYPE_XBOX },
217 { 0x0d2f, 0x0002, "Andamiro Pump It Up pad", MAP_DPAD_TO_BUTTONS, XTYPE_XBOX },
218 { 0x0e4c, 0x1097, "Radica Gamester Controller", 0, XTYPE_XBOX },
219 { 0x0e4c, 0x1103, "Radica Gamester Reflex", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX },
220 { 0x0e4c, 0x2390, "Radica Games Jtech Controller", 0, XTYPE_XBOX },
221 { 0x0e4c, 0x3510, "Radica Gamester", 0, XTYPE_XBOX },
222 { 0x0e6f, 0x0003, "Logic3 Freebird wireless Controller", 0, XTYPE_XBOX },
223 { 0x0e6f, 0x0005, "Eclipse wireless Controller", 0, XTYPE_XBOX },
224 { 0x0e6f, 0x0006, "Edge wireless Controller", 0, XTYPE_XBOX },
225 { 0x0e6f, 0x0008, "After Glow Pro Controller", 0, XTYPE_XBOX },
226 { 0x0e6f, 0x0105, "HSM3 Xbox360 dancepad", MAP_DPAD_TO_BUTTONS, XTYPE_XBOX360 },
227 { 0x0e6f, 0x0113, "Afterglow AX.1 Gamepad for Xbox 360", 0, XTYPE_XBOX360 },
228 { 0x0e6f, 0x011f, "Rock Candy Gamepad Wired Controller", 0, XTYPE_XBOX360 },
229 { 0x0e6f, 0x0131, "PDP EA Sports Controller", 0, XTYPE_XBOX360 },
230 { 0x0e6f, 0x0133, "Xbox 360 Wired Controller", 0, XTYPE_XBOX360 },
231 { 0x0e6f, 0x0139, "Afterglow Prismatic Wired Controller", 0, XTYPE_XBOXONE },
232 { 0x0e6f, 0x013a, "PDP Xbox One Controller", 0, XTYPE_XBOXONE },
233 { 0x0e6f, 0x0146, "Rock Candy Wired Controller for Xbox One", 0, XTYPE_XBOXONE },
234 { 0x0e6f, 0x0147, "PDP Marvel Xbox One Controller", 0, XTYPE_XBOXONE },
235 { 0x0e6f, 0x015c, "PDP Xbox One Arcade Stick", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOXONE },
236 { 0x0e6f, 0x0161, "PDP Xbox One Controller", 0, XTYPE_XBOXONE },
237 { 0x0e6f, 0x0162, "PDP Xbox One Controller", 0, XTYPE_XBOXONE },
238 { 0x0e6f, 0x0163, "PDP Xbox One Controller", 0, XTYPE_XBOXONE },
239 { 0x0e6f, 0x0164, "PDP Battlefield One", 0, XTYPE_XBOXONE },
240 { 0x0e6f, 0x0165, "PDP Titanfall 2", 0, XTYPE_XBOXONE },
241 { 0x0e6f, 0x0201, "Pelican PL-3601 'TSZ' Wired Xbox 360 Controller", 0, XTYPE_XBOX360 },
242 { 0x0e6f, 0x0213, "Afterglow Gamepad for Xbox 360", 0, XTYPE_XBOX360 },
243 { 0x0e6f, 0x021f, "Rock Candy Gamepad for Xbox 360", 0, XTYPE_XBOX360 },
244 { 0x0e6f, 0x0246, "Rock Candy Gamepad for Xbox One 2015", 0, XTYPE_XBOXONE },
245 { 0x0e6f, 0x02a0, "PDP Xbox One Controller", 0, XTYPE_XBOXONE },
246 { 0x0e6f, 0x02a1, "PDP Xbox One Controller", 0, XTYPE_XBOXONE },
247 { 0x0e6f, 0x02a2, "PDP Wired Controller for Xbox One - Crimson Red", 0, XTYPE_XBOXONE },
248 { 0x0e6f, 0x02a4, "PDP Wired Controller for Xbox One - Stealth Series", 0, XTYPE_XBOXONE },
249 { 0x0e6f, 0x02a6, "PDP Wired Controller for Xbox One - Camo Series", 0, XTYPE_XBOXONE },
250 { 0x0e6f, 0x02a7, "PDP Xbox One Controller", 0, XTYPE_XBOXONE },
251 { 0x0e6f, 0x02a8, "PDP Xbox One Controller", 0, XTYPE_XBOXONE },
252 { 0x0e6f, 0x02ab, "PDP Controller for Xbox One", 0, XTYPE_XBOXONE },
253 { 0x0e6f, 0x02ad, "PDP Wired Controller for Xbox One - Stealth Series", 0, XTYPE_XBOXONE },
254 { 0x0e6f, 0x02b3, "Afterglow Prismatic Wired Controller", 0, XTYPE_XBOXONE },
255 { 0x0e6f, 0x02b8, "Afterglow Prismatic Wired Controller", 0, XTYPE_XBOXONE },
256 { 0x0e6f, 0x0301, "Logic3 Controller", 0, XTYPE_XBOX360 },
257 { 0x0e6f, 0x0346, "Rock Candy Gamepad for Xbox One 2016", 0, XTYPE_XBOXONE },
258 { 0x0e6f, 0x0401, "Logic3 Controller", 0, XTYPE_XBOX360 },
259 { 0x0e6f, 0x0413, "Afterglow AX.1 Gamepad for Xbox 360", 0, XTYPE_XBOX360 },
260 { 0x0e6f, 0x0501, "PDP Xbox 360 Controller", 0, XTYPE_XBOX360 },
261 { 0x0e6f, 0xf900, "PDP Afterglow AX.1", 0, XTYPE_XBOX360 },
262 { 0x0e8f, 0x0201, "SmartJoy Frag Xpad/PS2 adaptor", 0, XTYPE_XBOX },
263 { 0x0e8f, 0x3008, "Generic xbox control (dealextreme)", 0, XTYPE_XBOX },
264 { 0x0f0d, 0x000a, "Hori Co. DOA4 FightStick", 0, XTYPE_XBOX360 },
265 { 0x0f0d, 0x000c, "Hori PadEX Turbo", 0, XTYPE_XBOX360 },
266 { 0x0f0d, 0x000d, "Hori Fighting Stick EX2", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 },
267 { 0x0f0d, 0x0016, "Hori Real Arcade Pro.EX", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 },
268 { 0x0f0d, 0x001b, "Hori Real Arcade Pro VX", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 },
269 …{ 0x0f0d, 0x0063, "Hori Real Arcade Pro Hayabusa (USA) Xbox One", MAP_TRIGGERS_TO_BUTTONS, XTYPE_X…
270 { 0x0f0d, 0x0067, "HORIPAD ONE", 0, XTYPE_XBOXONE },
271 { 0x0f0d, 0x0078, "Hori Real Arcade Pro V Kai Xbox One", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOXONE },
272 { 0x0f0d, 0x00c5, "Hori Fighting Commander ONE", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOXONE },
273 { 0x0f0d, 0x00dc, "HORIPAD FPS for Nintendo Switch", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 },
274 { 0x0f30, 0x010b, "Philips Recoil", 0, XTYPE_XBOX },
275 { 0x0f30, 0x0202, "Joytech Advanced Controller", 0, XTYPE_XBOX },
276 { 0x0f30, 0x8888, "BigBen XBMiniPad Controller", 0, XTYPE_XBOX },
277 { 0x102c, 0xff0c, "Joytech Wireless Advanced Controller", 0, XTYPE_XBOX },
278 { 0x1038, 0x1430, "SteelSeries Stratus Duo", 0, XTYPE_XBOX360 },
279 { 0x1038, 0x1431, "SteelSeries Stratus Duo", 0, XTYPE_XBOX360 },
280 { 0x11c9, 0x55f0, "Nacon GC-100XF", 0, XTYPE_XBOX360 },
281 { 0x11ff, 0x0511, "PXN V900", 0, XTYPE_XBOX360 },
282 { 0x1209, 0x2882, "Ardwiino Controller", 0, XTYPE_XBOX360 },
283 { 0x12ab, 0x0004, "Honey Bee Xbox360 dancepad", MAP_DPAD_TO_BUTTONS, XTYPE_XBOX360 },
284 { 0x12ab, 0x0301, "PDP AFTERGLOW AX.1", 0, XTYPE_XBOX360 },
285 { 0x12ab, 0x0303, "Mortal Kombat Klassic FightStick", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 },
286 { 0x12ab, 0x8809, "Xbox DDR dancepad", MAP_DPAD_TO_BUTTONS, XTYPE_XBOX },
287 { 0x1430, 0x4748, "RedOctane Guitar Hero X-plorer", 0, XTYPE_XBOX360 },
288 { 0x1430, 0x8888, "TX6500+ Dance Pad (first generation)", MAP_DPAD_TO_BUTTONS, XTYPE_XBOX },
289 { 0x1430, 0xf801, "RedOctane Controller", 0, XTYPE_XBOX360 },
290 { 0x146b, 0x0601, "BigBen Interactive XBOX 360 Controller", 0, XTYPE_XBOX360 },
291 …{ 0x146b, 0x0604, "Bigben Interactive DAIJA Arcade Stick", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 …
292 { 0x1532, 0x0a00, "Razer Atrox Arcade Stick", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOXONE },
293 { 0x1532, 0x0a03, "Razer Wildcat", 0, XTYPE_XBOXONE },
294 { 0x1532, 0x0a29, "Razer Wolverine V2", 0, XTYPE_XBOXONE },
295 { 0x15e4, 0x3f00, "Power A Mini Pro Elite", 0, XTYPE_XBOX360 },
296 { 0x15e4, 0x3f0a, "Xbox Airflo wired controller", 0, XTYPE_XBOX360 },
297 { 0x15e4, 0x3f10, "Batarang Xbox 360 controller", 0, XTYPE_XBOX360 },
298 { 0x162e, 0xbeef, "Joytech Neo-Se Take2", 0, XTYPE_XBOX360 },
299 { 0x1689, 0xfd00, "Razer Onza Tournament Edition", 0, XTYPE_XBOX360 },
300 { 0x1689, 0xfd01, "Razer Onza Classic Edition", 0, XTYPE_XBOX360 },
301 { 0x1689, 0xfe00, "Razer Sabertooth", 0, XTYPE_XBOX360 },
302 { 0x17ef, 0x6182, "Lenovo Legion Controller for Windows", 0, XTYPE_XBOX360 },
303 { 0x1949, 0x041a, "Amazon Game Controller", 0, XTYPE_XBOX360 },
304 { 0x1bad, 0x0002, "Harmonix Rock Band Guitar", 0, XTYPE_XBOX360 },
305 { 0x1bad, 0x0003, "Harmonix Rock Band Drumkit", MAP_DPAD_TO_BUTTONS, XTYPE_XBOX360 },
306 { 0x1bad, 0x0130, "Ion Drum Rocker", MAP_DPAD_TO_BUTTONS, XTYPE_XBOX360 },
307 { 0x1bad, 0xf016, "Mad Catz Xbox 360 Controller", 0, XTYPE_XBOX360 },
308 …{ 0x1bad, 0xf018, "Mad Catz Street Fighter IV SE Fighting Stick", MAP_TRIGGERS_TO_BUTTONS, XTYPE_X…
309 { 0x1bad, 0xf019, "Mad Catz Brawlstick for Xbox 360", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 },
310 { 0x1bad, 0xf021, "Mad Cats Ghost Recon FS GamePad", 0, XTYPE_XBOX360 },
311 { 0x1bad, 0xf023, "MLG Pro Circuit Controller (Xbox)", 0, XTYPE_XBOX360 },
312 { 0x1bad, 0xf025, "Mad Catz Call Of Duty", 0, XTYPE_XBOX360 },
313 { 0x1bad, 0xf027, "Mad Catz FPS Pro", 0, XTYPE_XBOX360 },
314 { 0x1bad, 0xf028, "Street Fighter IV FightPad", 0, XTYPE_XBOX360 },
315 { 0x1bad, 0xf02e, "Mad Catz Fightpad", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 },
316 { 0x1bad, 0xf030, "Mad Catz Xbox 360 MC2 MicroCon Racing Wheel", 0, XTYPE_XBOX360 },
317 { 0x1bad, 0xf036, "Mad Catz MicroCon GamePad Pro", 0, XTYPE_XBOX360 },
318 { 0x1bad, 0xf038, "Street Fighter IV FightStick TE", 0, XTYPE_XBOX360 },
319 { 0x1bad, 0xf039, "Mad Catz MvC2 TE", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 },
320 { 0x1bad, 0xf03a, "Mad Catz SFxT Fightstick Pro", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 },
321 …{ 0x1bad, 0xf03d, "Street Fighter IV Arcade Stick TE - Chun Li", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XB…
322 { 0x1bad, 0xf03e, "Mad Catz MLG FightStick TE", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 },
323 { 0x1bad, 0xf03f, "Mad Catz FightStick SoulCaliber", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 },
324 { 0x1bad, 0xf042, "Mad Catz FightStick TES+", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 },
325 { 0x1bad, 0xf080, "Mad Catz FightStick TE2", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 },
326 { 0x1bad, 0xf501, "HoriPad EX2 Turbo", 0, XTYPE_XBOX360 },
327 { 0x1bad, 0xf502, "Hori Real Arcade Pro.VX SA", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 },
328 { 0x1bad, 0xf503, "Hori Fighting Stick VX", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 },
329 { 0x1bad, 0xf504, "Hori Real Arcade Pro. EX", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 },
330 { 0x1bad, 0xf505, "Hori Fighting Stick EX2B", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 },
331 { 0x1bad, 0xf506, "Hori Real Arcade Pro.EX Premium VLX", 0, XTYPE_XBOX360 },
332 { 0x1bad, 0xf900, "Harmonix Xbox 360 Controller", 0, XTYPE_XBOX360 },
333 { 0x1bad, 0xf901, "Gamestop Xbox 360 Controller", 0, XTYPE_XBOX360 },
334 { 0x1bad, 0xf903, "Tron Xbox 360 controller", 0, XTYPE_XBOX360 },
335 { 0x1bad, 0xf904, "PDP Versus Fighting Pad", 0, XTYPE_XBOX360 },
336 { 0x1bad, 0xf906, "MortalKombat FightStick", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 },
337 { 0x1bad, 0xfa01, "MadCatz GamePad", 0, XTYPE_XBOX360 },
338 { 0x1bad, 0xfd00, "Razer Onza TE", 0, XTYPE_XBOX360 },
339 { 0x1bad, 0xfd01, "Razer Onza", 0, XTYPE_XBOX360 },
340 { 0x20d6, 0x2001, "BDA Xbox Series X Wired Controller", 0, XTYPE_XBOXONE },
341 { 0x20d6, 0x2009, "PowerA Enhanced Wired Controller for Xbox Series X|S", 0, XTYPE_XBOXONE },
342 { 0x20d6, 0x281f, "PowerA Wired Controller For Xbox 360", 0, XTYPE_XBOX360 },
343 { 0x2e24, 0x0652, "Hyperkin Duke X-Box One pad", 0, XTYPE_XBOXONE },
344 { 0x24c6, 0x5000, "Razer Atrox Arcade Stick", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 },
345 { 0x24c6, 0x5300, "PowerA MINI PROEX Controller", 0, XTYPE_XBOX360 },
346 { 0x24c6, 0x5303, "Xbox Airflo wired controller", 0, XTYPE_XBOX360 },
347 { 0x24c6, 0x530a, "Xbox 360 Pro EX Controller", 0, XTYPE_XBOX360 },
348 { 0x24c6, 0x531a, "PowerA Pro Ex", 0, XTYPE_XBOX360 },
349 { 0x24c6, 0x5397, "FUS1ON Tournament Controller", 0, XTYPE_XBOX360 },
350 { 0x24c6, 0x541a, "PowerA Xbox One Mini Wired Controller", 0, XTYPE_XBOXONE },
351 { 0x24c6, 0x542a, "Xbox ONE spectra", 0, XTYPE_XBOXONE },
352 { 0x24c6, 0x543a, "PowerA Xbox One wired controller", 0, XTYPE_XBOXONE },
353 { 0x24c6, 0x5500, "Hori XBOX 360 EX 2 with Turbo", 0, XTYPE_XBOX360 },
354 { 0x24c6, 0x5501, "Hori Real Arcade Pro VX-SA", 0, XTYPE_XBOX360 },
355 { 0x24c6, 0x5502, "Hori Fighting Stick VX Alt", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 },
356 { 0x24c6, 0x5503, "Hori Fighting Edge", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 },
357 { 0x24c6, 0x5506, "Hori SOULCALIBUR V Stick", 0, XTYPE_XBOX360 },
358 …{ 0x24c6, 0x5510, "Hori Fighting Commander ONE (Xbox 360/PC Mode)", MAP_TRIGGERS_TO_BUTTONS, XTYPE…
359 { 0x24c6, 0x550d, "Hori GEM Xbox controller", 0, XTYPE_XBOX360 },
360 { 0x24c6, 0x550e, "Hori Real Arcade Pro V Kai 360", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 },
361 { 0x24c6, 0x551a, "PowerA FUSION Pro Controller", 0, XTYPE_XBOXONE },
362 { 0x24c6, 0x561a, "PowerA FUSION Controller", 0, XTYPE_XBOXONE },
363 { 0x24c6, 0x5b00, "ThrustMaster Ferrari 458 Racing Wheel", 0, XTYPE_XBOX360 },
364 { 0x24c6, 0x5b02, "Thrustmaster, Inc. GPX Controller", 0, XTYPE_XBOX360 },
365 { 0x24c6, 0x5b03, "Thrustmaster Ferrari 458 Racing Wheel", 0, XTYPE_XBOX360 },
366 { 0x24c6, 0x5d04, "Razer Sabertooth", 0, XTYPE_XBOX360 },
367 { 0x24c6, 0xfafe, "Rock Candy Gamepad for Xbox 360", 0, XTYPE_XBOX360 },
368 { 0x2563, 0x058d, "OneXPlayer Gamepad", 0, XTYPE_XBOX360 },
369 { 0x2dc8, 0x2000, "8BitDo Pro 2 Wired Controller fox Xbox", 0, XTYPE_XBOXONE },
370 { 0x2dc8, 0x3106, "8BitDo Pro 2 Wired Controller", 0, XTYPE_XBOX360 },
371 { 0x31e3, 0x1100, "Wooting One", 0, XTYPE_XBOX360 },
372 { 0x31e3, 0x1200, "Wooting Two", 0, XTYPE_XBOX360 },
373 { 0x31e3, 0x1210, "Wooting Lekker", 0, XTYPE_XBOX360 },
374 { 0x31e3, 0x1220, "Wooting Two HE", 0, XTYPE_XBOX360 },
375 { 0x31e3, 0x1300, "Wooting 60HE (AVR)", 0, XTYPE_XBOX360 },
376 { 0x31e3, 0x1310, "Wooting 60HE (ARM)", 0, XTYPE_XBOX360 },
377 { 0x3285, 0x0607, "Nacon GC-100", 0, XTYPE_XBOX360 },
378 { 0x3537, 0x1004, "GameSir T4 Kaleid", 0, XTYPE_XBOX360 },
379 { 0x3767, 0x0101, "Fanatec Speedster 3 Forceshock Wheel", 0, XTYPE_XBOX },
380 { 0xffff, 0xffff, "Chinese-made Xbox Controller", 0, XTYPE_XBOX },
381 { 0x0000, 0x0000, "Generic X-Box pad", 0, XTYPE_UNKNOWN }
468 { USB_INTERFACE_INFO('X', 'B', 0) }, /* Xbox USB-IF not-approved class */
469 XPAD_XBOX360_VENDOR(0x0079), /* GPD Win 2 controller */
470 XPAD_XBOX360_VENDOR(0x03eb), /* Wooting Keyboards (Legacy) */
471 XPAD_XBOX360_VENDOR(0x03f0), /* HP HyperX Xbox 360 controllers */
472 XPAD_XBOXONE_VENDOR(0x03f0), /* HP HyperX Xbox One controllers */
473 XPAD_XBOX360_VENDOR(0x044f), /* Thrustmaster Xbox 360 controllers */
474 XPAD_XBOX360_VENDOR(0x045e), /* Microsoft Xbox 360 controllers */
475 XPAD_XBOXONE_VENDOR(0x045e), /* Microsoft Xbox One controllers */
476 XPAD_XBOX360_VENDOR(0x046d), /* Logitech Xbox 360-style controllers */
477 XPAD_XBOX360_VENDOR(0x056e), /* Elecom JC-U3613M */
478 XPAD_XBOX360_VENDOR(0x06a3), /* Saitek P3600 */
479 XPAD_XBOX360_VENDOR(0x0738), /* Mad Catz Xbox 360 controllers */
480 { USB_DEVICE(0x0738, 0x4540) }, /* Mad Catz Beat Pad */
481 XPAD_XBOXONE_VENDOR(0x0738), /* Mad Catz FightStick TE 2 */
482 XPAD_XBOX360_VENDOR(0x07ff), /* Mad Catz Gamepad */
483 XPAD_XBOX360_VENDOR(0x0c12), /* Zeroplus X-Box 360 controllers */
484 XPAD_XBOX360_VENDOR(0x0e6f), /* 0x0e6f Xbox 360 controllers */
485 XPAD_XBOXONE_VENDOR(0x0e6f), /* 0x0e6f Xbox One controllers */
486 XPAD_XBOX360_VENDOR(0x0f0d), /* Hori controllers */
487 XPAD_XBOXONE_VENDOR(0x0f0d), /* Hori controllers */
488 XPAD_XBOX360_VENDOR(0x1038), /* SteelSeries controllers */
489 XPAD_XBOXONE_VENDOR(0x10f5), /* Turtle Beach Controllers */
490 XPAD_XBOX360_VENDOR(0x11c9), /* Nacon GC100XF */
491 XPAD_XBOX360_VENDOR(0x11ff), /* PXN V900 */
492 XPAD_XBOX360_VENDOR(0x1209), /* Ardwiino Controllers */
493 XPAD_XBOX360_VENDOR(0x12ab), /* Xbox 360 dance pads */
494 XPAD_XBOX360_VENDOR(0x1430), /* RedOctane Xbox 360 controllers */
495 XPAD_XBOX360_VENDOR(0x146b), /* Bigben Interactive controllers */
496 XPAD_XBOX360_VENDOR(0x1532), /* Razer Sabertooth */
497 XPAD_XBOXONE_VENDOR(0x1532), /* Razer Wildcat */
498 XPAD_XBOX360_VENDOR(0x15e4), /* Numark Xbox 360 controllers */
499 XPAD_XBOX360_VENDOR(0x162e), /* Joytech Xbox 360 controllers */
500 XPAD_XBOX360_VENDOR(0x1689), /* Razer Onza */
501 XPAD_XBOX360_VENDOR(0x17ef), /* Lenovo */
502 XPAD_XBOX360_VENDOR(0x1949), /* Amazon controllers */
503 XPAD_XBOX360_VENDOR(0x1bad), /* Harmonix Rock Band guitar and drums */
504 XPAD_XBOX360_VENDOR(0x20d6), /* PowerA controllers */
505 XPAD_XBOXONE_VENDOR(0x20d6), /* PowerA controllers */
506 XPAD_XBOX360_VENDOR(0x24c6), /* PowerA controllers */
507 XPAD_XBOXONE_VENDOR(0x24c6), /* PowerA controllers */
508 XPAD_XBOX360_VENDOR(0x2563), /* OneXPlayer Gamepad */
509 XPAD_XBOX360_VENDOR(0x260d), /* Dareu H101 */
510 XPAD_XBOX360_VENDOR(0x2c22), /* Qanba Controllers */
511 XPAD_XBOX360_VENDOR(0x2dc8), /* 8BitDo Pro 2 Wired Controller */
512 XPAD_XBOXONE_VENDOR(0x2dc8), /* 8BitDo Pro 2 Wired Controller for Xbox */
513 XPAD_XBOXONE_VENDOR(0x2e24), /* Hyperkin Duke Xbox One pad */
514 XPAD_XBOX360_VENDOR(0x2f24), /* GameSir controllers */
515 XPAD_XBOX360_VENDOR(0x31e3), /* Wooting Keyboards */
516 XPAD_XBOX360_VENDOR(0x3285), /* Nacon GC-100 */
517 XPAD_XBOX360_VENDOR(0x3537), /* GameSir Controllers */
518 XPAD_XBOXONE_VENDOR(0x3537), /* GameSir Controllers */
545 #define GIP_CMD_ACK 0x01
546 #define GIP_CMD_IDENTIFY 0x04
547 #define GIP_CMD_POWER 0x05
548 #define GIP_CMD_AUTHENTICATE 0x06
549 #define GIP_CMD_VIRTUAL_KEY 0x07
550 #define GIP_CMD_RUMBLE 0x09
551 #define GIP_CMD_LED 0x0a
552 #define GIP_CMD_FIRMWARE 0x0c
553 #define GIP_CMD_INPUT 0x20
555 #define GIP_SEQ0 0x00
557 #define GIP_OPT_ACK 0x10
558 #define GIP_OPT_INTERNAL 0x20
570 #define GIP_PWR_ON 0x00
571 #define GIP_LED_ON 0x01
573 #define GIP_MOTOR_R BIT(0)
579 #define GIP_WIRED_INTF_DATA 0
591 * This packet is required for Xbox One S (0x045e:0x02ea)
592 * and Xbox One Elite Series 2 (0x045e:0x0b00) pads to
597 GIP_CMD_POWER, GIP_OPT_INTERNAL, GIP_SEQ0, 0x0f, 0x06
602 * from Xbox One Elite Series 2 (0x045e:0x0b00) pads.
606 0x4d, 0x10, 0x01, 0x02, 0x07, 0x00
611 * (0x0e6f:0x0165) to finish initialization and for Hori pads
612 * (0x0f0d:0x0067) to make the analog sticks work.
616 0x00, GIP_CMD_IDENTIFY, GIP_OPT_INTERNAL, 0x3a, 0x00, 0x00, 0x00, 0x80, 0x00
621 * sending input reports. These pads include: (0x0e6f:0x02ab),
622 * (0x0e6f:0x02a4), (0x0e6f:0x02a6).
625 GIP_CMD_LED, GIP_OPT_INTERNAL, GIP_SEQ0, GIP_PL_LEN(3), 0x00, GIP_LED_ON, 0x14
630 * sending input reports. These pads include: (0x0e6f:0x02ab),
631 * (0x0e6f:0x02a4), (0x0e6f:0x02a6).
634 GIP_CMD_AUTHENTICATE, GIP_OPT_INTERNAL, GIP_SEQ0, GIP_PL_LEN(2), 0x01, 0x00
639 * sending input reports. One of those pads is (0x24c6:0x543a).
642 GIP_CMD_RUMBLE, 0x00, GIP_SEQ0, GIP_PL_LEN(9),
643 0x00, GIP_MOTOR_ALL, 0x00, 0x00, 0x1D, 0x1D, 0xFF, 0x00, 0x00
653 GIP_CMD_RUMBLE, 0x00, GIP_SEQ0, GIP_PL_LEN(9),
654 0x00, GIP_MOTOR_ALL, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
664 XBOXONE_INIT_PKT(0x0e6f, 0x0165, xboxone_hori_ack_id),
665 XBOXONE_INIT_PKT(0x0f0d, 0x0067, xboxone_hori_ack_id),
666 XBOXONE_INIT_PKT(0x0000, 0x0000, xboxone_power_on),
667 XBOXONE_INIT_PKT(0x045e, 0x02ea, xboxone_s_init),
668 XBOXONE_INIT_PKT(0x045e, 0x0b00, xboxone_s_init),
669 XBOXONE_INIT_PKT(0x045e, 0x0b00, extra_input_packet_init),
670 XBOXONE_INIT_PKT(0x0e6f, 0x0000, xboxone_pdp_led_on),
671 XBOXONE_INIT_PKT(0x0e6f, 0x0000, xboxone_pdp_auth),
672 XBOXONE_INIT_PKT(0x24c6, 0x541a, xboxone_rumblebegin_init),
673 XBOXONE_INIT_PKT(0x24c6, 0x542a, xboxone_rumblebegin_init),
674 XBOXONE_INIT_PKT(0x24c6, 0x543a, xboxone_rumblebegin_init),
675 XBOXONE_INIT_PKT(0x24c6, 0x541a, xboxone_rumbleend_init),
676 XBOXONE_INIT_PKT(0x24c6, 0x542a, xboxone_rumbleend_init),
677 XBOXONE_INIT_PKT(0x24c6, 0x543a, xboxone_rumbleend_init),
686 #define XPAD_OUT_CMD_IDX 0
779 input_report_key(dev, BTN_TRIGGER_HAPPY3, data[2] & BIT(0)); in xpad_process_packet()
783 !!(data[2] & 0x08) - !!(data[2] & 0x04)); in xpad_process_packet()
785 !!(data[2] & 0x02) - !!(data[2] & 0x01)); in xpad_process_packet()
822 if (data[0] != 0x00) in xpad360_process_packet()
830 input_report_key(dev, BTN_TRIGGER_HAPPY3, data[2] & BIT(0)); in xpad360_process_packet()
843 !!(data[2] & 0x08) - !!(data[2] & 0x04)); in xpad360_process_packet()
845 !!(data[2] & 0x02) - !!(data[2] & 0x01)); in xpad360_process_packet()
861 input_report_key(dev, BTN_TL, data[3] & BIT(0)); in xpad360_process_packet()
892 if (xpad->mode_btn_down_ts > 0 && xpad->pad_present && in xpad360_process_packet()
896 xpad->mode_btn_down_ts = 0; in xpad360_process_packet()
904 xpad->mode_btn_down_ts = 0; in xpad360_process_packet()
953 if (data[0] & 0x08) { in xpad360w_process_packet()
954 present = (data[1] & 0x80) != 0; in xpad360w_process_packet()
963 if (data[1] != 0x1) in xpad360w_process_packet()
988 if (data[0] == GIP_CMD_VIRTUAL_KEY) { in xpadone_process_packet()
997 input_report_key(dev, BTN_MODE, data[4] & GENMASK(1, 0)); in xpadone_process_packet()
1001 } else if (data[0] == GIP_CMD_FIRMWARE) { in xpadone_process_packet()
1008 if (data[19] != 0) in xpadone_process_packet()
1009 data[18] = 0; in xpadone_process_packet()
1012 input_report_key(dev, BTN_TRIGGER_HAPPY5, data[18] & BIT(0)); in xpadone_process_packet()
1019 } else if (data[0] == GIP_CMD_INPUT) { /* The main valid packet type for inputs */ in xpadone_process_packet()
1024 input_report_key(dev, KEY_RECORD, data[22] & BIT(0)); in xpadone_process_packet()
1037 input_report_key(dev, BTN_TRIGGER_HAPPY3, data[5] & BIT(0)); in xpadone_process_packet()
1041 !!(data[5] & 0x08) - !!(data[5] & 0x04)); in xpadone_process_packet()
1043 !!(data[5] & 0x02) - !!(data[5] & 0x01)); in xpadone_process_packet()
1081 /* Profile button has a value of 0-3, so it is reported as an axis */ in xpadone_process_packet()
1093 if (memcmp(&data[4], &data[18], 2) != 0) in xpadone_process_packet()
1094 data[32] = 0; in xpadone_process_packet()
1099 input_report_key(dev, BTN_TRIGGER_HAPPY7, data[32] & BIT(0)); in xpadone_process_packet()
1106 if (data[19] != 0) in xpadone_process_packet()
1107 data[18] = 0; in xpadone_process_packet()
1110 input_report_key(dev, BTN_TRIGGER_HAPPY5, data[18] & BIT(0)); in xpadone_process_packet()
1119 if (data[23] != 0) in xpadone_process_packet()
1120 data[22] = 0; in xpadone_process_packet()
1125 input_report_key(dev, BTN_TRIGGER_HAPPY5, data[22] & BIT(0)); in xpadone_process_packet()
1148 case 0: in xpad_irq_in()
1166 xpad360_process_packet(xpad, xpad->dev, 0, xpad->idata); in xpad_irq_in()
1169 xpad360w_process_packet(xpad, 0, xpad->idata); in xpad_irq_in()
1172 xpadone_process_packet(xpad, 0, xpad->idata); in xpad_irq_in()
1175 xpad_process_packet(xpad, 0, xpad->idata); in xpad_irq_in()
1197 if (init_packet->idVendor != 0 && in xpad_prepare_next_init_packet()
1201 if (init_packet->idProduct != 0 && in xpad_prepare_next_init_packet()
1227 for (i = 0; i < XPAD_NUM_OUT_PACKETS; i++) { in xpad_prepare_next_out_packet()
1229 xpad->last_out_packet = 0; in xpad_prepare_next_out_packet()
1270 return 0; in xpad_try_sending_next_out_packet()
1284 case 0: in xpad_irq_out()
1325 return 0; in xpad_init_output()
1336 xpad->irq_out = usb_alloc_urb(0, GFP_KERNEL); in xpad_init_output()
1349 return 0; in xpad_init_output()
1386 packet->data[0] = 0x08; in xpad_inquiry_pad_presence()
1387 packet->data[1] = 0x00; in xpad_inquiry_pad_presence()
1388 packet->data[2] = 0x0F; in xpad_inquiry_pad_presence()
1389 packet->data[3] = 0xC0; in xpad_inquiry_pad_presence()
1390 packet->data[4] = 0x00; in xpad_inquiry_pad_presence()
1391 packet->data[5] = 0x00; in xpad_inquiry_pad_presence()
1392 packet->data[6] = 0x00; in xpad_inquiry_pad_presence()
1393 packet->data[7] = 0x00; in xpad_inquiry_pad_presence()
1394 packet->data[8] = 0x00; in xpad_inquiry_pad_presence()
1395 packet->data[9] = 0x00; in xpad_inquiry_pad_presence()
1396 packet->data[10] = 0x00; in xpad_inquiry_pad_presence()
1397 packet->data[11] = 0x00; in xpad_inquiry_pad_presence()
1419 * Controller for Series X|S (0x20d6:0x200e) to report the in xpad_start_xbox_one()
1423 GIP_WIRED_INTF_AUDIO, 0); in xpad_start_xbox_one()
1437 xpad->init_seq = 0; in xpad_start_xbox_one()
1452 0x00, GIP_CMD_VIRTUAL_KEY, GIP_OPT_INTERNAL, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00 in xpadone_ack_mode_report()
1480 return 0; in xpad_play_effect()
1489 packet->data[0] = 0x00; in xpad_play_effect()
1490 packet->data[1] = 0x06; in xpad_play_effect()
1491 packet->data[2] = 0x00; in xpad_play_effect()
1493 packet->data[4] = 0x00; in xpad_play_effect()
1500 packet->data[0] = 0x00; in xpad_play_effect()
1501 packet->data[1] = 0x08; in xpad_play_effect()
1502 packet->data[2] = 0x00; in xpad_play_effect()
1505 packet->data[5] = 0x00; in xpad_play_effect()
1506 packet->data[6] = 0x00; in xpad_play_effect()
1507 packet->data[7] = 0x00; in xpad_play_effect()
1513 packet->data[0] = 0x00; in xpad_play_effect()
1514 packet->data[1] = 0x01; in xpad_play_effect()
1515 packet->data[2] = 0x0F; in xpad_play_effect()
1516 packet->data[3] = 0xC0; in xpad_play_effect()
1517 packet->data[4] = 0x00; in xpad_play_effect()
1520 packet->data[7] = 0x00; in xpad_play_effect()
1521 packet->data[8] = 0x00; in xpad_play_effect()
1522 packet->data[9] = 0x00; in xpad_play_effect()
1523 packet->data[10] = 0x00; in xpad_play_effect()
1524 packet->data[11] = 0x00; in xpad_play_effect()
1530 packet->data[0] = GIP_CMD_RUMBLE; /* activate rumble */ in xpad_play_effect()
1531 packet->data[1] = 0x00; in xpad_play_effect()
1534 packet->data[4] = 0x00; in xpad_play_effect()
1536 packet->data[6] = 0x00; /* left trigger */ in xpad_play_effect()
1537 packet->data[7] = 0x00; /* right trigger */ in xpad_play_effect()
1540 packet->data[10] = 0xFF; /* on period */ in xpad_play_effect()
1541 packet->data[11] = 0x00; /* off period */ in xpad_play_effect()
1542 packet->data[12] = 0xFF; /* repeat count */ in xpad_play_effect()
1565 return 0; in xpad_init_ff()
1573 static int xpad_init_ff(struct usb_xpad *xpad) { return 0; } in xpad_init_ff()
1591 * 0: off
1620 packet->data[0] = 0x01; in xpad_send_led_command()
1621 packet->data[1] = 0x03; in xpad_send_led_command()
1628 packet->data[0] = 0x00; in xpad_send_led_command()
1629 packet->data[1] = 0x00; in xpad_send_led_command()
1630 packet->data[2] = 0x08; in xpad_send_led_command()
1631 packet->data[3] = 0x40 + command; in xpad_send_led_command()
1632 packet->data[4] = 0x00; in xpad_send_led_command()
1633 packet->data[5] = 0x00; in xpad_send_led_command()
1634 packet->data[6] = 0x00; in xpad_send_led_command()
1635 packet->data[7] = 0x00; in xpad_send_led_command()
1636 packet->data[8] = 0x00; in xpad_send_led_command()
1637 packet->data[9] = 0x00; in xpad_send_led_command()
1638 packet->data[10] = 0x00; in xpad_send_led_command()
1639 packet->data[11] = 0x00; in xpad_send_led_command()
1675 return 0; in xpad_led_probe()
1682 if (xpad->pad_nr < 0) { in xpad_led_probe()
1701 return 0; in xpad_led_probe()
1722 static int xpad_led_probe(struct usb_xpad *xpad) { return 0; } in xpad_led_probe()
1747 error = usb_control_msg_recv(xpad->udev, 0, in xpad_start_input()
1748 /* bRequest */ 0x01, in xpad_start_input()
1752 /* wValue */ 0x100, in xpad_start_input()
1753 /* wIndex */ 0x00, in xpad_start_input()
1762 return 0; in xpad_start_input()
1778 packet->data[0] = 0x00; in xpad360w_poweroff_controller()
1779 packet->data[1] = 0x00; in xpad360w_poweroff_controller()
1780 packet->data[2] = 0x08; in xpad360w_poweroff_controller()
1781 packet->data[3] = 0xC0; in xpad360w_poweroff_controller()
1782 packet->data[4] = 0x00; in xpad360w_poweroff_controller()
1783 packet->data[5] = 0x00; in xpad360w_poweroff_controller()
1784 packet->data[6] = 0x00; in xpad360w_poweroff_controller()
1785 packet->data[7] = 0x00; in xpad360w_poweroff_controller()
1786 packet->data[8] = 0x00; in xpad360w_poweroff_controller()
1787 packet->data[9] = 0x00; in xpad360w_poweroff_controller()
1788 packet->data[10] = 0x00; in xpad360w_poweroff_controller()
1789 packet->data[11] = 0x00; in xpad360w_poweroff_controller()
1821 return 0; in xpad360w_start_input()
1860 input_set_abs_params(input_dev, abs, 0, 1023, 0, 0); in xpad_set_up_abs()
1862 input_set_abs_params(input_dev, abs, 0, 255, 0, 0); in xpad_set_up_abs()
1866 input_set_abs_params(input_dev, abs, -1, 1, 0, 0); in xpad_set_up_abs()
1869 input_set_abs_params(input_dev, abs, 0, 4, 0, 0); in xpad_set_up_abs()
1872 input_set_abs_params(input_dev, abs, 0, 0, 0, 0); in xpad_set_up_abs()
1902 input_dev->id.product = 0x02a1; in xpad_init_input()
1916 for (i = 0; xpad_abs[i] >= 0; i++) in xpad_init_input()
1921 for (i = 0; xpad_common_btn[i] >= 0; i++) in xpad_init_input()
1927 for (i = 0; xpad360_btn[i] >= 0; i++) in xpad_init_input()
1932 for (i = 0; xpad_btn[i] >= 0; i++) in xpad_init_input()
1937 for (i = 0; xpad_btn_pad[i] >= 0; i++) in xpad_init_input()
1944 for (i = 0; xpad_btn_paddles[i] >= 0; i++) in xpad_init_input()
1956 for (i = 0; xpad_abs_pad[i] >= 0; i++) in xpad_init_input()
1961 for (i = 0; xpad_btn_triggers[i] >= 0; i++) in xpad_init_input()
1965 for (i = 0; xpad_abs_triggers[i] >= 0; i++) in xpad_init_input()
1986 return 0; in xpad_init_input()
2007 for (i = 0; xpad_device[i].idVendor; i++) { in xpad_probe()
2027 xpad->irq_in = usb_alloc_urb(0, GFP_KERNEL); in xpad_probe()
2074 for (i = 0; i < 2; i++) { in xpad_probe()
2105 if (le16_to_cpu(udev->descriptor.idVendor) == 0x045e) { /* Microsoft controllers */ in xpad_probe()
2106 if (le16_to_cpu(udev->descriptor.idProduct) == 0x02e3) { in xpad_probe()
2111 } else if (le16_to_cpu(udev->descriptor.idProduct) == 0x0b00) { in xpad_probe()
2116 if (le16_to_cpu(udev->descriptor.bcdDevice) < 0x0500) { in xpad_probe()
2122 0x050b) { in xpad_probe()
2160 return 0; in xpad_probe()
2229 return 0; in xpad_suspend()
2236 int retval = 0; in xpad_resume()