X-Git-Url: https://review.openocd.org/gitweb?a=blobdiff_plain;f=src%2Fjtag%2Fadapter.h;fp=src%2Fjtag%2Fadapter.h;h=854ee9ce6bbe111cfca2c255f13b1c73471ec8c7;hb=4cb3c9fae2a6a6cb5cf2c664179edace22abf5f6;hp=0000000000000000000000000000000000000000;hpb=a9d0386411d1e372bf4d2187ff7b843bb5e9bfc6;p=openocd.git diff --git a/src/jtag/adapter.h b/src/jtag/adapter.h new file mode 100644 index 0000000000..854ee9ce6b --- /dev/null +++ b/src/jtag/adapter.h @@ -0,0 +1,19 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +/* + * Copyright (c) 2018 Pengutronix, Oleksij Rempel + */ + +#ifndef OPENOCD_JTAG_ADAPTER_H +#define OPENOCD_JTAG_ADAPTER_H + +#include +#include +#include + +/** @returns USB location string set with command 'adapter usb location' */ +const char *adapter_usb_get_location(void); + +/** @returns true if USB location string is "-[.[...]]" */ +bool adapter_usb_location_equal(uint8_t dev_bus, uint8_t *port_path, size_t path_len); + +#endif /* OPENOCD_JTAG_ADAPTER_H */