X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Ftarget%2Fetb.c;h=1315b71a12439e69bbe92ceb27dfb15113f20ae2;hb=d0809ac060b35a04e7f0bceb96e1868663bd18df;hp=c0c485fe2c15e5461e130ceabe79e88c51859245;hpb=cfc4d5c6b7b6f8f82dc5bbf3ee661c179814666e;p=fw%2Fopenocd diff --git a/src/target/etb.c b/src/target/etb.c index c0c485fe2..1315b71a1 100644 --- a/src/target/etb.c +++ b/src/target/etb.c @@ -44,7 +44,7 @@ static int etb_get_reg(reg_t *reg); static int etb_set_instr(etb_t *etb, uint32_t new_instr) { - jtag_tap_t *tap; + struct jtag_tap *tap; tap = etb->tap; if (tap == NULL) @@ -52,7 +52,7 @@ static int etb_set_instr(etb_t *etb, uint32_t new_instr) if (buf_get_u32(tap->cur_instr, 0, tap->ir_length) != new_instr) { - scan_field_t field; + struct scan_field field; field.tap = tap; field.num_bits = tap->ir_length; @@ -73,7 +73,7 @@ static int etb_scann(etb_t *etb, uint32_t new_scan_chain) { if (etb->cur_scan_chain != new_scan_chain) { - scan_field_t field; + struct scan_field field; field.tap = etb->tap; field.num_bits = 5; @@ -173,7 +173,7 @@ static void etb_getbuf(jtag_callback_data_t arg) static int etb_read_ram(etb_t *etb, uint32_t *data, int num_frames) { - scan_field_t fields[3]; + struct scan_field fields[3]; int i; jtag_set_end_state(TAP_IDLE); @@ -229,7 +229,7 @@ static int etb_read_reg_w_check(reg_t *reg, { etb_reg_t *etb_reg = reg->arch_info; uint8_t reg_addr = etb_reg->addr & 0x7f; - scan_field_t fields[3]; + struct scan_field fields[3]; LOG_DEBUG("%i", (int)(etb_reg->addr)); @@ -315,7 +315,7 @@ static int etb_write_reg(reg_t *reg, uint32_t value) { etb_reg_t *etb_reg = reg->arch_info; uint8_t reg_addr = etb_reg->addr & 0x7f; - scan_field_t fields[3]; + struct scan_field fields[3]; LOG_DEBUG("%i: 0x%8.8" PRIx32 "", (int)(etb_reg->addr), value); @@ -352,7 +352,7 @@ static int etb_write_reg(reg_t *reg, uint32_t value) COMMAND_HANDLER(handle_etb_config_command) { target_t *target; - jtag_tap_t *tap; + struct jtag_tap *tap; struct arm *arm; if (argc != 2)