aboutsummaryrefslogtreecommitdiff
path: root/src/jtag/drivers/libusb_helper.h
diff options
context:
space:
mode:
authorEasyDevKits <info@easydevkits.com>2023-10-14 21:48:56 +0200
committerAntonio Borneo <borneo.antonio@gmail.com>2023-10-25 01:35:16 +0000
commita080d9795ae5fd4d8ca83fd996667212fc77013c (patch)
tree637465d2ea5fd0ecf792a39bf7edd89c3cd6fb39 /src/jtag/drivers/libusb_helper.h
parent1d555d21d9036fec1604c0f5e41a1202038b87ae (diff)
downloadriscv-openocd-a080d9795ae5fd4d8ca83fd996667212fc77013c.zip
riscv-openocd-a080d9795ae5fd4d8ca83fd996667212fc77013c.tar.gz
riscv-openocd-a080d9795ae5fd4d8ca83fd996667212fc77013c.tar.bz2
jtag/drivers: Extension of jtag_libusb_open
In jtag_libusb_open I've added a parameter for delivering the device description for which this function should search and adjusted all callers of this function. A new driver for WCH CH347 JTAG chips will use this new parameter. See also: https://review.openocd.org/c/openocd/+/7937 Change-Id: I85e1d7b1f7912ba5e223f0f26323ff3b7600e17d Signed-off-by: EasyDevKits <info@easydevkits.com> Reviewed-on: https://review.openocd.org/c/openocd/+/7938 Tested-by: jenkins Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
Diffstat (limited to 'src/jtag/drivers/libusb_helper.h')
-rw-r--r--src/jtag/drivers/libusb_helper.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jtag/drivers/libusb_helper.h b/src/jtag/drivers/libusb_helper.h
index 75f1335..09309b4 100644
--- a/src/jtag/drivers/libusb_helper.h
+++ b/src/jtag/drivers/libusb_helper.h
@@ -33,7 +33,7 @@ typedef char * (*adapter_get_alternate_serial_fn)(struct libusb_device_handle *d
bool jtag_libusb_match_ids(struct libusb_device_descriptor *dev_desc,
const uint16_t vids[], const uint16_t pids[]);
int jtag_libusb_open(const uint16_t vids[], const uint16_t pids[],
- struct libusb_device_handle **out,
+ const char *product, struct libusb_device_handle **out,
adapter_get_alternate_serial_fn adapter_get_alternate_serial);
void jtag_libusb_close(struct libusb_device_handle *dev);
int jtag_libusb_control_transfer(struct libusb_device_handle *dev,