diff options
Diffstat (limited to 'util/usb_if.h')
-rw-r--r-- | util/usb_if.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/util/usb_if.h b/util/usb_if.h index 220564d2a3..8cc1088c6e 100644 --- a/util/usb_if.h +++ b/util/usb_if.h @@ -17,14 +17,16 @@ struct usb_endpoint { }; /* - * Find the requested USB endpoint, as determined by vid, pid, subclass and - * protocol parameters. If found, fill up the uep structure. If succeeded, - * usb_shut_down() must be invoked before program exits. + * Find the requested USB endpoint. This finds the device using the device + * serial number, vendor id, and product id. The subclass and protocol are used + * to find the correct endpoint. If a matching endpoint is found, fill up the + * uep structure. If succeeded, usb_shut_down() must be invoked before program + * exits. * * Return 0 on success, -1 on failure. */ -int usb_findit(uint16_t vid, uint16_t pid, uint16_t subclass, - uint16_t protocol, struct usb_endpoint *uep); +int usb_findit(const char *serialno, uint16_t vid, uint16_t pid, + uint16_t subclass, uint16_t protocol, struct usb_endpoint *uep); /* * Actual USB transfer function, the 'allow_less' flag indicates that the |