diff options
Diffstat (limited to 'include/linux/usb_cdc.h')
-rw-r--r-- | include/linux/usb_cdc.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/linux/usb_cdc.h b/include/linux/usb_cdc.h index f22d6beecc73..ba617c372455 100644 --- a/include/linux/usb_cdc.h +++ b/include/linux/usb_cdc.h | |||
@@ -34,6 +34,7 @@ | |||
34 | #define USB_CDC_ACM_TYPE 0x02 /* acm_descriptor */ | 34 | #define USB_CDC_ACM_TYPE 0x02 /* acm_descriptor */ |
35 | #define USB_CDC_UNION_TYPE 0x06 /* union_desc */ | 35 | #define USB_CDC_UNION_TYPE 0x06 /* union_desc */ |
36 | #define USB_CDC_COUNTRY_TYPE 0x07 | 36 | #define USB_CDC_COUNTRY_TYPE 0x07 |
37 | #define USB_CDC_NETWORK_TERMINAL_TYPE 0x0a /* network_terminal_desc */ | ||
37 | #define USB_CDC_ETHERNET_TYPE 0x0f /* ether_desc */ | 38 | #define USB_CDC_ETHERNET_TYPE 0x0f /* ether_desc */ |
38 | #define USB_CDC_WHCM_TYPE 0x11 | 39 | #define USB_CDC_WHCM_TYPE 0x11 |
39 | #define USB_CDC_MDLM_TYPE 0x12 /* mdlm_desc */ | 40 | #define USB_CDC_MDLM_TYPE 0x12 /* mdlm_desc */ |
@@ -83,6 +84,18 @@ struct usb_cdc_union_desc { | |||
83 | /* ... and there could be other slave interfaces */ | 84 | /* ... and there could be other slave interfaces */ |
84 | } __attribute__ ((packed)); | 85 | } __attribute__ ((packed)); |
85 | 86 | ||
87 | /* "Network Channel Terminal Functional Descriptor" from CDC spec 5.2.3.11 */ | ||
88 | struct usb_cdc_network_terminal_desc { | ||
89 | __u8 bLength; | ||
90 | __u8 bDescriptorType; | ||
91 | __u8 bDescriptorSubType; | ||
92 | |||
93 | __u8 bEntityId; | ||
94 | __u8 iName; | ||
95 | __u8 bChannelIndex; | ||
96 | __u8 bPhysicalInterface; | ||
97 | } __attribute__ ((packed)); | ||
98 | |||
86 | /* "Ethernet Networking Functional Descriptor" from CDC spec 5.2.3.16 */ | 99 | /* "Ethernet Networking Functional Descriptor" from CDC spec 5.2.3.16 */ |
87 | struct usb_cdc_ether_desc { | 100 | struct usb_cdc_ether_desc { |
88 | __u8 bLength; | 101 | __u8 bLength; |