improve startup tcl scripts
[fw/openocd] / src / jtag / bitq.h
index 2ee3f6b66e9a309917d0da6ab231b9658272c5ca..48b47db7a694956ab2d996e31033159a27fad17a 100644 (file)
 #ifndef BITQ_H
 #define BITQ_H
 
-#include "jtag.h"
+#include "commands.h"
 
-typedef struct bitq_interface_s
-{
-       /* functions enqueueing low level IO requests
-       */
+struct bitq_interface {
+       // function to enqueueing low level IO requests
        int (*out)(int tms, int tdi, int tdo_req);
        int (*flush)(void);
 
@@ -37,21 +35,12 @@ typedef struct bitq_interface_s
         */
        int (*in_rdy)(void);
        int (*in)(void);
-} bitq_interface_t;
+};
 
-typedef struct bitq_state_s
-{
-  jtag_command_t *cmd; /* command currently processed */
-  int field_idx; /* index of field currently being processed */
-  int bit_pos; /* position of bit curently being processed */
+extern struct bitq_interface *bitq_interface;
 
-  int status; /* processing status */
-} bitq_state_t;
+int bitq_execute_queue(void);
 
-extern bitq_interface_t *bitq_interface;
-
-extern int bitq_execute_queue(void);
-
-extern void bitq_cleanup(void);
+void bitq_cleanup(void);
 
 #endif /* BITQ_H */