1/****************************************************************************
2 ****************************************************************************
3 ***
4 ***   This header was automatically generated from a Linux kernel header
5 ***   of the same name, to make information necessary for userspace to
6 ***   call into the kernel available to libc.  It contains only constants,
7 ***   structures, and macros generated from the original header, and thus,
8 ***   contains no copyrightable information.
9 ***
10 ***   To edit the content of this header, modify the corresponding
11 ***   source file (e.g. under external/kernel-headers/original/) then
12 ***   run bionic/libc/kernel/tools/update_all.py
13 ***
14 ***   Any manual change here will be lost the next time this script will
15 ***   be run. You've been warned!
16 ***
17 ****************************************************************************
18 ****************************************************************************/
19#ifndef __LINUX_USB_CH9_H
20#define __LINUX_USB_CH9_H
21#include <linux/types.h>
22#include <asm/byteorder.h>
23/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24#define USB_DIR_OUT 0
25#define USB_DIR_IN 0x80
26#define USB_TYPE_MASK (0x03 << 5)
27#define USB_TYPE_STANDARD (0x00 << 5)
28/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29#define USB_TYPE_CLASS (0x01 << 5)
30#define USB_TYPE_VENDOR (0x02 << 5)
31#define USB_TYPE_RESERVED (0x03 << 5)
32#define USB_RECIP_MASK 0x1f
33/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34#define USB_RECIP_DEVICE 0x00
35#define USB_RECIP_INTERFACE 0x01
36#define USB_RECIP_ENDPOINT 0x02
37#define USB_RECIP_OTHER 0x03
38/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39#define USB_RECIP_PORT 0x04
40#define USB_RECIP_RPIPE 0x05
41#define USB_REQ_GET_STATUS 0x00
42#define USB_REQ_CLEAR_FEATURE 0x01
43/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44#define USB_REQ_SET_FEATURE 0x03
45#define USB_REQ_SET_ADDRESS 0x05
46#define USB_REQ_GET_DESCRIPTOR 0x06
47#define USB_REQ_SET_DESCRIPTOR 0x07
48/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49#define USB_REQ_GET_CONFIGURATION 0x08
50#define USB_REQ_SET_CONFIGURATION 0x09
51#define USB_REQ_GET_INTERFACE 0x0A
52#define USB_REQ_SET_INTERFACE 0x0B
53/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54#define USB_REQ_SYNCH_FRAME 0x0C
55#define USB_REQ_SET_SEL 0x30
56#define USB_REQ_SET_ENCRYPTION 0x0D
57#define USB_REQ_GET_ENCRYPTION 0x0E
58/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59#define USB_REQ_RPIPE_ABORT 0x0E
60#define USB_REQ_SET_HANDSHAKE 0x0F
61#define USB_REQ_RPIPE_RESET 0x0F
62#define USB_REQ_GET_HANDSHAKE 0x10
63/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
64#define USB_REQ_SET_CONNECTION 0x11
65#define USB_REQ_SET_SECURITY_DATA 0x12
66#define USB_REQ_GET_SECURITY_DATA 0x13
67#define USB_REQ_SET_WUSB_DATA 0x14
68/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
69#define USB_REQ_LOOPBACK_DATA_WRITE 0x15
70#define USB_REQ_LOOPBACK_DATA_READ 0x16
71#define USB_REQ_SET_INTERFACE_DS 0x17
72#define USB_DEVICE_SELF_POWERED 0
73/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
74#define USB_DEVICE_REMOTE_WAKEUP 1
75#define USB_DEVICE_TEST_MODE 2
76#define USB_DEVICE_BATTERY 2
77#define USB_DEVICE_B_HNP_ENABLE 3
78/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
79#define USB_DEVICE_WUSB_DEVICE 3
80#define USB_DEVICE_A_HNP_SUPPORT 4
81#define USB_DEVICE_A_ALT_HNP_SUPPORT 5
82#define USB_DEVICE_DEBUG_MODE 6
83/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
84#define TEST_J 1
85#define TEST_K 2
86#define TEST_SE0_NAK 3
87#define TEST_PACKET 4
88/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
89#define TEST_FORCE_EN 5
90#define USB_DEVICE_U1_ENABLE 48
91#define USB_DEVICE_U2_ENABLE 49
92#define USB_DEVICE_LTM_ENABLE 50
93/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
94#define USB_INTRF_FUNC_SUSPEND 0
95#define USB_INTR_FUNC_SUSPEND_OPT_MASK 0xFF00
96#define USB_INTRF_FUNC_SUSPEND_LP (1 << (8 + 0))
97#define USB_INTRF_FUNC_SUSPEND_RW (1 << (8 + 1))
98/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
99#define USB_ENDPOINT_HALT 0
100#define USB_DEV_STAT_U1_ENABLED 2
101#define USB_DEV_STAT_U2_ENABLED 3
102#define USB_DEV_STAT_LTM_ENABLED 4
103/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
104struct usb_ctrlrequest {
105 __u8 bRequestType;
106 __u8 bRequest;
107 __le16 wValue;
108/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
109 __le16 wIndex;
110 __le16 wLength;
111} __attribute__ ((packed));
112#define USB_DT_DEVICE 0x01
113/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
114#define USB_DT_CONFIG 0x02
115#define USB_DT_STRING 0x03
116#define USB_DT_INTERFACE 0x04
117#define USB_DT_ENDPOINT 0x05
118/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
119#define USB_DT_DEVICE_QUALIFIER 0x06
120#define USB_DT_OTHER_SPEED_CONFIG 0x07
121#define USB_DT_INTERFACE_POWER 0x08
122#define USB_DT_OTG 0x09
123/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
124#define USB_DT_DEBUG 0x0a
125#define USB_DT_INTERFACE_ASSOCIATION 0x0b
126#define USB_DT_SECURITY 0x0c
127#define USB_DT_KEY 0x0d
128/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
129#define USB_DT_ENCRYPTION_TYPE 0x0e
130#define USB_DT_BOS 0x0f
131#define USB_DT_DEVICE_CAPABILITY 0x10
132#define USB_DT_WIRELESS_ENDPOINT_COMP 0x11
133/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
134#define USB_DT_WIRE_ADAPTER 0x21
135#define USB_DT_RPIPE 0x22
136#define USB_DT_CS_RADIO_CONTROL 0x23
137#define USB_DT_PIPE_USAGE 0x24
138/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
139#define USB_DT_SS_ENDPOINT_COMP 0x30
140#define USB_DT_CS_DEVICE (USB_TYPE_CLASS | USB_DT_DEVICE)
141#define USB_DT_CS_CONFIG (USB_TYPE_CLASS | USB_DT_CONFIG)
142#define USB_DT_CS_STRING (USB_TYPE_CLASS | USB_DT_STRING)
143/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
144#define USB_DT_CS_INTERFACE (USB_TYPE_CLASS | USB_DT_INTERFACE)
145#define USB_DT_CS_ENDPOINT (USB_TYPE_CLASS | USB_DT_ENDPOINT)
146struct usb_descriptor_header {
147 __u8 bLength;
148/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
149 __u8 bDescriptorType;
150} __attribute__ ((packed));
151struct usb_device_descriptor {
152 __u8 bLength;
153/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
154 __u8 bDescriptorType;
155 __le16 bcdUSB;
156 __u8 bDeviceClass;
157 __u8 bDeviceSubClass;
158/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
159 __u8 bDeviceProtocol;
160 __u8 bMaxPacketSize0;
161 __le16 idVendor;
162 __le16 idProduct;
163/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
164 __le16 bcdDevice;
165 __u8 iManufacturer;
166 __u8 iProduct;
167 __u8 iSerialNumber;
168/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
169 __u8 bNumConfigurations;
170} __attribute__ ((packed));
171#define USB_DT_DEVICE_SIZE 18
172#define USB_CLASS_PER_INTERFACE 0
173/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
174#define USB_CLASS_AUDIO 1
175#define USB_CLASS_COMM 2
176#define USB_CLASS_HID 3
177#define USB_CLASS_PHYSICAL 5
178/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
179#define USB_CLASS_STILL_IMAGE 6
180#define USB_CLASS_PRINTER 7
181#define USB_CLASS_MASS_STORAGE 8
182#define USB_CLASS_HUB 9
183/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
184#define USB_CLASS_CDC_DATA 0x0a
185#define USB_CLASS_CSCID 0x0b
186#define USB_CLASS_CONTENT_SEC 0x0d
187#define USB_CLASS_VIDEO 0x0e
188/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
189#define USB_CLASS_WIRELESS_CONTROLLER 0xe0
190#define USB_CLASS_MISC 0xef
191#define USB_CLASS_APP_SPEC 0xfe
192#define USB_CLASS_VENDOR_SPEC 0xff
193/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
194#define USB_SUBCLASS_VENDOR_SPEC 0xff
195struct usb_config_descriptor {
196 __u8 bLength;
197 __u8 bDescriptorType;
198/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
199 __le16 wTotalLength;
200 __u8 bNumInterfaces;
201 __u8 bConfigurationValue;
202 __u8 iConfiguration;
203/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
204 __u8 bmAttributes;
205 __u8 bMaxPower;
206} __attribute__ ((packed));
207#define USB_DT_CONFIG_SIZE 9
208/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
209#define USB_CONFIG_ATT_ONE (1 << 7)
210#define USB_CONFIG_ATT_SELFPOWER (1 << 6)
211#define USB_CONFIG_ATT_WAKEUP (1 << 5)
212#define USB_CONFIG_ATT_BATTERY (1 << 4)
213/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
214struct usb_string_descriptor {
215 __u8 bLength;
216 __u8 bDescriptorType;
217 __le16 wData[1];
218/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
219} __attribute__ ((packed));
220struct usb_interface_descriptor {
221 __u8 bLength;
222 __u8 bDescriptorType;
223/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
224 __u8 bInterfaceNumber;
225 __u8 bAlternateSetting;
226 __u8 bNumEndpoints;
227 __u8 bInterfaceClass;
228/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
229 __u8 bInterfaceSubClass;
230 __u8 bInterfaceProtocol;
231 __u8 iInterface;
232} __attribute__ ((packed));
233/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
234#define USB_DT_INTERFACE_SIZE 9
235struct usb_endpoint_descriptor {
236 __u8 bLength;
237 __u8 bDescriptorType;
238/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
239 __u8 bEndpointAddress;
240 __u8 bmAttributes;
241 __le16 wMaxPacketSize;
242 __u8 bInterval;
243/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
244 __u8 bRefresh;
245 __u8 bSynchAddress;
246} __attribute__ ((packed));
247#define USB_DT_ENDPOINT_SIZE 7
248/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
249#define USB_DT_ENDPOINT_AUDIO_SIZE 9
250#define USB_ENDPOINT_NUMBER_MASK 0x0f
251#define USB_ENDPOINT_DIR_MASK 0x80
252#define USB_ENDPOINT_XFERTYPE_MASK 0x03
253/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
254#define USB_ENDPOINT_XFER_CONTROL 0
255#define USB_ENDPOINT_XFER_ISOC 1
256#define USB_ENDPOINT_XFER_BULK 2
257#define USB_ENDPOINT_XFER_INT 3
258/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
259#define USB_ENDPOINT_MAX_ADJUSTABLE 0x80
260#define USB_ENDPOINT_SYNCTYPE 0x0c
261#define USB_ENDPOINT_SYNC_NONE (0 << 2)
262#define USB_ENDPOINT_SYNC_ASYNC (1 << 2)
263/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
264#define USB_ENDPOINT_SYNC_ADAPTIVE (2 << 2)
265#define USB_ENDPOINT_SYNC_SYNC (3 << 2)
266#define USB_ENDPOINT_USAGE_MASK 0x30
267#define USB_ENDPOINT_USAGE_DATA 0x00
268/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
269#define USB_ENDPOINT_USAGE_FEEDBACK 0x10
270#define USB_ENDPOINT_USAGE_IMPLICIT_FB 0x20
271struct usb_ss_ep_comp_descriptor {
272 __u8 bLength;
273/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
274 __u8 bDescriptorType;
275 __u8 bMaxBurst;
276 __u8 bmAttributes;
277 __le16 wBytesPerInterval;
278/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
279} __attribute__ ((packed));
280#define USB_DT_SS_EP_COMP_SIZE 6
281#define USB_SS_MULT(p) (1 + ((p) & 0x3))
282struct usb_qualifier_descriptor {
283/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
284 __u8 bLength;
285 __u8 bDescriptorType;
286 __le16 bcdUSB;
287 __u8 bDeviceClass;
288/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
289 __u8 bDeviceSubClass;
290 __u8 bDeviceProtocol;
291 __u8 bMaxPacketSize0;
292 __u8 bNumConfigurations;
293/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
294 __u8 bRESERVED;
295} __attribute__ ((packed));
296struct usb_otg_descriptor {
297 __u8 bLength;
298/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
299 __u8 bDescriptorType;
300 __u8 bmAttributes;
301} __attribute__ ((packed));
302#define USB_OTG_SRP (1 << 0)
303/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
304#define USB_OTG_HNP (1 << 1)
305struct usb_debug_descriptor {
306 __u8 bLength;
307 __u8 bDescriptorType;
308/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
309 __u8 bDebugInEndpoint;
310 __u8 bDebugOutEndpoint;
311} __attribute__((packed));
312struct usb_interface_assoc_descriptor {
313/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
314 __u8 bLength;
315 __u8 bDescriptorType;
316 __u8 bFirstInterface;
317 __u8 bInterfaceCount;
318/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
319 __u8 bFunctionClass;
320 __u8 bFunctionSubClass;
321 __u8 bFunctionProtocol;
322 __u8 iFunction;
323/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
324} __attribute__ ((packed));
325struct usb_security_descriptor {
326 __u8 bLength;
327 __u8 bDescriptorType;
328/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
329 __le16 wTotalLength;
330 __u8 bNumEncryptionTypes;
331} __attribute__((packed));
332struct usb_key_descriptor {
333/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
334 __u8 bLength;
335 __u8 bDescriptorType;
336 __u8 tTKID[3];
337 __u8 bReserved;
338/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
339 __u8 bKeyData[0];
340} __attribute__((packed));
341struct usb_encryption_descriptor {
342 __u8 bLength;
343/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
344 __u8 bDescriptorType;
345 __u8 bEncryptionType;
346#define USB_ENC_TYPE_UNSECURE 0
347#define USB_ENC_TYPE_WIRED 1
348/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
349#define USB_ENC_TYPE_CCM_1 2
350#define USB_ENC_TYPE_RSA_1 3
351 __u8 bEncryptionValue;
352 __u8 bAuthKeyIndex;
353/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
354} __attribute__((packed));
355struct usb_bos_descriptor {
356 __u8 bLength;
357 __u8 bDescriptorType;
358/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
359 __le16 wTotalLength;
360 __u8 bNumDeviceCaps;
361} __attribute__((packed));
362#define USB_DT_BOS_SIZE 5
363/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
364struct usb_dev_cap_header {
365 __u8 bLength;
366 __u8 bDescriptorType;
367 __u8 bDevCapabilityType;
368/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
369} __attribute__((packed));
370#define USB_CAP_TYPE_WIRELESS_USB 1
371struct usb_wireless_cap_descriptor {
372 __u8 bLength;
373/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
374 __u8 bDescriptorType;
375 __u8 bDevCapabilityType;
376 __u8 bmAttributes;
377#define USB_WIRELESS_P2P_DRD (1 << 1)
378/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
379#define USB_WIRELESS_BEACON_MASK (3 << 2)
380#define USB_WIRELESS_BEACON_SELF (1 << 2)
381#define USB_WIRELESS_BEACON_DIRECTED (2 << 2)
382#define USB_WIRELESS_BEACON_NONE (3 << 2)
383/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
384 __le16 wPHYRates;
385#define USB_WIRELESS_PHY_53 (1 << 0)
386#define USB_WIRELESS_PHY_80 (1 << 1)
387#define USB_WIRELESS_PHY_107 (1 << 2)
388/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
389#define USB_WIRELESS_PHY_160 (1 << 3)
390#define USB_WIRELESS_PHY_200 (1 << 4)
391#define USB_WIRELESS_PHY_320 (1 << 5)
392#define USB_WIRELESS_PHY_400 (1 << 6)
393/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
394#define USB_WIRELESS_PHY_480 (1 << 7)
395 __u8 bmTFITXPowerInfo;
396 __u8 bmFFITXPowerInfo;
397 __le16 bmBandGroup;
398/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
399 __u8 bReserved;
400} __attribute__((packed));
401#define USB_CAP_TYPE_EXT 2
402struct usb_ext_cap_descriptor {
403/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
404 __u8 bLength;
405 __u8 bDescriptorType;
406 __u8 bDevCapabilityType;
407 __le32 bmAttributes;
408/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
409#define USB_LPM_SUPPORT (1 << 1)
410} __attribute__((packed));
411#define USB_DT_USB_EXT_CAP_SIZE 7
412#define USB_SS_CAP_TYPE 3
413/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
414struct usb_ss_cap_descriptor {
415 __u8 bLength;
416 __u8 bDescriptorType;
417 __u8 bDevCapabilityType;
418/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
419 __u8 bmAttributes;
420#define USB_LTM_SUPPORT (1 << 1)
421 __le16 wSpeedSupported;
422#define USB_LOW_SPEED_OPERATION (1)
423/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
424#define USB_FULL_SPEED_OPERATION (1 << 1)
425#define USB_HIGH_SPEED_OPERATION (1 << 2)
426#define USB_5GBPS_OPERATION (1 << 3)
427 __u8 bFunctionalitySupport;
428/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
429 __u8 bU1devExitLat;
430 __le16 bU2DevExitLat;
431} __attribute__((packed));
432#define USB_DT_USB_SS_CAP_SIZE 10
433/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
434#define CONTAINER_ID_TYPE 4
435struct usb_ss_container_id_descriptor {
436 __u8 bLength;
437 __u8 bDescriptorType;
438/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
439 __u8 bDevCapabilityType;
440 __u8 bReserved;
441 __u8 ContainerID[16];
442} __attribute__((packed));
443/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
444#define USB_DT_USB_SS_CONTN_ID_SIZE 20
445struct usb_wireless_ep_comp_descriptor {
446 __u8 bLength;
447 __u8 bDescriptorType;
448/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
449 __u8 bMaxBurst;
450 __u8 bMaxSequence;
451 __le16 wMaxStreamDelay;
452 __le16 wOverTheAirPacketSize;
453/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
454 __u8 bOverTheAirInterval;
455 __u8 bmCompAttributes;
456#define USB_ENDPOINT_SWITCH_MASK 0x03
457#define USB_ENDPOINT_SWITCH_NO 0
458/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
459#define USB_ENDPOINT_SWITCH_SWITCH 1
460#define USB_ENDPOINT_SWITCH_SCALE 2
461} __attribute__((packed));
462struct usb_handshake {
463/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
464 __u8 bMessageNumber;
465 __u8 bStatus;
466 __u8 tTKID[3];
467 __u8 bReserved;
468/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
469 __u8 CDID[16];
470 __u8 nonce[16];
471 __u8 MIC[8];
472} __attribute__((packed));
473/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
474struct usb_connection_context {
475 __u8 CHID[16];
476 __u8 CDID[16];
477 __u8 CK[16];
478/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
479} __attribute__((packed));
480enum usb_device_speed {
481 USB_SPEED_UNKNOWN = 0,
482 USB_SPEED_LOW, USB_SPEED_FULL,
483/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
484 USB_SPEED_HIGH,
485 USB_SPEED_WIRELESS,
486 USB_SPEED_SUPER,
487};
488/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
489enum usb_device_state {
490 USB_STATE_NOTATTACHED = 0,
491 USB_STATE_ATTACHED,
492 USB_STATE_POWERED,
493/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
494 USB_STATE_RECONNECTING,
495 USB_STATE_UNAUTHENTICATED,
496 USB_STATE_DEFAULT,
497 USB_STATE_ADDRESS,
498/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
499 USB_STATE_CONFIGURED,
500 USB_STATE_SUSPENDED
501};
502#define USB_SELF_POWER_VBUS_MAX_DRAW 100
503/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
504#endif
505