armv7m_trace, stlink: provide APIs to capture trace with an adapter
[fw/openocd] / src / jtag / hla / hla_interface.h
index c4e3298d04d7db2fea92297ab7776b97e8ffd3c6..a155925720a14ce34b71e1b9ea2f54168072be3b 100644 (file)
@@ -33,9 +33,9 @@ extern const char *hl_transports[];
 
 struct hl_interface_param_s {
        /** */
-       char *device_desc;
+       const char *device_desc;
        /** */
-       char *serial;
+       const char *serial;
        /** */
        uint16_t vid;
        /** */
@@ -45,9 +45,9 @@ struct hl_interface_param_s {
        /** */
        enum hl_transports transport;
        /** */
-       int max_buffer;
-       /** */
        bool connect_under_reset;
+       /** Initial interface clock clock speed */
+       int initial_interface_speed;
 };
 
 struct hl_interface_s {
@@ -56,7 +56,7 @@ struct hl_interface_s {
        /** */
        const struct hl_layout *layout;
        /** */
-       void *fd;
+       void *handle;
 };
 
 /** */
@@ -65,5 +65,6 @@ int hl_interface_open(enum hl_transports tr);
 
 int hl_interface_init_target(struct target *t);
 int hl_interface_init_reset(void);
+int hl_interface_override_target(const char **targetname);
 
 #endif /* _HL_INTERFACE */