]> git.sur5r.net Git - openocd/blobdiff - src/jtag/hla/hla_interface.h
jtag: drivers: stlink: handle all versions with single config
[openocd] / src / jtag / hla / hla_interface.h
index 418b7d35ef5c007ff201faea727117c2d37cf0b2..262025e9818b7e59e3bc46bd133f19d80cfd49bf 100644 (file)
@@ -19,8 +19,8 @@
  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
 
-#ifndef _HL_INTERFACE
-#define _HL_INTERFACE
+#ifndef OPENOCD_JTAG_HLA_HLA_INTERFACE_H
+#define OPENOCD_JTAG_HLA_HLA_INTERFACE_H
 
 /** */
 struct target;
@@ -29,15 +29,17 @@ enum e_hl_transports;
 /** */
 extern const char *hl_transports[];
 
+#define HLA_MAX_USB_IDS 8
+
 struct hl_interface_param_s {
        /** */
        const char *device_desc;
        /** */
        const char *serial;
-       /** */
-       uint16_t vid;
-       /** */
-       uint16_t pid;
+       /** List of recognised VIDs */
+       uint16_t vid[HLA_MAX_USB_IDS + 1];
+       /** List of recognised PIDs */
+       uint16_t pid[HLA_MAX_USB_IDS + 1];
        /** */
        unsigned api;
        /** */
@@ -65,4 +67,4 @@ 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 */
+#endif /* OPENOCD_JTAG_HLA_HLA_INTERFACE_H */