Date: Fri, 18 Apr 2014 07:50:25 +0000 (UTC) From: Hans Petter Selasky <hselasky@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org Subject: svn commit: r264641 - stable/10/lib/libusb Message-ID: <201404180750.s3I7oPus019998@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: hselasky Date: Fri Apr 18 07:50:25 2014 New Revision: 264641 URL: http://svnweb.freebsd.org/changeset/base/264641 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/10/lib/libusb/libusb01.c stable/10/lib/libusb/libusb10.c Directory Properties: stable/10/ (props changed) Modified: stable/10/lib/libusb/libusb01.c ============================================================================== --- stable/10/lib/libusb/libusb01.c Fri Apr 18 07:48:29 2014 (r264640) +++ stable/10/lib/libusb/libusb01.c Fri Apr 18 07:50:25 2014 (r264641) @@ -127,6 +127,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/10/lib/libusb/libusb10.c ============================================================================== --- stable/10/lib/libusb/libusb10.c Fri Apr 18 07:48:29 2014 (r264640) +++ stable/10/lib/libusb/libusb10.c Fri Apr 18 07:50:25 2014 (r264641) @@ -935,6 +935,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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201404180750.s3I7oPus019998>