blob: 8b96af9033b7e7ff3198f64bf186d0e06992ff48 [file] [log] [blame]
Ben Cheng655a7c02013-10-16 16:09:24 -07001/****************************************************************************
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 _UAPI__LINUX_USB_CH9_H
20#define _UAPI__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_ISOCH_DELAY 0x31
57#define USB_REQ_SET_ENCRYPTION 0x0D
58/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59#define USB_REQ_GET_ENCRYPTION 0x0E
60#define USB_REQ_RPIPE_ABORT 0x0E
61#define USB_REQ_SET_HANDSHAKE 0x0F
62#define USB_REQ_RPIPE_RESET 0x0F
63/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
64#define USB_REQ_GET_HANDSHAKE 0x10
65#define USB_REQ_SET_CONNECTION 0x11
66#define USB_REQ_SET_SECURITY_DATA 0x12
67#define USB_REQ_GET_SECURITY_DATA 0x13
68/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
69#define USB_REQ_SET_WUSB_DATA 0x14
70#define USB_REQ_LOOPBACK_DATA_WRITE 0x15
71#define USB_REQ_LOOPBACK_DATA_READ 0x16
72#define USB_REQ_SET_INTERFACE_DS 0x17
73/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
74#define USB_DEVICE_SELF_POWERED 0
75#define USB_DEVICE_REMOTE_WAKEUP 1
76#define USB_DEVICE_TEST_MODE 2
77#define USB_DEVICE_BATTERY 2
78/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
79#define USB_DEVICE_B_HNP_ENABLE 3
80#define USB_DEVICE_WUSB_DEVICE 3
81#define USB_DEVICE_A_HNP_SUPPORT 4
82#define USB_DEVICE_A_ALT_HNP_SUPPORT 5
83/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
84#define USB_DEVICE_DEBUG_MODE 6
85#define TEST_J 1
86#define TEST_K 2
87#define TEST_SE0_NAK 3
88/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
89#define TEST_PACKET 4
90#define TEST_FORCE_EN 5
91#define USB_DEVICE_U1_ENABLE 48
92#define USB_DEVICE_U2_ENABLE 49
93/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
94#define USB_DEVICE_LTM_ENABLE 50
95#define USB_INTRF_FUNC_SUSPEND 0
96#define USB_INTR_FUNC_SUSPEND_OPT_MASK 0xFF00
97#define USB_INTRF_FUNC_SUSPEND_LP (1 << (8 + 0))
98/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
99#define USB_INTRF_FUNC_SUSPEND_RW (1 << (8 + 1))
100#define USB_INTRF_STAT_FUNC_RW_CAP 1
101#define USB_INTRF_STAT_FUNC_RW 2
102#define USB_ENDPOINT_HALT 0
103/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
104#define USB_DEV_STAT_U1_ENABLED 2
105#define USB_DEV_STAT_U2_ENABLED 3
106#define USB_DEV_STAT_LTM_ENABLED 4
107struct usb_ctrlrequest {
108/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800109 __u8 bRequestType;
110 __u8 bRequest;
111 __le16 wValue;
112 __le16 wIndex;
Ben Cheng655a7c02013-10-16 16:09:24 -0700113/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800114 __le16 wLength;
115} __attribute__((packed));
Ben Cheng655a7c02013-10-16 16:09:24 -0700116#define USB_DT_DEVICE 0x01
117#define USB_DT_CONFIG 0x02
118/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
119#define USB_DT_STRING 0x03
120#define USB_DT_INTERFACE 0x04
121#define USB_DT_ENDPOINT 0x05
122#define USB_DT_DEVICE_QUALIFIER 0x06
123/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
124#define USB_DT_OTHER_SPEED_CONFIG 0x07
125#define USB_DT_INTERFACE_POWER 0x08
126#define USB_DT_OTG 0x09
127#define USB_DT_DEBUG 0x0a
128/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
129#define USB_DT_INTERFACE_ASSOCIATION 0x0b
130#define USB_DT_SECURITY 0x0c
131#define USB_DT_KEY 0x0d
132#define USB_DT_ENCRYPTION_TYPE 0x0e
133/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
134#define USB_DT_BOS 0x0f
135#define USB_DT_DEVICE_CAPABILITY 0x10
136#define USB_DT_WIRELESS_ENDPOINT_COMP 0x11
137#define USB_DT_WIRE_ADAPTER 0x21
138/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
139#define USB_DT_RPIPE 0x22
140#define USB_DT_CS_RADIO_CONTROL 0x23
141#define USB_DT_PIPE_USAGE 0x24
142#define USB_DT_SS_ENDPOINT_COMP 0x30
143/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
144#define USB_DT_CS_DEVICE (USB_TYPE_CLASS | USB_DT_DEVICE)
145#define USB_DT_CS_CONFIG (USB_TYPE_CLASS | USB_DT_CONFIG)
146#define USB_DT_CS_STRING (USB_TYPE_CLASS | USB_DT_STRING)
147#define USB_DT_CS_INTERFACE (USB_TYPE_CLASS | USB_DT_INTERFACE)
148/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
149#define USB_DT_CS_ENDPOINT (USB_TYPE_CLASS | USB_DT_ENDPOINT)
150struct usb_descriptor_header {
Tao Baod7db5942015-01-28 10:07:51 -0800151 __u8 bLength;
152 __u8 bDescriptorType;
Ben Cheng655a7c02013-10-16 16:09:24 -0700153/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800154} __attribute__((packed));
Ben Cheng655a7c02013-10-16 16:09:24 -0700155struct usb_device_descriptor {
Tao Baod7db5942015-01-28 10:07:51 -0800156 __u8 bLength;
157 __u8 bDescriptorType;
Ben Cheng655a7c02013-10-16 16:09:24 -0700158/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800159 __le16 bcdUSB;
160 __u8 bDeviceClass;
161 __u8 bDeviceSubClass;
162 __u8 bDeviceProtocol;
Ben Cheng655a7c02013-10-16 16:09:24 -0700163/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800164 __u8 bMaxPacketSize0;
165 __le16 idVendor;
166 __le16 idProduct;
167 __le16 bcdDevice;
Ben Cheng655a7c02013-10-16 16:09:24 -0700168/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800169 __u8 iManufacturer;
170 __u8 iProduct;
171 __u8 iSerialNumber;
172 __u8 bNumConfigurations;
Ben Cheng655a7c02013-10-16 16:09:24 -0700173/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800174} __attribute__((packed));
Ben Cheng655a7c02013-10-16 16:09:24 -0700175#define USB_DT_DEVICE_SIZE 18
176#define USB_CLASS_PER_INTERFACE 0
177#define USB_CLASS_AUDIO 1
178/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
179#define USB_CLASS_COMM 2
180#define USB_CLASS_HID 3
181#define USB_CLASS_PHYSICAL 5
182#define USB_CLASS_STILL_IMAGE 6
183/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
184#define USB_CLASS_PRINTER 7
185#define USB_CLASS_MASS_STORAGE 8
186#define USB_CLASS_HUB 9
187#define USB_CLASS_CDC_DATA 0x0a
188/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
189#define USB_CLASS_CSCID 0x0b
190#define USB_CLASS_CONTENT_SEC 0x0d
191#define USB_CLASS_VIDEO 0x0e
192#define USB_CLASS_WIRELESS_CONTROLLER 0xe0
193/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
194#define USB_CLASS_MISC 0xef
195#define USB_CLASS_APP_SPEC 0xfe
196#define USB_CLASS_VENDOR_SPEC 0xff
197#define USB_SUBCLASS_VENDOR_SPEC 0xff
198/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
199struct usb_config_descriptor {
Tao Baod7db5942015-01-28 10:07:51 -0800200 __u8 bLength;
201 __u8 bDescriptorType;
202 __le16 wTotalLength;
Ben Cheng655a7c02013-10-16 16:09:24 -0700203/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800204 __u8 bNumInterfaces;
205 __u8 bConfigurationValue;
206 __u8 iConfiguration;
207 __u8 bmAttributes;
Ben Cheng655a7c02013-10-16 16:09:24 -0700208/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800209 __u8 bMaxPower;
210} __attribute__((packed));
Ben Cheng655a7c02013-10-16 16:09:24 -0700211#define USB_DT_CONFIG_SIZE 9
212#define USB_CONFIG_ATT_ONE (1 << 7)
213/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
214#define USB_CONFIG_ATT_SELFPOWER (1 << 6)
215#define USB_CONFIG_ATT_WAKEUP (1 << 5)
216#define USB_CONFIG_ATT_BATTERY (1 << 4)
217struct usb_string_descriptor {
218/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800219 __u8 bLength;
220 __u8 bDescriptorType;
221 __le16 wData[1];
222} __attribute__((packed));
Ben Cheng655a7c02013-10-16 16:09:24 -0700223/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
224struct usb_interface_descriptor {
Tao Baod7db5942015-01-28 10:07:51 -0800225 __u8 bLength;
226 __u8 bDescriptorType;
227 __u8 bInterfaceNumber;
Ben Cheng655a7c02013-10-16 16:09:24 -0700228/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800229 __u8 bAlternateSetting;
230 __u8 bNumEndpoints;
231 __u8 bInterfaceClass;
232 __u8 bInterfaceSubClass;
Ben Cheng655a7c02013-10-16 16:09:24 -0700233/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800234 __u8 bInterfaceProtocol;
235 __u8 iInterface;
236} __attribute__((packed));
Ben Cheng655a7c02013-10-16 16:09:24 -0700237#define USB_DT_INTERFACE_SIZE 9
238/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
239struct usb_endpoint_descriptor {
Tao Baod7db5942015-01-28 10:07:51 -0800240 __u8 bLength;
241 __u8 bDescriptorType;
242 __u8 bEndpointAddress;
Ben Cheng655a7c02013-10-16 16:09:24 -0700243/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800244 __u8 bmAttributes;
245 __le16 wMaxPacketSize;
246 __u8 bInterval;
247 __u8 bRefresh;
Ben Cheng655a7c02013-10-16 16:09:24 -0700248/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800249 __u8 bSynchAddress;
250} __attribute__((packed));
Ben Cheng655a7c02013-10-16 16:09:24 -0700251#define USB_DT_ENDPOINT_SIZE 7
252#define USB_DT_ENDPOINT_AUDIO_SIZE 9
253/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
254#define USB_ENDPOINT_NUMBER_MASK 0x0f
255#define USB_ENDPOINT_DIR_MASK 0x80
256#define USB_ENDPOINT_XFERTYPE_MASK 0x03
257#define USB_ENDPOINT_XFER_CONTROL 0
258/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
259#define USB_ENDPOINT_XFER_ISOC 1
260#define USB_ENDPOINT_XFER_BULK 2
261#define USB_ENDPOINT_XFER_INT 3
262#define USB_ENDPOINT_MAX_ADJUSTABLE 0x80
263/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
264#define USB_ENDPOINT_INTRTYPE 0x30
265#define USB_ENDPOINT_INTR_PERIODIC (0 << 4)
266#define USB_ENDPOINT_INTR_NOTIFICATION (1 << 4)
267#define USB_ENDPOINT_SYNCTYPE 0x0c
268/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
269#define USB_ENDPOINT_SYNC_NONE (0 << 2)
270#define USB_ENDPOINT_SYNC_ASYNC (1 << 2)
271#define USB_ENDPOINT_SYNC_ADAPTIVE (2 << 2)
272#define USB_ENDPOINT_SYNC_SYNC (3 << 2)
273/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
274#define USB_ENDPOINT_USAGE_MASK 0x30
275#define USB_ENDPOINT_USAGE_DATA 0x00
276#define USB_ENDPOINT_USAGE_FEEDBACK 0x10
277#define USB_ENDPOINT_USAGE_IMPLICIT_FB 0x20
278/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
279struct usb_ss_ep_comp_descriptor {
Tao Baod7db5942015-01-28 10:07:51 -0800280 __u8 bLength;
281 __u8 bDescriptorType;
282 __u8 bMaxBurst;
Ben Cheng655a7c02013-10-16 16:09:24 -0700283/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800284 __u8 bmAttributes;
285 __le16 wBytesPerInterval;
286} __attribute__((packed));
Ben Cheng655a7c02013-10-16 16:09:24 -0700287#define USB_DT_SS_EP_COMP_SIZE 6
288/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
289#define USB_SS_MULT(p) (1 + ((p) & 0x3))
290struct usb_qualifier_descriptor {
Tao Baod7db5942015-01-28 10:07:51 -0800291 __u8 bLength;
292 __u8 bDescriptorType;
Ben Cheng655a7c02013-10-16 16:09:24 -0700293/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800294 __le16 bcdUSB;
295 __u8 bDeviceClass;
296 __u8 bDeviceSubClass;
297 __u8 bDeviceProtocol;
Ben Cheng655a7c02013-10-16 16:09:24 -0700298/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800299 __u8 bMaxPacketSize0;
300 __u8 bNumConfigurations;
301 __u8 bRESERVED;
302} __attribute__((packed));
Ben Cheng655a7c02013-10-16 16:09:24 -0700303/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
304struct usb_otg_descriptor {
Tao Baod7db5942015-01-28 10:07:51 -0800305 __u8 bLength;
306 __u8 bDescriptorType;
307 __u8 bmAttributes;
Ben Cheng655a7c02013-10-16 16:09:24 -0700308/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800309} __attribute__((packed));
Christopher Ferris05d08e92016-02-04 13:16:38 -0800310struct usb_otg20_descriptor {
Tao Baod7db5942015-01-28 10:07:51 -0800311 __u8 bLength;
312 __u8 bDescriptorType;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800313/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
314 __u8 bmAttributes;
315 __le16 bcdOTG;
316} __attribute__((packed));
317#define USB_OTG_SRP (1 << 0)
318/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
319#define USB_OTG_HNP (1 << 1)
320#define USB_OTG_ADP (1 << 2)
321struct usb_debug_descriptor {
322 __u8 bLength;
323/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
324 __u8 bDescriptorType;
Tao Baod7db5942015-01-28 10:07:51 -0800325 __u8 bDebugInEndpoint;
326 __u8 bDebugOutEndpoint;
Ben Cheng655a7c02013-10-16 16:09:24 -0700327} __attribute__((packed));
Christopher Ferris05d08e92016-02-04 13:16:38 -0800328/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700329struct usb_interface_assoc_descriptor {
Tao Baod7db5942015-01-28 10:07:51 -0800330 __u8 bLength;
331 __u8 bDescriptorType;
Tao Baod7db5942015-01-28 10:07:51 -0800332 __u8 bFirstInterface;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800333/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800334 __u8 bInterfaceCount;
335 __u8 bFunctionClass;
336 __u8 bFunctionSubClass;
Tao Baod7db5942015-01-28 10:07:51 -0800337 __u8 bFunctionProtocol;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800338/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800339 __u8 iFunction;
340} __attribute__((packed));
Ben Cheng655a7c02013-10-16 16:09:24 -0700341struct usb_security_descriptor {
Tao Baod7db5942015-01-28 10:07:51 -0800342 __u8 bLength;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800343/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800344 __u8 bDescriptorType;
345 __le16 wTotalLength;
346 __u8 bNumEncryptionTypes;
Ben Cheng655a7c02013-10-16 16:09:24 -0700347} __attribute__((packed));
Christopher Ferris05d08e92016-02-04 13:16:38 -0800348/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700349struct usb_key_descriptor {
Tao Baod7db5942015-01-28 10:07:51 -0800350 __u8 bLength;
351 __u8 bDescriptorType;
Tao Baod7db5942015-01-28 10:07:51 -0800352 __u8 tTKID[3];
Christopher Ferris05d08e92016-02-04 13:16:38 -0800353/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800354 __u8 bReserved;
355 __u8 bKeyData[0];
Ben Cheng655a7c02013-10-16 16:09:24 -0700356} __attribute__((packed));
Ben Cheng655a7c02013-10-16 16:09:24 -0700357struct usb_encryption_descriptor {
Christopher Ferris05d08e92016-02-04 13:16:38 -0800358/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800359 __u8 bLength;
360 __u8 bDescriptorType;
361 __u8 bEncryptionType;
Ben Cheng655a7c02013-10-16 16:09:24 -0700362#define USB_ENC_TYPE_UNSECURE 0
Christopher Ferris05d08e92016-02-04 13:16:38 -0800363/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700364#define USB_ENC_TYPE_WIRED 1
365#define USB_ENC_TYPE_CCM_1 2
366#define USB_ENC_TYPE_RSA_1 3
Tao Baod7db5942015-01-28 10:07:51 -0800367 __u8 bEncryptionValue;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800368/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800369 __u8 bAuthKeyIndex;
Ben Cheng655a7c02013-10-16 16:09:24 -0700370} __attribute__((packed));
371struct usb_bos_descriptor {
Tao Baod7db5942015-01-28 10:07:51 -0800372 __u8 bLength;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800373/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800374 __u8 bDescriptorType;
375 __le16 wTotalLength;
376 __u8 bNumDeviceCaps;
Ben Cheng655a7c02013-10-16 16:09:24 -0700377} __attribute__((packed));
Christopher Ferris05d08e92016-02-04 13:16:38 -0800378/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700379#define USB_DT_BOS_SIZE 5
380struct usb_dev_cap_header {
Tao Baod7db5942015-01-28 10:07:51 -0800381 __u8 bLength;
Tao Baod7db5942015-01-28 10:07:51 -0800382 __u8 bDescriptorType;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800383/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800384 __u8 bDevCapabilityType;
Ben Cheng655a7c02013-10-16 16:09:24 -0700385} __attribute__((packed));
386#define USB_CAP_TYPE_WIRELESS_USB 1
Ben Cheng655a7c02013-10-16 16:09:24 -0700387struct usb_wireless_cap_descriptor {
Christopher Ferris05d08e92016-02-04 13:16:38 -0800388/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800389 __u8 bLength;
390 __u8 bDescriptorType;
391 __u8 bDevCapabilityType;
Tao Baod7db5942015-01-28 10:07:51 -0800392 __u8 bmAttributes;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800393/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700394#define USB_WIRELESS_P2P_DRD (1 << 1)
395#define USB_WIRELESS_BEACON_MASK (3 << 2)
396#define USB_WIRELESS_BEACON_SELF (1 << 2)
Ben Cheng655a7c02013-10-16 16:09:24 -0700397#define USB_WIRELESS_BEACON_DIRECTED (2 << 2)
Christopher Ferris05d08e92016-02-04 13:16:38 -0800398/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700399#define USB_WIRELESS_BEACON_NONE (3 << 2)
Tao Baod7db5942015-01-28 10:07:51 -0800400 __le16 wPHYRates;
Ben Cheng655a7c02013-10-16 16:09:24 -0700401#define USB_WIRELESS_PHY_53 (1 << 0)
Ben Cheng655a7c02013-10-16 16:09:24 -0700402#define USB_WIRELESS_PHY_80 (1 << 1)
Christopher Ferris05d08e92016-02-04 13:16:38 -0800403/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700404#define USB_WIRELESS_PHY_107 (1 << 2)
405#define USB_WIRELESS_PHY_160 (1 << 3)
406#define USB_WIRELESS_PHY_200 (1 << 4)
Ben Cheng655a7c02013-10-16 16:09:24 -0700407#define USB_WIRELESS_PHY_320 (1 << 5)
Christopher Ferris05d08e92016-02-04 13:16:38 -0800408/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700409#define USB_WIRELESS_PHY_400 (1 << 6)
410#define USB_WIRELESS_PHY_480 (1 << 7)
Tao Baod7db5942015-01-28 10:07:51 -0800411 __u8 bmTFITXPowerInfo;
Tao Baod7db5942015-01-28 10:07:51 -0800412 __u8 bmFFITXPowerInfo;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800413/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800414 __le16 bmBandGroup;
415 __u8 bReserved;
Ben Cheng655a7c02013-10-16 16:09:24 -0700416} __attribute__((packed));
Ben Cheng655a7c02013-10-16 16:09:24 -0700417#define USB_CAP_TYPE_EXT 2
Christopher Ferris05d08e92016-02-04 13:16:38 -0800418/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700419struct usb_ext_cap_descriptor {
Tao Baod7db5942015-01-28 10:07:51 -0800420 __u8 bLength;
421 __u8 bDescriptorType;
Tao Baod7db5942015-01-28 10:07:51 -0800422 __u8 bDevCapabilityType;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800423/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800424 __le32 bmAttributes;
Ben Cheng655a7c02013-10-16 16:09:24 -0700425#define USB_LPM_SUPPORT (1 << 1)
426#define USB_BESL_SUPPORT (1 << 2)
Ben Cheng655a7c02013-10-16 16:09:24 -0700427#define USB_BESL_BASELINE_VALID (1 << 3)
Christopher Ferris05d08e92016-02-04 13:16:38 -0800428/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700429#define USB_BESL_DEEP_VALID (1 << 4)
430#define USB_GET_BESL_BASELINE(p) (((p) & (0xf << 8)) >> 8)
431#define USB_GET_BESL_DEEP(p) (((p) & (0xf << 12)) >> 12)
Ben Cheng655a7c02013-10-16 16:09:24 -0700432} __attribute__((packed));
Christopher Ferris05d08e92016-02-04 13:16:38 -0800433/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700434#define USB_DT_USB_EXT_CAP_SIZE 7
435#define USB_SS_CAP_TYPE 3
436struct usb_ss_cap_descriptor {
Tao Baod7db5942015-01-28 10:07:51 -0800437 __u8 bLength;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800438/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800439 __u8 bDescriptorType;
440 __u8 bDevCapabilityType;
441 __u8 bmAttributes;
Ben Cheng655a7c02013-10-16 16:09:24 -0700442#define USB_LTM_SUPPORT (1 << 1)
Christopher Ferris05d08e92016-02-04 13:16:38 -0800443/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800444 __le16 wSpeedSupported;
Ben Cheng655a7c02013-10-16 16:09:24 -0700445#define USB_LOW_SPEED_OPERATION (1)
446#define USB_FULL_SPEED_OPERATION (1 << 1)
Ben Cheng655a7c02013-10-16 16:09:24 -0700447#define USB_HIGH_SPEED_OPERATION (1 << 2)
Christopher Ferris05d08e92016-02-04 13:16:38 -0800448/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700449#define USB_5GBPS_OPERATION (1 << 3)
Tao Baod7db5942015-01-28 10:07:51 -0800450 __u8 bFunctionalitySupport;
451 __u8 bU1devExitLat;
Tao Baod7db5942015-01-28 10:07:51 -0800452 __le16 bU2DevExitLat;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800453/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700454} __attribute__((packed));
455#define USB_DT_USB_SS_CAP_SIZE 10
456#define CONTAINER_ID_TYPE 4
Ben Cheng655a7c02013-10-16 16:09:24 -0700457struct usb_ss_container_id_descriptor {
Christopher Ferris05d08e92016-02-04 13:16:38 -0800458/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
459 __u8 bLength;
460 __u8 bDescriptorType;
461 __u8 bDevCapabilityType;
462 __u8 bReserved;
463/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
464 __u8 ContainerID[16];
465} __attribute__((packed));
466#define USB_DT_USB_SS_CONTN_ID_SIZE 20
467#define USB_SSP_CAP_TYPE 0xa
468/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
469struct usb_ssp_cap_descriptor {
Tao Baod7db5942015-01-28 10:07:51 -0800470 __u8 bLength;
471 __u8 bDescriptorType;
472 __u8 bDevCapabilityType;
Ben Cheng655a7c02013-10-16 16:09:24 -0700473/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800474 __u8 bReserved;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800475 __le32 bmAttributes;
476#define USB_SSP_SUBLINK_SPEED_ATTRIBS (0x1f << 0)
477#define USB_SSP_SUBLINK_SPEED_IDS (0xf << 5)
Ben Cheng655a7c02013-10-16 16:09:24 -0700478/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800479 __u16 wFunctionalitySupport;
480#define USB_SSP_MIN_SUBLINK_SPEED_ATTRIBUTE_ID (0xf)
481#define USB_SSP_MIN_RX_LANE_COUNT (0xf << 8)
482#define USB_SSP_MIN_TX_LANE_COUNT (0xf << 12)
483/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
484 __le16 wReserved;
485 __le32 bmSublinkSpeedAttr[1];
486#define USB_SSP_SUBLINK_SPEED_SSID (0xf)
487#define USB_SSP_SUBLINK_SPEED_LSE (0x3 << 4)
488/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
489#define USB_SSP_SUBLINK_SPEED_ST (0x3 << 6)
490#define USB_SSP_SUBLINK_SPEED_RSVD (0x3f << 8)
491#define USB_SSP_SUBLINK_SPEED_LP (0x3 << 14)
492#define USB_SSP_SUBLINK_SPEED_LSM (0xff << 16)
493/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
494} __attribute__((packed));
Ben Cheng655a7c02013-10-16 16:09:24 -0700495struct usb_wireless_ep_comp_descriptor {
Tao Baod7db5942015-01-28 10:07:51 -0800496 __u8 bLength;
497 __u8 bDescriptorType;
Ben Cheng655a7c02013-10-16 16:09:24 -0700498/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800499 __u8 bMaxBurst;
Tao Baod7db5942015-01-28 10:07:51 -0800500 __u8 bMaxSequence;
501 __le16 wMaxStreamDelay;
502 __le16 wOverTheAirPacketSize;
Ben Cheng655a7c02013-10-16 16:09:24 -0700503/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800504 __u8 bOverTheAirInterval;
Tao Baod7db5942015-01-28 10:07:51 -0800505 __u8 bmCompAttributes;
Ben Cheng655a7c02013-10-16 16:09:24 -0700506#define USB_ENDPOINT_SWITCH_MASK 0x03
507#define USB_ENDPOINT_SWITCH_NO 0
Ben Cheng655a7c02013-10-16 16:09:24 -0700508/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800509#define USB_ENDPOINT_SWITCH_SWITCH 1
Ben Cheng655a7c02013-10-16 16:09:24 -0700510#define USB_ENDPOINT_SWITCH_SCALE 2
511} __attribute__((packed));
512struct usb_handshake {
Ben Cheng655a7c02013-10-16 16:09:24 -0700513/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800514 __u8 bMessageNumber;
Tao Baod7db5942015-01-28 10:07:51 -0800515 __u8 bStatus;
516 __u8 tTKID[3];
517 __u8 bReserved;
Ben Cheng655a7c02013-10-16 16:09:24 -0700518/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800519 __u8 CDID[16];
Tao Baod7db5942015-01-28 10:07:51 -0800520 __u8 nonce[16];
521 __u8 MIC[8];
Ben Cheng655a7c02013-10-16 16:09:24 -0700522} __attribute__((packed));
Ben Cheng655a7c02013-10-16 16:09:24 -0700523/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800524struct usb_connection_context {
Tao Baod7db5942015-01-28 10:07:51 -0800525 __u8 CHID[16];
526 __u8 CDID[16];
527 __u8 CK[16];
Ben Cheng655a7c02013-10-16 16:09:24 -0700528/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800529} __attribute__((packed));
Ben Cheng655a7c02013-10-16 16:09:24 -0700530enum usb_device_speed {
Tao Baod7db5942015-01-28 10:07:51 -0800531 USB_SPEED_UNKNOWN = 0,
532 USB_SPEED_LOW,
Ben Cheng655a7c02013-10-16 16:09:24 -0700533/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800534 USB_SPEED_FULL,
Tao Baod7db5942015-01-28 10:07:51 -0800535 USB_SPEED_HIGH,
536 USB_SPEED_WIRELESS,
537 USB_SPEED_SUPER,
Tao Baod7db5942015-01-28 10:07:51 -0800538/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800539};
Ben Cheng655a7c02013-10-16 16:09:24 -0700540enum usb_device_state {
Tao Baod7db5942015-01-28 10:07:51 -0800541 USB_STATE_NOTATTACHED = 0,
542 USB_STATE_ATTACHED,
Ben Cheng655a7c02013-10-16 16:09:24 -0700543/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800544 USB_STATE_POWERED,
Tao Baod7db5942015-01-28 10:07:51 -0800545 USB_STATE_RECONNECTING,
546 USB_STATE_UNAUTHENTICATED,
547 USB_STATE_DEFAULT,
Ben Cheng655a7c02013-10-16 16:09:24 -0700548/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800549 USB_STATE_ADDRESS,
Tao Baod7db5942015-01-28 10:07:51 -0800550 USB_STATE_CONFIGURED,
551 USB_STATE_SUSPENDED
Ben Cheng655a7c02013-10-16 16:09:24 -0700552};
Ben Cheng655a7c02013-10-16 16:09:24 -0700553/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800554enum usb3_link_state {
Tao Baod7db5942015-01-28 10:07:51 -0800555 USB3_LPM_U0 = 0,
556 USB3_LPM_U1,
557 USB3_LPM_U2,
Tao Baod7db5942015-01-28 10:07:51 -0800558/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800559 USB3_LPM_U3
Ben Cheng655a7c02013-10-16 16:09:24 -0700560};
Ben Cheng655a7c02013-10-16 16:09:24 -0700561#define USB3_LPM_DISABLED 0x0
562#define USB3_LPM_U1_MAX_TIMEOUT 0x7F
Tao Baod7db5942015-01-28 10:07:51 -0800563/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800564#define USB3_LPM_U2_MAX_TIMEOUT 0xFE
Ben Cheng655a7c02013-10-16 16:09:24 -0700565#define USB3_LPM_DEVICE_INITIATED 0xFF
Ben Cheng655a7c02013-10-16 16:09:24 -0700566struct usb_set_sel_req {
Tao Baod7db5942015-01-28 10:07:51 -0800567 __u8 u1_sel;
Ben Cheng655a7c02013-10-16 16:09:24 -0700568/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800569 __u8 u1_pel;
Tao Baod7db5942015-01-28 10:07:51 -0800570 __le16 u2_sel;
571 __le16 u2_pel;
572} __attribute__((packed));
Ben Cheng655a7c02013-10-16 16:09:24 -0700573/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800574#define USB3_LPM_MAX_U1_SEL_PEL 0xFF
Tao Baod7db5942015-01-28 10:07:51 -0800575#define USB3_LPM_MAX_U2_SEL_PEL 0xFFFF
Ben Cheng655a7c02013-10-16 16:09:24 -0700576#define USB_SELF_POWER_VBUS_MAX_DRAW 100
577#endif
Christopher Ferris05d08e92016-02-04 13:16:38 -0800578/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */