OpenOCD
|
Go to the source code of this file.
Data Structures | |
struct | jtag_callback_entry |
Variables | |
static struct jtag_callback_entry * | jtag_callback_queue_head |
static struct jtag_callback_entry * | jtag_callback_queue_tail |
int interface_add_tms_seq | ( | unsigned | num_bits, |
const uint8_t * | seq, | ||
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().
void interface_jtag_add_callback | ( | jtag_callback1_t | callback, |
jtag_callback_data_t | data0 | ||
) |
Definition at line 383 of file jtag/drivers/driver.c.
References jtag_callback_entry::callback, jtag_callback_entry::data0, jtag_add_callback4(), and jtag_convert_to_callback4().
Referenced by jtag_add_callback().
void interface_jtag_add_callback4 | ( | jtag_callback_t | callback, |
jtag_callback_data_t | data0, | ||
jtag_callback_data_t | data1, | ||
jtag_callback_data_t | data2, | ||
jtag_callback_data_t | data3 | ||
) |
Definition at line 329 of file jtag/drivers/driver.c.
References jtag_callback_entry::callback, cmd_queue_alloc(), jtag_callback_entry::data0, jtag_callback_entry::data1, jtag_callback_entry::data2, jtag_callback_entry::data3, jtag_callback_queue_head, jtag_callback_queue_tail, jtag_callback_entry::next, and NULL.
Referenced by jtag_add_callback4().
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 | in_num_fields, | ||
const struct scan_field * | in_fields, | ||
tap_state_t | state | ||
) |
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 * | in_fields, | ||
tap_state_t | state | ||
) |
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 | state | ||
) |
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 | state | ||
) |
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 | state | ||
) |
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().
void jtag_add_callback | ( | jtag_callback1_t | f, |
jtag_callback_data_t | data0 | ||
) |
A simpler version of jtag_add_callback4().
Definition at line 388 of file jtag/drivers/driver.c.
References jtag_callback_entry::data0, and interface_jtag_add_callback().
Referenced by adi_jtag_dp_scan_u32(), arm720t_scan_cp15(), arm7tdmi_clock_data_in(), arm920t_read_cp15_physical(), arm926ejs_cp15_read(), arm946e_read_cp15(), arm966e_read_cp15(), arm9tdmi_clock_data_in(), arm9tdmi_clock_out(), embeddedice_receive(), etb_read_ram(), mips64_ejtag_fastdata_scan(), mips_ejtag_fastdata_scan(), virtex2_receive_32(), and xscale_receive().
void jtag_add_callback4 | ( | jtag_callback_t | f, |
jtag_callback_data_t | data0, | ||
jtag_callback_data_t | data1, | ||
jtag_callback_data_t | data2, | ||
jtag_callback_data_t | data3 | ||
) |
Definition at line 393 of file jtag/drivers/driver.c.
References jtag_callback_entry::data0, jtag_callback_entry::data1, jtag_callback_entry::data2, jtag_callback_entry::data3, and interface_jtag_add_callback4().
Referenced by arm7tdmi_clock_data_in_endianness(), arm9tdmi_clock_data_in_endianness(), interface_jtag_add_callback(), and jtag_add_scan_check().
|
static |
Definition at line 171 of file jtag/drivers/driver.c.
References buf_cpy(), cmd, cmd_queue_alloc(), DIV_ROUND_UP, ERROR_OK, scan_field::in_value, jtag_queue_command(), JTAG_SCAN, scan_field::num_bits, scan_field::out_value, scan, and state.
Referenced by interface_jtag_add_plain_dr_scan(), and interface_jtag_add_plain_ir_scan().
|
static |
Definition at line 41 of file jtag/drivers/driver.c.
References jtag_callback_queue_head, jtag_callback_queue_tail, and NULL.
Referenced by interface_jtag_execute_queue().
|
static |
Definition at line 376 of file jtag/drivers/driver.c.
References jtag_callback_entry::data0, jtag_callback_entry::data1, and ERROR_OK.
Referenced by interface_jtag_add_callback().
|
static |
Definition at line 38 of file jtag/drivers/driver.c.
Referenced by interface_jtag_add_callback4(), interface_jtag_execute_queue(), and jtag_callback_queue_reset().
|
static |
Definition at line 39 of file jtag/drivers/driver.c.
Referenced by interface_jtag_add_callback4(), and jtag_callback_queue_reset().