Date: Tue, 2 Sep 2008 20:21:07 GMT From: Hans Petter Selasky <hselasky@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 149079 for review Message-ID: <200809022021.m82KL7RR055067@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=149079 Change 149079 by hselasky@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, };
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200809022021.m82KL7RR055067>