PERFORCE change 180364 for review
    Hans Petter Selasky 
    hselasky at FreeBSD.org
       
    Thu Jul  1 03:54:31 UTC 2010
    
    
  
http://p4web.freebsd.org/@@180364?ac=10
Change 180364 by hselasky at hselasky_laptop001 on 2010/07/01 03:54:10
	USB network:
		- correct a GET macro
		- if the expected buffer size is greater than 65535 bytes,
		the CDC driver might not work as expected, which is not likely
		with the existing USB speeds.
		- patch by: HPS @
Affected files ...
.. //depot/projects/usb/src/sys/dev/usb/net/if_cdce.c#28 edit
Differences ...
==== //depot/projects/usb/src/sys/dev/usb/net/if_cdce.c#28 (text+ko) ====
@@ -312,14 +312,14 @@
 	/* Read correct set of parameters according to device mode */
 
 	if (usbd_get_mode(sc->sc_ue.ue_udev) == USB_MODE_HOST) {
-		sc->sc_ncm.rx_max = UGETW(temp.dwNtbInMaxSize);
-		sc->sc_ncm.tx_max = UGETW(temp.dwNtbOutMaxSize);
+		sc->sc_ncm.rx_max = UGETDW(temp.dwNtbInMaxSize);
+		sc->sc_ncm.tx_max = UGETDW(temp.dwNtbOutMaxSize);
 		sc->sc_ncm.tx_remainder = UGETW(temp.wNdpOutPayloadRemainder);
 		sc->sc_ncm.tx_modulus = UGETW(temp.wNdpOutDivisor);
 		sc->sc_ncm.tx_struct_align = UGETW(temp.wNdpOutAlignment);
 	} else {
-		sc->sc_ncm.rx_max = UGETW(temp.dwNtbOutMaxSize);
-		sc->sc_ncm.tx_max = UGETW(temp.dwNtbInMaxSize);
+		sc->sc_ncm.rx_max = UGETDW(temp.dwNtbOutMaxSize);
+		sc->sc_ncm.tx_max = UGETDW(temp.dwNtbInMaxSize);
 		sc->sc_ncm.tx_remainder = UGETW(temp.wNdpInPayloadRemainder);
 		sc->sc_ncm.tx_modulus = UGETW(temp.wNdpInDivisor);
 		sc->sc_ncm.tx_struct_align = UGETW(temp.wNdpInAlignment);
    
    
More information about the p4-projects
mailing list