OpenOCD
|
Go to the source code of this file.
Functions | |
int | default_interface_jtag_execute_queue (void) |
Calls the interface callback to execute the queue. More... | |
int | interface_add_tms_seq (unsigned num_bits, const uint8_t *bits, enum tap_state state) |
int | interface_jtag_add_clocks (int num_cycles) |
int | interface_jtag_add_dr_scan (struct jtag_tap *active, int num_fields, const struct scan_field *fields, tap_state_t endstate) |
see jtag_add_dr_scan() More... | |
int | interface_jtag_add_ir_scan (struct jtag_tap *active, const struct scan_field *fields, tap_state_t endstate) |
see jtag_add_ir_scan() More... | |
int | interface_jtag_add_pathmove (int num_states, const tap_state_t *path) |
int | interface_jtag_add_plain_dr_scan (int num_bits, const uint8_t *out_bits, uint8_t *in_bits, tap_state_t endstate) |
int | interface_jtag_add_plain_ir_scan (int num_bits, const uint8_t *out_bits, uint8_t *in_bits, tap_state_t endstate) |
int | interface_jtag_add_reset (int trst, int srst) |
This drives the actual srst and trst pins. More... | |
int | interface_jtag_add_runtest (int num_cycles, tap_state_t endstate) |
int | interface_jtag_add_sleep (uint32_t us) |
int | interface_jtag_add_tlr (void) |
int | interface_jtag_execute_queue (void) |
int default_interface_jtag_execute_queue | ( | void | ) |
Calls the interface callback to execute the queue.
This routine is used by the JTAG driver layer and should not be called directly.
Definition at line 932 of file jtag/core.c.
References buf_to_hex_str(), cmd, debug_level, ERROR_FAIL, ERROR_OK, jtag_interface::execute_queue, scan_field::in_value, is_adapter_initialized(), jtag_command_queue, adapter_driver::jtag_ops, JTAG_PATHMOVE, JTAG_RESET, JTAG_RUNTEST, JTAG_SCAN, JTAG_SLEEP, JTAG_STABLECLOCKS, JTAG_TLR_RESET, JTAG_TMS, LOG_DEBUG_IO, LOG_ERROR, LOG_LVL_DEBUG_IO, scan_field::num_bits, scan_field::out_value, tap_state_name(), and transport_is_jtag().
Referenced by interface_jtag_execute_queue().
int interface_add_tms_seq | ( | unsigned | num_bits, |
const uint8_t * | bits, | ||
enum tap_state | state | ||
) |
Definition at line 222 of file jtag/drivers/driver.c.
References buf_cpy(), cmd, cmd_queue_alloc(), DIV_ROUND_UP, ERROR_FAIL, ERROR_OK, jtag_queue_command(), and JTAG_TMS.
Referenced by jtag_add_tms_seq().
int interface_jtag_add_clocks | ( | int | num_cycles | ) |
Definition at line 282 of file jtag/drivers/driver.c.
References cmd, cmd_queue_alloc(), ERROR_OK, jtag_queue_command(), and JTAG_STABLECLOCKS.
Referenced by jtag_add_clocks().
int interface_jtag_add_dr_scan | ( | struct jtag_tap * | active, |
int | num_fields, | ||
const struct scan_field * | fields, | ||
tap_state_t | endstate | ||
) |
Definition at line 107 of file jtag/drivers/driver.c.
References cmd, cmd_queue_alloc(), ERROR_OK, scan_field::in_value, jtag_queue_command(), JTAG_SCAN, jtag_scan_field_clone(), jtag_tap_next_enabled(), NULL, scan_field::num_bits, scan_field::out_value, scan, and state.
Referenced by jtag_add_dr_scan().
int interface_jtag_add_ir_scan | ( | struct jtag_tap * | active, |
const struct scan_field * | fields, | ||
tap_state_t | endstate | ||
) |
Definition at line 51 of file jtag/drivers/driver.c.
References buf_cpy(), buf_set_ones(), cmd, cmd_queue_alloc(), DIV_ROUND_UP, ERROR_OK, scan_field::in_value, jtag_queue_command(), JTAG_SCAN, jtag_scan_field_clone(), jtag_tap_count_enabled(), jtag_tap_next_enabled(), NULL, scan_field::num_bits, scan_field::out_value, scan, and state.
Referenced by jtag_add_ir_scan_noverify().
int interface_jtag_add_pathmove | ( | int | num_states, |
const tap_state_t * | path | ||
) |
Definition at line 247 of file jtag/drivers/driver.c.
References cmd, cmd_queue_alloc(), ERROR_OK, JTAG_PATHMOVE, and jtag_queue_command().
Referenced by jtag_add_pathmove().
int interface_jtag_add_plain_dr_scan | ( | int | num_bits, |
const uint8_t * | out_bits, | ||
uint8_t * | in_bits, | ||
tap_state_t | endstate | ||
) |
Definition at line 195 of file jtag/drivers/driver.c.
References jtag_add_plain_scan(), scan_field::num_bits, and state.
Referenced by jtag_add_plain_dr_scan().
int interface_jtag_add_plain_ir_scan | ( | int | num_bits, |
const uint8_t * | out_bits, | ||
uint8_t * | in_bits, | ||
tap_state_t | endstate | ||
) |
Definition at line 200 of file jtag/drivers/driver.c.
References jtag_add_plain_scan(), scan_field::num_bits, and state.
Referenced by jtag_add_plain_ir_scan().
int interface_jtag_add_reset | ( | int | trst, |
int | srst | ||
) |
This drives the actual srst and trst pins.
srst will always be 0 if jtag_reset_config & RESET_SRST_PULLS_TRST != 0 and ditto for trst.
the higher level jtag_add_reset will invoke jtag_add_tlr() if appropriate
Definition at line 297 of file jtag/drivers/driver.c.
References cmd, cmd_queue_alloc(), ERROR_OK, jtag_queue_command(), and JTAG_RESET.
Referenced by legacy_jtag_add_reset().
int interface_jtag_add_runtest | ( | int | num_cycles, |
tap_state_t | endstate | ||
) |
Definition at line 266 of file jtag/drivers/driver.c.
References cmd, cmd_queue_alloc(), ERROR_OK, jtag_queue_command(), JTAG_RUNTEST, and state.
Referenced by jtag_add_runtest().
int interface_jtag_add_sleep | ( | uint32_t | us | ) |
Definition at line 313 of file jtag/drivers/driver.c.
References cmd, cmd_queue_alloc(), ERROR_OK, jtag_queue_command(), and JTAG_SLEEP.
Referenced by jtag_add_sleep().
int interface_jtag_add_tlr | ( | void | ) |
Definition at line 205 of file jtag/drivers/driver.c.
References cmd, cmd_queue_alloc(), ERROR_OK, jtag_queue_command(), JTAG_TLR_RESET, state, and TAP_RESET.
Referenced by jtag_add_tlr().
int interface_jtag_execute_queue | ( | void | ) |
Definition at line 351 of file jtag/drivers/driver.c.
References jtag_callback_entry::callback, jtag_callback_entry::data0, jtag_callback_entry::data1, jtag_callback_entry::data2, jtag_callback_entry::data3, default_interface_jtag_execute_queue(), ERROR_OK, jtag_callback_queue_head, jtag_callback_queue_reset(), jtag_command_queue_reset(), and jtag_callback_entry::next.
Referenced by jtag_execute_queue_noclear().