diff options
author | hselasky <hselasky@FreeBSD.org> | 2014-04-11 14:11:55 +0000 |
---|---|---|
committer | hselasky <hselasky@FreeBSD.org> | 2014-04-11 14:11:55 +0000 |
commit | f59574f34342073102fe6cad8b533846631f3c8d (patch) | |
tree | 4ecb3ff3750df8a486454a8f33d3b252037fee7d /lib/libusb/libusb01.c | |
parent | 8606a0a99229f94cd3ce133f24747c5951bb7a94 (diff) | |
download | FreeBSD-src-f59574f34342073102fe6cad8b533846631f3c8d.zip FreeBSD-src-f59574f34342073102fe6cad8b533846631f3c8d.tar.gz |
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
Diffstat (limited to 'lib/libusb/libusb01.c')
-rw-r--r-- | lib/libusb/libusb01.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libusb/libusb01.c b/lib/libusb/libusb01.c index 30a1430..91ae6e2 100644 --- a/lib/libusb/libusb01.c +++ b/lib/libusb/libusb01.c @@ -127,6 +127,8 @@ usb_get_transfer_by_ep_no(usb_dev_handle * dev, uint8_t ep_no) bufsize = 256; } else if (speed == LIBUSB20_SPEED_FULL) { bufsize = 4096; + } else if (speed == LIBUSB20_SPEED_SUPER) { + bufsize = 65536; } else { bufsize = 16384; } |