summaryrefslogtreecommitdiff
path: root/include/usbhost
diff options
context:
space:
mode:
authorMike Lockwood <lockwood@android.com>2011-02-14 08:05:40 -0500
committerMike Lockwood <lockwood@android.com>2011-02-14 08:05:40 -0500
commitb5d68a3c28d0b7a947373344cbda2a2369d0b67d (patch)
tree56115103f327201bc30b76df8d06368963ccebb5 /include/usbhost
parent99038f96fd458848c18d63db8cc7668cc8f1a1c7 (diff)
libusbhost: Save endpoint ID in usb_request struct
Change-Id: I2cf189cee67c2efbcf919c8bae1447a6cb112f02 Signed-off-by: Mike Lockwood <lockwood@android.com>
Diffstat (limited to 'include/usbhost')
-rw-r--r--include/usbhost/usbhost.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/usbhost/usbhost.h b/include/usbhost/usbhost.h
index c330cabbf..9a6b59c5f 100644
--- a/include/usbhost/usbhost.h
+++ b/include/usbhost/usbhost.h
@@ -47,6 +47,7 @@ struct usb_request
int actual_length;
int max_packet_size;
void *private_data; /* struct usbdevfs_urb* */
+ int endpoint;
void *client_data; /* free for use by client */
};
@@ -185,7 +186,9 @@ int usb_device_control_transfer(struct usb_device *device,
int length,
unsigned int timeout);
-/* Reads or writes on a bulk endpoint */
+/* Reads or writes on a bulk endpoint.
+ * Returns number of bytes transferred, or negative value for error.
+ */
int usb_device_bulk_transfer(struct usb_device *device,
int endpoint,
void* buffer,