Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 213577
b: refs/heads/master
c: 1f53c0e
h: refs/heads/master
i:
  213575: 5272406
v: v3
  • Loading branch information
Yauheni Kaliuta authored and Greg Kroah-Hartman committed Oct 22, 2010
1 parent 8de45d2 commit f9038e9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c6991b6fd2b4201174dc4620d0c8c4f5ff27b36f
refs/heads/master: 1f53c0e9bbf654ed93f63deee2bf5c9a1816966e
22 changes: 12 additions & 10 deletions trunk/include/linux/usb/cdc.h
Original file line number Diff line number Diff line change
Expand Up @@ -274,13 +274,13 @@ struct usb_cdc_notification {
/*
* Class Specific structures and constants
*
* CDC NCM parameter structure, CDC NCM subclass 6.2.1
* CDC NCM NTB parameters structure, CDC NCM subclass 6.2.1
*
*/

struct usb_cdc_ncm_ntb_parameter {
struct usb_cdc_ncm_ntb_parameters {
__le16 wLength;
__le16 bmNtbFormatSupported;
__le16 bmNtbFormatsSupported;
__le32 dwNtbInMaxSize;
__le16 wNdpInDivisor;
__le16 wNdpInPayloadRemainder;
Expand All @@ -297,8 +297,8 @@ struct usb_cdc_ncm_ntb_parameter {
* CDC NCM transfer headers, CDC NCM subclass 3.2
*/

#define NCM_NTH16_SIGN 0x484D434E /* NCMH */
#define NCM_NTH32_SIGN 0x686D636E /* ncmh */
#define USB_CDC_NCM_NTH16_SIGN 0x484D434E /* NCMH */
#define USB_CDC_NCM_NTH32_SIGN 0x686D636E /* ncmh */

struct usb_cdc_ncm_nth16 {
__le32 dwSignature;
Expand All @@ -320,23 +320,25 @@ struct usb_cdc_ncm_nth32 {
* CDC NCM datagram pointers, CDC NCM subclass 3.3
*/

#define NCM_NDP16_CRC_SIGN 0x314D434E /* NCM1 */
#define NCM_NDP16_NOCRC_SIGN 0x304D434E /* NCM0 */
#define NCM_NDP32_CRC_SIGN 0x316D636E /* ncm1 */
#define NCM_NDP32_NOCRC_SIGN 0x306D636E /* ncm0 */
#define USB_CDC_NCM_NDP16_CRC_SIGN 0x314D434E /* NCM1 */
#define USB_CDC_NCM_NDP16_NOCRC_SIGN 0x304D434E /* NCM0 */
#define USB_CDC_NCM_NDP32_CRC_SIGN 0x316D636E /* ncm1 */
#define USB_CDC_NCM_NDP32_NOCRC_SIGN 0x306D636E /* ncm0 */

/* 16-bit NCM Datagram Pointer Table */
struct usb_cdc_ncm_ndp16 {
__le32 dwSignature;
__le16 wLength;
__le16 wNextFpIndex;
__u8 data[0];
} __attribute__ ((packed));

/* 32-bit NCM Datagram Pointer Table */
struct usb_cdc_ncm_ndp32 {
__le32 dwSignature;
__le16 wLength;
__le16 wReserved6;
__le32 dwNextFpIndex;
__le32 dwNextNdpIndex;
__le32 dwReserved12;
__u8 data[0];
} __attribute__ ((packed));
Expand Down

0 comments on commit f9038e9

Please sign in to comment.