summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/jtag/bitbang.c2
-rw-r--r--src/jtag/bitq.c2
-rw-r--r--src/jtag/commands.h7
-rw-r--r--src/jtag/driver.c2
-rw-r--r--src/jtag/gw16012.c2
-rw-r--r--src/jtag/rlink/rlink.c2
-rw-r--r--src/jtag/usbprog.c4
7 files changed, 10 insertions, 11 deletions
diff --git a/src/jtag/bitbang.c b/src/jtag/bitbang.c
index d62a5cd3..7c02628f 100644
--- a/src/jtag/bitbang.c
+++ b/src/jtag/bitbang.c
@@ -91,7 +91,7 @@ static void bitbang_state_move(int skip)
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 state_count;
diff --git a/src/jtag/bitq.c b/src/jtag/bitq.c
index ee7a073a..1c00228a 100644
--- a/src/jtag/bitq.c
+++ b/src/jtag/bitq.c
@@ -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;
diff --git a/src/jtag/commands.h b/src/jtag/commands.h
index 858f7aad..f5793de5 100644
--- a/src/jtag/commands.h
+++ b/src/jtag/commands.h
@@ -62,13 +62,12 @@ struct statemove_command {
tap_state_t end_state;
};
-typedef struct pathmove_command_s
-{
+struct pathmove_command {
/// number of states in *path
int num_states;
/// states that have to be passed
tap_state_t* path;
-} pathmove_command_t;
+};
typedef struct runtest_command_s
{
@@ -114,7 +113,7 @@ typedef union jtag_command_container_u
{
struct scan_command* scan;
struct statemove_command* statemove;
- pathmove_command_t* pathmove;
+ struct pathmove_command* pathmove;
runtest_command_t* runtest;
stableclocks_command_t* stableclocks;
reset_command_t* reset;
diff --git a/src/jtag/driver.c b/src/jtag/driver.c
index 6f205734..83ac56c4 100644
--- a/src/jtag/driver.c
+++ b/src/jtag/driver.c
@@ -392,7 +392,7 @@ int interface_jtag_add_pathmove(int num_states, const tap_state_t *path)
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->path = cmd_queue_alloc(sizeof(tap_state_t) * num_states);
diff --git a/src/jtag/gw16012.c b/src/jtag/gw16012.c
index dfc07be2..eb47187f 100644
--- a/src/jtag/gw16012.c
+++ b/src/jtag/gw16012.c
@@ -183,7 +183,7 @@ static void gw16012_state_move(void)
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 state_count;
diff --git a/src/jtag/rlink/rlink.c b/src/jtag/rlink/rlink.c
index db91698e..bc354575 100644
--- a/src/jtag/rlink/rlink.c
+++ b/src/jtag/rlink/rlink.c
@@ -929,7 +929,7 @@ void rlink_state_move(void) {
}
static
-void rlink_path_move(pathmove_command_t *cmd)
+void rlink_path_move(struct pathmove_command *cmd)
{
int num_states = cmd->num_states;
int state_count;
diff --git a/src/jtag/usbprog.c b/src/jtag/usbprog.c
index 06a9673f..9eda6e08 100644
--- a/src/jtag/usbprog.c
+++ b/src/jtag/usbprog.c
@@ -57,7 +57,7 @@ static int usbprog_quit(void);
static void usbprog_end_state(tap_state_t state);
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_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());
}
-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 state_count;