Date: Fri, 11 Apr 2014 14:11:55 +0000 (UTC) From: Hans Petter Selasky <hselasky@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r264344 - head/lib/libusb Message-ID: <201404111411.s3BEBtFJ071104@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: hselasky Date: Fri Apr 11 14:11:55 2014 New Revision: 264344 URL: http://svnweb.freebsd.org/changeset/base/264344 Log: Tune buffer sizes for SuperSpeed USB when using LibUSB v0.1 and v1.0 APIs to increase the maximum bandwidth limit. MFC after: 1 week Modified: head/lib/libusb/libusb01.c head/lib/libusb/libusb10.c Modified: head/lib/libusb/libusb01.c ============================================================================== --- head/lib/libusb/libusb01.c Fri Apr 11 13:48:45 2014 (r264343) +++ head/lib/libusb/libusb01.c Fri Apr 11 14:11:55 2014 (r264344) @@ -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: head/lib/libusb/libusb10.c ============================================================================== --- head/lib/libusb/libusb10.c Fri Apr 11 13:48:45 2014 (r264343) +++ head/lib/libusb/libusb10.c Fri Apr 11 14:11:55 2014 (r264344) @@ -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?201404111411.s3BEBtFJ071104>