pathmove_command_t -> struct pathmove_command

Remove misleading typedef from struct pathmove_command.
This commit is contained in:
Zachary T Welch 2009-11-13 05:54:16 -08:00
parent af3f4a0bbe
commit c07f0600ff
7 changed files with 10 additions and 11 deletions

View File

@ -91,7 +91,7 @@ static void bitbang_state_move(int skip)
tap_set_state(tap_get_end_state()); tap_set_state(tap_get_end_state());
} }
static void bitbang_path_move(pathmove_command_t *cmd) static void bitbang_path_move(struct pathmove_command *cmd)
{ {
int num_states = cmd->num_states; int num_states = cmd->num_states;
int state_count; int state_count;

View File

@ -178,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; int i;

View File

@ -62,13 +62,12 @@ struct statemove_command {
tap_state_t end_state; tap_state_t end_state;
}; };
typedef struct pathmove_command_s struct pathmove_command {
{
/// number of states in *path /// number of states in *path
int num_states; int num_states;
/// states that have to be passed /// states that have to be passed
tap_state_t* path; tap_state_t* path;
} pathmove_command_t; };
typedef struct runtest_command_s typedef struct runtest_command_s
{ {
@ -114,7 +113,7 @@ typedef union jtag_command_container_u
{ {
struct scan_command* scan; struct scan_command* scan;
struct statemove_command* statemove; struct statemove_command* statemove;
pathmove_command_t* pathmove; struct pathmove_command* pathmove;
runtest_command_t* runtest; runtest_command_t* runtest;
stableclocks_command_t* stableclocks; stableclocks_command_t* stableclocks;
reset_command_t* reset; reset_command_t* reset;

View File

@ -392,7 +392,7 @@ int interface_jtag_add_pathmove(int num_states, const tap_state_t *path)
cmd->type = JTAG_PATHMOVE; cmd->type = JTAG_PATHMOVE;
cmd->cmd.pathmove = cmd_queue_alloc(sizeof(pathmove_command_t)); cmd->cmd.pathmove = cmd_queue_alloc(sizeof(struct pathmove_command));
cmd->cmd.pathmove->num_states = num_states; cmd->cmd.pathmove->num_states = num_states;
cmd->cmd.pathmove->path = cmd_queue_alloc(sizeof(tap_state_t) * num_states); cmd->cmd.pathmove->path = cmd_queue_alloc(sizeof(tap_state_t) * num_states);

View File

@ -183,7 +183,7 @@ static void gw16012_state_move(void)
tap_set_state(tap_get_end_state()); tap_set_state(tap_get_end_state());
} }
static void gw16012_path_move(pathmove_command_t *cmd) static void gw16012_path_move(struct pathmove_command *cmd)
{ {
int num_states = cmd->num_states; int num_states = cmd->num_states;
int state_count; int state_count;

View File

@ -929,7 +929,7 @@ void rlink_state_move(void) {
} }
static static
void rlink_path_move(pathmove_command_t *cmd) void rlink_path_move(struct pathmove_command *cmd)
{ {
int num_states = cmd->num_states; int num_states = cmd->num_states;
int state_count; int state_count;

View File

@ -57,7 +57,7 @@ static int usbprog_quit(void);
static void usbprog_end_state(tap_state_t state); static void usbprog_end_state(tap_state_t state);
static void usbprog_state_move(void); static void usbprog_state_move(void);
static void usbprog_path_move(pathmove_command_t *cmd); static void usbprog_path_move(struct pathmove_command *cmd);
static void usbprog_runtest(int num_cycles); static void usbprog_runtest(int num_cycles);
static void usbprog_scan(bool ir_scan, enum scan_type type, uint8_t *buffer, int scan_size); static void usbprog_scan(bool ir_scan, enum scan_type type, uint8_t *buffer, int scan_size);
@ -249,7 +249,7 @@ static void usbprog_state_move(void)
tap_set_state(tap_get_end_state()); tap_set_state(tap_get_end_state());
} }
static void usbprog_path_move(pathmove_command_t *cmd) static void usbprog_path_move(struct pathmove_command *cmd)
{ {
int num_states = cmd->num_states; int num_states = cmd->num_states;
int state_count; int state_count;