Merge "libusbhost: add usb_device_reset"
This commit is contained in:
commit
27f961f93d
2 changed files with 8 additions and 0 deletions
|
@ -219,6 +219,9 @@ int usb_device_bulk_transfer(struct usb_device *device,
|
|||
int length,
|
||||
unsigned int timeout);
|
||||
|
||||
/** Reset USB bus for the device */
|
||||
int usb_device_reset(struct usb_device *device);
|
||||
|
||||
/* Creates a new usb_request. */
|
||||
struct usb_request *usb_request_new(struct usb_device *dev,
|
||||
const struct usb_endpoint_descriptor *ep_desc);
|
||||
|
|
|
@ -617,6 +617,11 @@ int usb_device_bulk_transfer(struct usb_device *device,
|
|||
return ioctl(device->fd, USBDEVFS_BULK, &ctrl);
|
||||
}
|
||||
|
||||
int usb_device_reset(struct usb_device *device)
|
||||
{
|
||||
return ioctl(device->fd, USBDEVFS_RESET);
|
||||
}
|
||||
|
||||
struct usb_request *usb_request_new(struct usb_device *dev,
|
||||
const struct usb_endpoint_descriptor *ep_desc)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue