mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-27 13:32:45 +00:00
MFC r264344:
Tune buffer sizes for SuperSpeed USB when using LibUSB v0.1 and v1.0 APIs to increase the maximum bandwidth limit.
This commit is contained in:
parent
5f61cc9def
commit
1c035c3590
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/stable/10/; revision=264641
@ -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;
|
||||
}
|
||||
|
@ -935,6 +935,9 @@ libusb10_get_buffsize(struct libusb20_device *pdev, libusb_transfer *xfer)
|
||||
case LIBUSB20_SPEED_FULL:
|
||||
ret = 4096;
|
||||
break;
|
||||
case LIBUSB20_SPEED_SUPER:
|
||||
ret = 65536;
|
||||
break;
|
||||
default:
|
||||
ret = 16384;
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user