target: no implicit #includes of "register.h"
[fw/openocd] / src / jtag / bitq.c
index 8ddde81396d9dd1dd830ff392adad3e81571cee5..74555d2bc497d2c1486c104784c37f91571289b9 100644 (file)
 #include "interface.h"
 
 
-bitq_interface_t* bitq_interface;       /* low level bit queue interface */
+struct bitq_interface* bitq_interface;       /* low level bit queue interface */
 
-static bitq_state_t      bitq_in_state;        /* state of input queue */
+/* state of input queue */
+struct bitq_state {
+       struct jtag_command *cmd; /* command currently processed */
+       int field_idx; /* index of field currently being processed */
+       int bit_pos; /* position of bit curently being processed */
+       int status; /* processing status */
+};
+static struct bitq_state bitq_in_state;
 
 static uint8_t* bitq_in_buffer;                     /* buffer dynamically reallocated as needed */
 static int     bitq_in_bufsize = 32; /* min. buffer size */
@@ -171,7 +178,7 @@ void bitq_state_move(tap_state_t new_state)
 }
 
 
-void bitq_path_move(pathmove_command_t* cmd)
+void bitq_path_move(struct pathmove_command* cmd)
 {
        int i;
 
@@ -265,7 +272,7 @@ void bitq_scan_field(struct scan_field* field, int pause)
 }
 
 
-void bitq_scan(scan_command_t* cmd)
+void bitq_scan(struct scan_command* cmd)
 {
        int i;
 
@@ -283,7 +290,7 @@ void bitq_scan(scan_command_t* cmd)
 
 int bitq_execute_queue(void)
 {
-       jtag_command_t* cmd = jtag_command_queue; /* currently processed command */
+       struct jtag_command* cmd = jtag_command_queue; /* currently processed command */
 
        bitq_in_state.cmd = jtag_command_queue;
        bitq_in_state.field_idx = 0;