svn commit: r264637 - stable/9/lib/libusb
Hans Petter Selasky
hselasky at FreeBSD.org
Fri Apr 18 07:42:48 UTC 2014
Author: hselasky
Date: Fri Apr 18 07:42:47 2014
New Revision: 264637
URL: http://svnweb.freebsd.org/changeset/base/264637
Log:
MFC r264344:
Tune buffer sizes for SuperSpeed USB when using LibUSB v0.1 and v1.0
APIs to increase the maximum bandwidth limit.
Modified:
stable/9/lib/libusb/libusb01.c
stable/9/lib/libusb/libusb10.c
Directory Properties:
stable/9/lib/ (props changed)
stable/9/lib/libusb/ (props changed)
Modified: stable/9/lib/libusb/libusb01.c
==============================================================================
--- stable/9/lib/libusb/libusb01.c Fri Apr 18 07:40:23 2014 (r264636)
+++ stable/9/lib/libusb/libusb01.c Fri Apr 18 07:42:47 2014 (r264637)
@@ -122,6 +122,8 @@ usb_get_transfer_by_ep_no(usb_dev_handle
bufsize = 256;
} else if (speed == LIBUSB20_SPEED_FULL) {
bufsize = 4096;
+ } else if (speed == LIBUSB20_SPEED_SUPER) {
+ bufsize = 65536;
} else {
bufsize = 16384;
}
Modified: stable/9/lib/libusb/libusb10.c
==============================================================================
--- stable/9/lib/libusb/libusb10.c Fri Apr 18 07:40:23 2014 (r264636)
+++ stable/9/lib/libusb/libusb10.c Fri Apr 18 07:42:47 2014 (r264637)
@@ -929,6 +929,9 @@ libusb10_get_buffsize(struct libusb20_de
case LIBUSB20_SPEED_FULL:
ret = 4096;
break;
+ case LIBUSB20_SPEED_SUPER:
+ ret = 65536;
+ break;
default:
ret = 16384;
break;
More information about the svn-src-stable-9
mailing list