aboutsummaryrefslogtreecommitdiff
path: root/lib/libusb/libusb20.c
diff options
context:
space:
mode:
authorHans Petter Selasky <hselasky@FreeBSD.org>2012-08-13 18:10:52 +0000
committerHans Petter Selasky <hselasky@FreeBSD.org>2012-08-13 18:10:52 +0000
commit07b6ce3ba9cd582560d2a716f266cb76176c515e (patch)
tree1953abbbd5e16ff4c9b2baf72bc0aa54e4369b04 /lib/libusb/libusb20.c
parente9cec01683b1f3f70a22f28bf4c0b275fc528f26 (diff)
downloadsrc-07b6ce3ba9cd582560d2a716f266cb76176c515e.tar.gz
src-07b6ce3ba9cd582560d2a716f266cb76176c515e.zip
Add support for streams to LibUSB v2.0.
MFC after: 2 weeks
Notes
Notes: svn path=/head/; revision=239239
Diffstat (limited to 'lib/libusb/libusb20.c')
-rw-r--r--lib/libusb/libusb20.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/libusb/libusb20.c b/lib/libusb/libusb20.c
index 75af7a1865c1..aa459913ec98 100644
--- a/lib/libusb/libusb20.c
+++ b/lib/libusb/libusb20.c
@@ -155,6 +155,13 @@ int
libusb20_tr_open(struct libusb20_transfer *xfer, uint32_t MaxBufSize,
uint32_t MaxFrameCount, uint8_t ep_no)
{
+ return (libusb20_tr_open_stream(xfer, MaxBufSize, MaxFrameCount, ep_no, 0));
+}
+
+int
+libusb20_tr_open_stream(struct libusb20_transfer *xfer, uint32_t MaxBufSize,
+ uint32_t MaxFrameCount, uint8_t ep_no, uint16_t stream_id)
+{
uint32_t size;
uint8_t pre_scale;
int error;
@@ -188,7 +195,7 @@ libusb20_tr_open(struct libusb20_transfer *xfer, uint32_t MaxBufSize,
memset(xfer->ppBuffer, 0, size);
error = xfer->pdev->methods->tr_open(xfer, MaxBufSize,
- MaxFrameCount, ep_no, pre_scale);
+ MaxFrameCount, ep_no, stream_id, pre_scale);
if (error) {
free(xfer->ppBuffer);