X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=src%2Fjtag%2Fbitq.h;h=48b47db7a694956ab2d996e31033159a27fad17a;hb=5874d5f2ea2ef9bd7d759d47ed868269ba99ab65;hp=15b2d5cf479bf8cb935cb605f7971ab7703a201a;hpb=5e9d18f027954c5f5e883934d6c54cb20817ea9f;p=openocd diff --git a/src/jtag/bitq.h b/src/jtag/bitq.h index 15b2d5cf..48b47db7 100644 --- a/src/jtag/bitq.h +++ b/src/jtag/bitq.h @@ -22,10 +22,8 @@ #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,18 +35,9 @@ 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 */ - - int status; /* processing status */ -} bitq_state_t; - -extern bitq_interface_t *bitq_interface; +extern struct bitq_interface *bitq_interface; int bitq_execute_queue(void);