blob: 836b6169a75bf714d0e770fbe9e66c82457bf12a [file] [log] [blame]
Elliott Hughes180edef2023-11-02 00:08:05 +00001/*
2 * This file is auto-generated. Modifications will be lost.
3 *
4 * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/
5 * for more information.
6 */
Christopher Ferris05d08e92016-02-04 13:16:38 -08007#ifndef __UAPI_LINUX_USB_CDC_H
8#define __UAPI_LINUX_USB_CDC_H
Ben Cheng655a7c02013-10-16 16:09:24 -07009#include <linux/types.h>
10#define USB_CDC_SUBCLASS_ACM 0x02
Ben Cheng655a7c02013-10-16 16:09:24 -070011#define USB_CDC_SUBCLASS_ETHERNET 0x06
12#define USB_CDC_SUBCLASS_WHCM 0x08
13#define USB_CDC_SUBCLASS_DMM 0x09
14#define USB_CDC_SUBCLASS_MDLM 0x0a
Ben Cheng655a7c02013-10-16 16:09:24 -070015#define USB_CDC_SUBCLASS_OBEX 0x0b
16#define USB_CDC_SUBCLASS_EEM 0x0c
17#define USB_CDC_SUBCLASS_NCM 0x0d
18#define USB_CDC_SUBCLASS_MBIM 0x0e
Ben Cheng655a7c02013-10-16 16:09:24 -070019#define USB_CDC_PROTO_NONE 0
20#define USB_CDC_ACM_PROTO_AT_V25TER 1
21#define USB_CDC_ACM_PROTO_AT_PCCA101 2
22#define USB_CDC_ACM_PROTO_AT_PCCA101_WAKE 3
Ben Cheng655a7c02013-10-16 16:09:24 -070023#define USB_CDC_ACM_PROTO_AT_GSM 4
24#define USB_CDC_ACM_PROTO_AT_3G 5
25#define USB_CDC_ACM_PROTO_AT_CDMA 6
26#define USB_CDC_ACM_PROTO_VENDOR 0xff
Ben Cheng655a7c02013-10-16 16:09:24 -070027#define USB_CDC_PROTO_EEM 7
28#define USB_CDC_NCM_PROTO_NTB 1
29#define USB_CDC_MBIM_PROTO_NTB 2
30#define USB_CDC_HEADER_TYPE 0x00
Ben Cheng655a7c02013-10-16 16:09:24 -070031#define USB_CDC_CALL_MANAGEMENT_TYPE 0x01
32#define USB_CDC_ACM_TYPE 0x02
33#define USB_CDC_UNION_TYPE 0x06
34#define USB_CDC_COUNTRY_TYPE 0x07
Ben Cheng655a7c02013-10-16 16:09:24 -070035#define USB_CDC_NETWORK_TERMINAL_TYPE 0x0a
36#define USB_CDC_ETHERNET_TYPE 0x0f
37#define USB_CDC_WHCM_TYPE 0x11
38#define USB_CDC_MDLM_TYPE 0x12
Ben Cheng655a7c02013-10-16 16:09:24 -070039#define USB_CDC_MDLM_DETAIL_TYPE 0x13
40#define USB_CDC_DMM_TYPE 0x14
41#define USB_CDC_OBEX_TYPE 0x15
42#define USB_CDC_NCM_TYPE 0x1a
Ben Cheng655a7c02013-10-16 16:09:24 -070043#define USB_CDC_MBIM_TYPE 0x1b
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070044#define USB_CDC_MBIM_EXTENDED_TYPE 0x1c
Ben Cheng655a7c02013-10-16 16:09:24 -070045struct usb_cdc_header_desc {
Tao Baod7db5942015-01-28 10:07:51 -080046 __u8 bLength;
Tao Baod7db5942015-01-28 10:07:51 -080047 __u8 bDescriptorType;
48 __u8 bDescriptorSubType;
49 __le16 bcdCDC;
50} __attribute__((packed));
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070051struct usb_cdc_call_mgmt_descriptor {
Tao Baod7db5942015-01-28 10:07:51 -080052 __u8 bLength;
53 __u8 bDescriptorType;
54 __u8 bDescriptorSubType;
Tao Baod7db5942015-01-28 10:07:51 -080055 __u8 bmCapabilities;
Ben Cheng655a7c02013-10-16 16:09:24 -070056#define USB_CDC_CALL_MGMT_CAP_CALL_MGMT 0x01
57#define USB_CDC_CALL_MGMT_CAP_DATA_INTF 0x02
Tao Baod7db5942015-01-28 10:07:51 -080058 __u8 bDataInterface;
Tao Baod7db5942015-01-28 10:07:51 -080059} __attribute__((packed));
Ben Cheng655a7c02013-10-16 16:09:24 -070060struct usb_cdc_acm_descriptor {
Tao Baod7db5942015-01-28 10:07:51 -080061 __u8 bLength;
62 __u8 bDescriptorType;
Tao Baod7db5942015-01-28 10:07:51 -080063 __u8 bDescriptorSubType;
64 __u8 bmCapabilities;
65} __attribute__((packed));
Ben Cheng655a7c02013-10-16 16:09:24 -070066#define USB_CDC_COMM_FEATURE 0x01
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070067#define USB_CDC_CAP_LINE 0x02
Ben Cheng655a7c02013-10-16 16:09:24 -070068#define USB_CDC_CAP_BRK 0x04
69#define USB_CDC_CAP_NOTIFY 0x08
70struct usb_cdc_union_desc {
Tao Baod7db5942015-01-28 10:07:51 -080071 __u8 bLength;
72 __u8 bDescriptorType;
73 __u8 bDescriptorSubType;
74 __u8 bMasterInterface0;
Tao Baod7db5942015-01-28 10:07:51 -080075 __u8 bSlaveInterface0;
76} __attribute__((packed));
Ben Cheng655a7c02013-10-16 16:09:24 -070077struct usb_cdc_country_functional_desc {
Tao Baod7db5942015-01-28 10:07:51 -080078 __u8 bLength;
Tao Baod7db5942015-01-28 10:07:51 -080079 __u8 bDescriptorType;
80 __u8 bDescriptorSubType;
81 __u8 iCountryCodeRelDate;
82 __le16 wCountyCode0;
Tao Baod7db5942015-01-28 10:07:51 -080083} __attribute__((packed));
Ben Cheng655a7c02013-10-16 16:09:24 -070084struct usb_cdc_network_terminal_desc {
Tao Baod7db5942015-01-28 10:07:51 -080085 __u8 bLength;
86 __u8 bDescriptorType;
Tao Baod7db5942015-01-28 10:07:51 -080087 __u8 bDescriptorSubType;
88 __u8 bEntityId;
89 __u8 iName;
90 __u8 bChannelIndex;
Tao Baod7db5942015-01-28 10:07:51 -080091 __u8 bPhysicalInterface;
92} __attribute__((packed));
Ben Cheng655a7c02013-10-16 16:09:24 -070093struct usb_cdc_ether_desc {
Tao Baod7db5942015-01-28 10:07:51 -080094 __u8 bLength;
Tao Baod7db5942015-01-28 10:07:51 -080095 __u8 bDescriptorType;
96 __u8 bDescriptorSubType;
97 __u8 iMACAddress;
98 __le32 bmEthernetStatistics;
Tao Baod7db5942015-01-28 10:07:51 -080099 __le16 wMaxSegmentSize;
100 __le16 wNumberMCFilters;
101 __u8 bNumberPowerFilters;
102} __attribute__((packed));
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700103struct usb_cdc_dmm_desc {
Tao Baod7db5942015-01-28 10:07:51 -0800104 __u8 bFunctionLength;
105 __u8 bDescriptorType;
106 __u8 bDescriptorSubtype;
Tao Baod7db5942015-01-28 10:07:51 -0800107 __u16 bcdVersion;
108 __le16 wMaxCommand;
109} __attribute__((packed));
Ben Cheng655a7c02013-10-16 16:09:24 -0700110struct usb_cdc_mdlm_desc {
Tao Baod7db5942015-01-28 10:07:51 -0800111 __u8 bLength;
112 __u8 bDescriptorType;
113 __u8 bDescriptorSubType;
114 __le16 bcdVersion;
Tao Baod7db5942015-01-28 10:07:51 -0800115 __u8 bGUID[16];
116} __attribute__((packed));
Ben Cheng655a7c02013-10-16 16:09:24 -0700117struct usb_cdc_mdlm_detail_desc {
Tao Baod7db5942015-01-28 10:07:51 -0800118 __u8 bLength;
Tao Baod7db5942015-01-28 10:07:51 -0800119 __u8 bDescriptorType;
120 __u8 bDescriptorSubType;
121 __u8 bGuidDescriptorType;
Christopher Ferris7447a1c2022-10-04 18:24:44 -0700122 __u8 bDetailData[];
Tao Baod7db5942015-01-28 10:07:51 -0800123} __attribute__((packed));
Ben Cheng655a7c02013-10-16 16:09:24 -0700124struct usb_cdc_obex_desc {
Tao Baod7db5942015-01-28 10:07:51 -0800125 __u8 bLength;
126 __u8 bDescriptorType;
Tao Baod7db5942015-01-28 10:07:51 -0800127 __u8 bDescriptorSubType;
128 __le16 bcdVersion;
129} __attribute__((packed));
Ben Cheng655a7c02013-10-16 16:09:24 -0700130struct usb_cdc_ncm_desc {
Tao Baod7db5942015-01-28 10:07:51 -0800131 __u8 bLength;
132 __u8 bDescriptorType;
133 __u8 bDescriptorSubType;
134 __le16 bcdNcmVersion;
Tao Baod7db5942015-01-28 10:07:51 -0800135 __u8 bmNetworkCapabilities;
136} __attribute__((packed));
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700137struct usb_cdc_mbim_desc {
Tao Baod7db5942015-01-28 10:07:51 -0800138 __u8 bLength;
Tao Baod7db5942015-01-28 10:07:51 -0800139 __u8 bDescriptorType;
140 __u8 bDescriptorSubType;
141 __le16 bcdMBIMVersion;
142 __le16 wMaxControlMessage;
Tao Baod7db5942015-01-28 10:07:51 -0800143 __u8 bNumberFilters;
144 __u8 bMaxFilterSize;
145 __le16 wMaxSegmentSize;
146 __u8 bmNetworkCapabilities;
Tao Baod7db5942015-01-28 10:07:51 -0800147} __attribute__((packed));
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700148struct usb_cdc_mbim_extended_desc {
Tao Baod7db5942015-01-28 10:07:51 -0800149 __u8 bLength;
150 __u8 bDescriptorType;
Tao Baod7db5942015-01-28 10:07:51 -0800151 __u8 bDescriptorSubType;
152 __le16 bcdMBIMExtendedVersion;
153 __u8 bMaxOutstandingCommandMessages;
154 __le16 wMTU;
Tao Baod7db5942015-01-28 10:07:51 -0800155} __attribute__((packed));
Ben Cheng655a7c02013-10-16 16:09:24 -0700156#define USB_CDC_SEND_ENCAPSULATED_COMMAND 0x00
157#define USB_CDC_GET_ENCAPSULATED_RESPONSE 0x01
158#define USB_CDC_REQ_SET_LINE_CODING 0x20
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700159#define USB_CDC_REQ_GET_LINE_CODING 0x21
Ben Cheng655a7c02013-10-16 16:09:24 -0700160#define USB_CDC_REQ_SET_CONTROL_LINE_STATE 0x22
161#define USB_CDC_REQ_SEND_BREAK 0x23
162#define USB_CDC_SET_ETHERNET_MULTICAST_FILTERS 0x40
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700163#define USB_CDC_SET_ETHERNET_PM_PATTERN_FILTER 0x41
Ben Cheng655a7c02013-10-16 16:09:24 -0700164#define USB_CDC_GET_ETHERNET_PM_PATTERN_FILTER 0x42
165#define USB_CDC_SET_ETHERNET_PACKET_FILTER 0x43
166#define USB_CDC_GET_ETHERNET_STATISTIC 0x44
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700167#define USB_CDC_GET_NTB_PARAMETERS 0x80
Ben Cheng655a7c02013-10-16 16:09:24 -0700168#define USB_CDC_GET_NET_ADDRESS 0x81
169#define USB_CDC_SET_NET_ADDRESS 0x82
170#define USB_CDC_GET_NTB_FORMAT 0x83
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700171#define USB_CDC_SET_NTB_FORMAT 0x84
Ben Cheng655a7c02013-10-16 16:09:24 -0700172#define USB_CDC_GET_NTB_INPUT_SIZE 0x85
173#define USB_CDC_SET_NTB_INPUT_SIZE 0x86
174#define USB_CDC_GET_MAX_DATAGRAM_SIZE 0x87
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700175#define USB_CDC_SET_MAX_DATAGRAM_SIZE 0x88
Ben Cheng655a7c02013-10-16 16:09:24 -0700176#define USB_CDC_GET_CRC_MODE 0x89
177#define USB_CDC_SET_CRC_MODE 0x8a
178struct usb_cdc_line_coding {
Tao Baod7db5942015-01-28 10:07:51 -0800179 __le32 dwDTERate;
180 __u8 bCharFormat;
Ben Cheng655a7c02013-10-16 16:09:24 -0700181#define USB_CDC_1_STOP_BITS 0
182#define USB_CDC_1_5_STOP_BITS 1
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700183#define USB_CDC_2_STOP_BITS 2
Tao Baod7db5942015-01-28 10:07:51 -0800184 __u8 bParityType;
Ben Cheng655a7c02013-10-16 16:09:24 -0700185#define USB_CDC_NO_PARITY 0
186#define USB_CDC_ODD_PARITY 1
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700187#define USB_CDC_EVEN_PARITY 2
Ben Cheng655a7c02013-10-16 16:09:24 -0700188#define USB_CDC_MARK_PARITY 3
189#define USB_CDC_SPACE_PARITY 4
Tao Baod7db5942015-01-28 10:07:51 -0800190 __u8 bDataBits;
Tao Baod7db5942015-01-28 10:07:51 -0800191} __attribute__((packed));
Christopher Ferris7447a1c2022-10-04 18:24:44 -0700192#define USB_CDC_CTRL_DTR (1 << 0)
193#define USB_CDC_CTRL_RTS (1 << 1)
Ben Cheng655a7c02013-10-16 16:09:24 -0700194#define USB_CDC_PACKET_TYPE_PROMISCUOUS (1 << 0)
195#define USB_CDC_PACKET_TYPE_ALL_MULTICAST (1 << 1)
196#define USB_CDC_PACKET_TYPE_DIRECTED (1 << 2)
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700197#define USB_CDC_PACKET_TYPE_BROADCAST (1 << 3)
Ben Cheng655a7c02013-10-16 16:09:24 -0700198#define USB_CDC_PACKET_TYPE_MULTICAST (1 << 4)
199#define USB_CDC_NOTIFY_NETWORK_CONNECTION 0x00
200#define USB_CDC_NOTIFY_RESPONSE_AVAILABLE 0x01
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700201#define USB_CDC_NOTIFY_SERIAL_STATE 0x20
Ben Cheng655a7c02013-10-16 16:09:24 -0700202#define USB_CDC_NOTIFY_SPEED_CHANGE 0x2a
203struct usb_cdc_notification {
Tao Baod7db5942015-01-28 10:07:51 -0800204 __u8 bmRequestType;
Tao Baod7db5942015-01-28 10:07:51 -0800205 __u8 bNotificationType;
206 __le16 wValue;
207 __le16 wIndex;
208 __le16 wLength;
Tao Baod7db5942015-01-28 10:07:51 -0800209} __attribute__((packed));
Christopher Ferris7447a1c2022-10-04 18:24:44 -0700210#define USB_CDC_SERIAL_STATE_DCD (1 << 0)
211#define USB_CDC_SERIAL_STATE_DSR (1 << 1)
212#define USB_CDC_SERIAL_STATE_BREAK (1 << 2)
213#define USB_CDC_SERIAL_STATE_RING_SIGNAL (1 << 3)
214#define USB_CDC_SERIAL_STATE_FRAMING (1 << 4)
215#define USB_CDC_SERIAL_STATE_PARITY (1 << 5)
216#define USB_CDC_SERIAL_STATE_OVERRUN (1 << 6)
Ben Cheng655a7c02013-10-16 16:09:24 -0700217struct usb_cdc_speed_change {
Tao Baod7db5942015-01-28 10:07:51 -0800218 __le32 DLBitRRate;
219 __le32 ULBitRate;
Tao Baod7db5942015-01-28 10:07:51 -0800220} __attribute__((packed));
Ben Cheng655a7c02013-10-16 16:09:24 -0700221struct usb_cdc_ncm_ntb_parameters {
Tao Baod7db5942015-01-28 10:07:51 -0800222 __le16 wLength;
223 __le16 bmNtbFormatsSupported;
Tao Baod7db5942015-01-28 10:07:51 -0800224 __le32 dwNtbInMaxSize;
225 __le16 wNdpInDivisor;
226 __le16 wNdpInPayloadRemainder;
227 __le16 wNdpInAlignment;
Tao Baod7db5942015-01-28 10:07:51 -0800228 __le16 wPadding1;
229 __le32 dwNtbOutMaxSize;
230 __le16 wNdpOutDivisor;
231 __le16 wNdpOutPayloadRemainder;
Tao Baod7db5942015-01-28 10:07:51 -0800232 __le16 wNdpOutAlignment;
233 __le16 wNtbOutMaxDatagrams;
234} __attribute__((packed));
Ben Cheng655a7c02013-10-16 16:09:24 -0700235#define USB_CDC_NCM_NTH16_SIGN 0x484D434E
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700236#define USB_CDC_NCM_NTH32_SIGN 0x686D636E
Ben Cheng655a7c02013-10-16 16:09:24 -0700237struct usb_cdc_ncm_nth16 {
Tao Baod7db5942015-01-28 10:07:51 -0800238 __le32 dwSignature;
239 __le16 wHeaderLength;
Tao Baod7db5942015-01-28 10:07:51 -0800240 __le16 wSequence;
241 __le16 wBlockLength;
242 __le16 wNdpIndex;
243} __attribute__((packed));
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700244struct usb_cdc_ncm_nth32 {
Tao Baod7db5942015-01-28 10:07:51 -0800245 __le32 dwSignature;
246 __le16 wHeaderLength;
247 __le16 wSequence;
Tao Baod7db5942015-01-28 10:07:51 -0800248 __le32 dwBlockLength;
249 __le32 dwNdpIndex;
250} __attribute__((packed));
Ben Cheng655a7c02013-10-16 16:09:24 -0700251#define USB_CDC_NCM_NDP16_CRC_SIGN 0x314D434E
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700252#define USB_CDC_NCM_NDP16_NOCRC_SIGN 0x304D434E
Ben Cheng655a7c02013-10-16 16:09:24 -0700253#define USB_CDC_NCM_NDP32_CRC_SIGN 0x316D636E
254#define USB_CDC_NCM_NDP32_NOCRC_SIGN 0x306D636E
255#define USB_CDC_MBIM_NDP16_IPS_SIGN 0x00535049
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700256#define USB_CDC_MBIM_NDP32_IPS_SIGN 0x00737069
Ben Cheng655a7c02013-10-16 16:09:24 -0700257#define USB_CDC_MBIM_NDP16_DSS_SIGN 0x00535344
258#define USB_CDC_MBIM_NDP32_DSS_SIGN 0x00737364
259struct usb_cdc_ncm_dpe16 {
Tao Baod7db5942015-01-28 10:07:51 -0800260 __le16 wDatagramIndex;
261 __le16 wDatagramLength;
Ben Cheng655a7c02013-10-16 16:09:24 -0700262} __attribute__((__packed__));
263struct usb_cdc_ncm_ndp16 {
Tao Baod7db5942015-01-28 10:07:51 -0800264 __le32 dwSignature;
265 __le16 wLength;
266 __le16 wNextNdpIndex;
Christopher Ferris7447a1c2022-10-04 18:24:44 -0700267 struct usb_cdc_ncm_dpe16 dpe16[];
Tao Baod7db5942015-01-28 10:07:51 -0800268} __attribute__((packed));
Ben Cheng655a7c02013-10-16 16:09:24 -0700269struct usb_cdc_ncm_dpe32 {
Tao Baod7db5942015-01-28 10:07:51 -0800270 __le32 dwDatagramIndex;
271 __le32 dwDatagramLength;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700272} __attribute__((__packed__));
Ben Cheng655a7c02013-10-16 16:09:24 -0700273struct usb_cdc_ncm_ndp32 {
Tao Baod7db5942015-01-28 10:07:51 -0800274 __le32 dwSignature;
275 __le16 wLength;
Tao Baod7db5942015-01-28 10:07:51 -0800276 __le16 wReserved6;
277 __le32 dwNextNdpIndex;
278 __le32 dwReserved12;
Christopher Ferris7447a1c2022-10-04 18:24:44 -0700279 struct usb_cdc_ncm_dpe32 dpe32[];
Tao Baod7db5942015-01-28 10:07:51 -0800280} __attribute__((packed));
Ben Cheng655a7c02013-10-16 16:09:24 -0700281#define USB_CDC_NCM_NDP16_INDEX_MIN 0x000C
282#define USB_CDC_NCM_NDP32_INDEX_MIN 0x0010
283#define USB_CDC_NCM_DATAGRAM_FORMAT_CRC 0x30
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700284#define USB_CDC_NCM_DATAGRAM_FORMAT_NOCRC 0X31
Ben Cheng655a7c02013-10-16 16:09:24 -0700285#define USB_CDC_NCM_PROTO_CODE_NO_ENCAP_COMMANDS 0x00
286#define USB_CDC_NCM_PROTO_CODE_EXTERN_PROTO 0xFE
287#define USB_CDC_NCM_NCAP_ETH_FILTER (1 << 0)
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700288#define USB_CDC_NCM_NCAP_NET_ADDRESS (1 << 1)
Ben Cheng655a7c02013-10-16 16:09:24 -0700289#define USB_CDC_NCM_NCAP_ENCAP_COMMAND (1 << 2)
290#define USB_CDC_NCM_NCAP_MAX_DATAGRAM_SIZE (1 << 3)
291#define USB_CDC_NCM_NCAP_CRC_MODE (1 << 4)
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700292#define USB_CDC_NCM_NCAP_NTB_INPUT_SIZE (1 << 5)
Ben Cheng655a7c02013-10-16 16:09:24 -0700293#define USB_CDC_NCM_NTB16_SUPPORTED (1 << 0)
294#define USB_CDC_NCM_NTB32_SUPPORTED (1 << 1)
295#define USB_CDC_NCM_NDP_ALIGN_MIN_SIZE 0x04
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700296#define USB_CDC_NCM_NTB_MAX_LENGTH 0x1C
Ben Cheng655a7c02013-10-16 16:09:24 -0700297#define USB_CDC_NCM_NTB16_FORMAT 0x00
298#define USB_CDC_NCM_NTB32_FORMAT 0x01
299#define USB_CDC_NCM_NTB_MIN_IN_SIZE 2048
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700300#define USB_CDC_NCM_NTB_MIN_OUT_SIZE 2048
Ben Cheng655a7c02013-10-16 16:09:24 -0700301struct usb_cdc_ncm_ndp_input_size {
Tao Baod7db5942015-01-28 10:07:51 -0800302 __le32 dwNtbInMaxSize;
303 __le16 wNtbInMaxDatagrams;
Tao Baod7db5942015-01-28 10:07:51 -0800304 __le16 wReserved;
305} __attribute__((packed));
Ben Cheng655a7c02013-10-16 16:09:24 -0700306#define USB_CDC_NCM_CRC_NOT_APPENDED 0x00
307#define USB_CDC_NCM_CRC_APPENDED 0x01
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700308#endif