diff options
Diffstat (limited to 'include/linux/usb/cdc.h')
-rw-r--r-- | include/linux/usb/cdc.h | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/include/linux/usb/cdc.h b/include/linux/usb/cdc.h index c117a68d04a7..583264abca0c 100644 --- a/include/linux/usb/cdc.h +++ b/include/linux/usb/cdc.h | |||
@@ -274,13 +274,13 @@ struct usb_cdc_notification { | |||
274 | /* | 274 | /* |
275 | * Class Specific structures and constants | 275 | * Class Specific structures and constants |
276 | * | 276 | * |
277 | * CDC NCM parameter structure, CDC NCM subclass 6.2.1 | 277 | * CDC NCM NTB parameters structure, CDC NCM subclass 6.2.1 |
278 | * | 278 | * |
279 | */ | 279 | */ |
280 | 280 | ||
281 | struct usb_cdc_ncm_ntb_parameter { | 281 | struct usb_cdc_ncm_ntb_parameters { |
282 | __le16 wLength; | 282 | __le16 wLength; |
283 | __le16 bmNtbFormatSupported; | 283 | __le16 bmNtbFormatsSupported; |
284 | __le32 dwNtbInMaxSize; | 284 | __le32 dwNtbInMaxSize; |
285 | __le16 wNdpInDivisor; | 285 | __le16 wNdpInDivisor; |
286 | __le16 wNdpInPayloadRemainder; | 286 | __le16 wNdpInPayloadRemainder; |
@@ -297,8 +297,8 @@ struct usb_cdc_ncm_ntb_parameter { | |||
297 | * CDC NCM transfer headers, CDC NCM subclass 3.2 | 297 | * CDC NCM transfer headers, CDC NCM subclass 3.2 |
298 | */ | 298 | */ |
299 | 299 | ||
300 | #define NCM_NTH16_SIGN 0x484D434E /* NCMH */ | 300 | #define USB_CDC_NCM_NTH16_SIGN 0x484D434E /* NCMH */ |
301 | #define NCM_NTH32_SIGN 0x686D636E /* ncmh */ | 301 | #define USB_CDC_NCM_NTH32_SIGN 0x686D636E /* ncmh */ |
302 | 302 | ||
303 | struct usb_cdc_ncm_nth16 { | 303 | struct usb_cdc_ncm_nth16 { |
304 | __le32 dwSignature; | 304 | __le32 dwSignature; |
@@ -320,11 +320,12 @@ struct usb_cdc_ncm_nth32 { | |||
320 | * CDC NCM datagram pointers, CDC NCM subclass 3.3 | 320 | * CDC NCM datagram pointers, CDC NCM subclass 3.3 |
321 | */ | 321 | */ |
322 | 322 | ||
323 | #define NCM_NDP16_CRC_SIGN 0x314D434E /* NCM1 */ | 323 | #define USB_CDC_NCM_NDP16_CRC_SIGN 0x314D434E /* NCM1 */ |
324 | #define NCM_NDP16_NOCRC_SIGN 0x304D434E /* NCM0 */ | 324 | #define USB_CDC_NCM_NDP16_NOCRC_SIGN 0x304D434E /* NCM0 */ |
325 | #define NCM_NDP32_CRC_SIGN 0x316D636E /* ncm1 */ | 325 | #define USB_CDC_NCM_NDP32_CRC_SIGN 0x316D636E /* ncm1 */ |
326 | #define NCM_NDP32_NOCRC_SIGN 0x306D636E /* ncm0 */ | 326 | #define USB_CDC_NCM_NDP32_NOCRC_SIGN 0x306D636E /* ncm0 */ |
327 | 327 | ||
328 | /* 16-bit NCM Datagram Pointer Table */ | ||
328 | struct usb_cdc_ncm_ndp16 { | 329 | struct usb_cdc_ncm_ndp16 { |
329 | __le32 dwSignature; | 330 | __le32 dwSignature; |
330 | __le16 wLength; | 331 | __le16 wLength; |
@@ -332,11 +333,12 @@ struct usb_cdc_ncm_ndp16 { | |||
332 | __u8 data[0]; | 333 | __u8 data[0]; |
333 | } __attribute__ ((packed)); | 334 | } __attribute__ ((packed)); |
334 | 335 | ||
336 | /* 32-bit NCM Datagram Pointer Table */ | ||
335 | struct usb_cdc_ncm_ndp32 { | 337 | struct usb_cdc_ncm_ndp32 { |
336 | __le32 dwSignature; | 338 | __le32 dwSignature; |
337 | __le16 wLength; | 339 | __le16 wLength; |
338 | __le16 wReserved6; | 340 | __le16 wReserved6; |
339 | __le32 dwNextFpIndex; | 341 | __le32 dwNextNdpIndex; |
340 | __le32 dwReserved12; | 342 | __le32 dwReserved12; |
341 | __u8 data[0]; | 343 | __u8 data[0]; |
342 | } __attribute__ ((packed)); | 344 | } __attribute__ ((packed)); |