jtag: drivers: provide initial support for usb path filtering
[fw/openocd] / src / jtag / drivers / jtag_usb_common.h
1 /*
2  * SPDX-License-Identifier: GPL-2.0+
3  * Copyright (c) 2018 Pengutronix, Oleksij Rempel <kernel@pengutronix.de>
4  */
5
6 #ifndef OPENOCD_JTAG_USB_COMMON_H
7 #define OPENOCD_JTAG_USB_COMMON_H
8
9 void jtag_usb_set_location(const char *location);
10 const char *jtag_usb_get_location(void);
11 bool jtag_usb_location_equal(uint8_t dev_bus, uint8_t *port_path,
12                              size_t path_len);
13
14 #endif /* OPENOCD_JTAG_USB_COMMON_H */