PERFORCE change 149079 for review
Hans Petter Selasky
hselasky at FreeBSD.org
Tue Sep 2 20:21:08 UTC 2008
http://perforce.freebsd.org/chv.cgi?CH=149079
Change 149079 by hselasky at hselasky_laptop001 on 2008/09/02 20:20:26
Fix the CDC ethernet USB template.
Affected files ...
.. //depot/projects/usb/src/sys/dev/usb2/template/usb2_template_cdce.c#5 edit
Differences ...
==== //depot/projects/usb/src/sys/dev/usb2/template/usb2_template_cdce.c#5 (text+ko) ====
@@ -231,17 +231,27 @@
NULL,
};
+static const struct usb2_temp_interface_desc eth_data_null_interface = {
+ .ppEndpoints = NULL, /* no endpoints */
+ .bInterfaceClass = UICLASS_CDC_DATA,
+ .bInterfaceSubClass = 0,
+ .bInterfaceProtocol = 0,
+ .iInterface = STRING_ETH_DATA_INDEX,
+};
+
static const struct usb2_temp_interface_desc eth_data_interface = {
.ppEndpoints = eth_data_endpoints,
.bInterfaceClass = UICLASS_CDC_DATA,
.bInterfaceSubClass = UISUBCLASS_DATA,
.bInterfaceProtocol = 0,
.iInterface = STRING_ETH_DATA_INDEX,
+ .isAltInterface = 1, /* this is an alternate setting */
};
static const struct usb2_temp_interface_desc *eth_interfaces[] = {
ð_control_interface,
ð_control_if_512x4,
+ ð_data_null_interface,
ð_data_interface,
NULL,
};
More information about the p4-projects
mailing list