diff options
author | Zachary T Welch <zw@superlucidity.net> | 2009-11-13 04:50:26 -0800 |
---|---|---|
committer | Zachary T Welch <zw@superlucidity.net> | 2009-11-13 11:58:04 -0800 |
commit | e1c26950c03b09efe42b8a25dd83f1e50e22a507 (patch) | |
tree | 83c1cba0002e9a9c925cf6addbb8ae63a92ae9e9 /src/jtag/vsllink.c | |
parent | 8bbb279c2820e8d0b3c95e0de0289be933ccea92 (diff) |
pending_scan_result_t -> struct pending_scan_result
Remove misleading typedef from struct struct pending_scan_result.
Future patches need to remove these duplicated types and code.
Diffstat (limited to 'src/jtag/vsllink.c')
-rw-r--r-- | src/jtag/vsllink.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/src/jtag/vsllink.c b/src/jtag/vsllink.c index f462f07c..7705e540 100644 --- a/src/jtag/vsllink.c +++ b/src/jtag/vsllink.c @@ -163,18 +163,17 @@ static uint8_t VSLLINK_BIT_MSK[8] = 0x00, 0x01, 0x03, 0x07, 0x0f, 0x1f, 0x3f, 0x7f }; -typedef struct -{ +struct pending_scan_result { int offset; int length; /* Number of bits to read */ scan_command_t *command; /* Corresponding scan command */ uint8_t *buffer; -} pending_scan_result_t; +}; #define MAX_PENDING_SCAN_RESULTS 256 static int pending_scan_results_length; -static pending_scan_result_t pending_scan_results_buffer[MAX_PENDING_SCAN_RESULTS]; +static struct pending_scan_result pending_scan_results_buffer[MAX_PENDING_SCAN_RESULTS]; /* Queue command functions */ static void vsllink_end_state(tap_state_t state); @@ -1488,7 +1487,7 @@ static void vsllink_tap_append_step(int tms, int tdi) static void vsllink_tap_append_scan_normal(int length, uint8_t *buffer, scan_command_t *command, int offset) { - pending_scan_result_t *pending_scan_result = &pending_scan_results_buffer[pending_scan_results_length]; + struct pending_scan_result *pending_scan_result = &pending_scan_results_buffer[pending_scan_results_length]; int i; if (offset > 0) @@ -1513,7 +1512,7 @@ static void vsllink_tap_append_scan_normal(int length, uint8_t *buffer, scan_com } static void vsllink_tap_append_scan_dma(int length, uint8_t *buffer, scan_command_t *command) { - pending_scan_result_t *pending_scan_result; + struct pending_scan_result *pending_scan_result; int len_tmp, len_all, i; len_all = 0; @@ -1591,7 +1590,7 @@ static int vsllink_tap_execute_normal(void) { for (i = 0; i < pending_scan_results_length; i++) { - pending_scan_result_t *pending_scan_result = &pending_scan_results_buffer[i]; + struct pending_scan_result *pending_scan_result = &pending_scan_results_buffer[i]; uint8_t *buffer = pending_scan_result->buffer; int length = pending_scan_result->length; int offset = pending_scan_result->offset; @@ -1664,7 +1663,7 @@ static int vsllink_tap_execute_dma(void) { for (i = 0; i < pending_scan_results_length; i++) { - pending_scan_result_t *pending_scan_result = &pending_scan_results_buffer[i]; + struct pending_scan_result *pending_scan_result = &pending_scan_results_buffer[i]; uint8_t *buffer = pending_scan_result->buffer; int length = pending_scan_result->length; int first = pending_scan_result->offset; |