With this patch drivers will be able to use usb path filtering. The path format is identical to the format provided by linux kernel: bus-port.port.... With this format it should be easier just to copy and paste path found in dmesg. Change-Id: I8bafa6fcb7a66ff68cc961a376f97f4f3dee35aa Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de> Reviewed-on: http://openocd.zylin.com/4580 Tested-by: jenkins Reviewed-by: Matthias Welwarsky <matthias@welwarsky.de>
15 lines
411 B
C
15 lines
411 B
C
/*
|
|
* SPDX-License-Identifier: GPL-2.0+
|
|
* Copyright (c) 2018 Pengutronix, Oleksij Rempel <kernel@pengutronix.de>
|
|
*/
|
|
|
|
#ifndef OPENOCD_JTAG_USB_COMMON_H
|
|
#define OPENOCD_JTAG_USB_COMMON_H
|
|
|
|
void jtag_usb_set_location(const char *location);
|
|
const char *jtag_usb_get_location(void);
|
|
bool jtag_usb_location_equal(uint8_t dev_bus, uint8_t *port_path,
|
|
size_t path_len);
|
|
|
|
#endif /* OPENOCD_JTAG_USB_COMMON_H */
|