Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bb74782e authored by Oliver Neukum's avatar Oliver Neukum Committed by Greg Kroah-Hartman
Browse files

USB: additional structure from cdc spec



this adds another structure for CDC devices to cdc.h.

Signed-off-by: default avatarOliver Neukum <oneukum@suse.de>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent f1c9e30b
Loading
Loading
Loading
Loading
+11 −0
Original line number Original line Diff line number Diff line
@@ -91,6 +91,17 @@ struct usb_cdc_union_desc {
	/* ... and there could be other slave interfaces */
	/* ... and there could be other slave interfaces */
} __attribute__ ((packed));
} __attribute__ ((packed));


/* "Country Selection Functional Descriptor" from CDC spec 5.2.3.9 */
struct usb_cdc_country_functional_desc {
	__u8	bLength;
	__u8	bDescriptorType;
	__u8	bDescriptorSubType;

	__u8	iCountryCodeRelDate;
	__le16	wCountyCode0;
	/* ... and there can be a lot of country codes */
} __attribute__ ((packed));

/* "Network Channel Terminal Functional Descriptor" from CDC spec 5.2.3.11 */
/* "Network Channel Terminal Functional Descriptor" from CDC spec 5.2.3.11 */
struct usb_cdc_network_terminal_desc {
struct usb_cdc_network_terminal_desc {
	__u8	bLength;
	__u8	bLength;