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 int | num_bits, |
const uint8_t * | seq, | ||
enum tap_state | state | ||
) |
Definition at line 237 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 398 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 344 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 | ( | unsigned int | num_cycles | ) |
Definition at line 297 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 113 of file jtag/drivers/driver.c.
References cmd, cmd_queue_alloc(), ERROR_FAIL, ERROR_OK, scan_field::in_value, jtag_queue_command(), JTAG_SCAN, jtag_scan_field_clone(), jtag_tap_next_enabled(), LOG_ERROR, 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(), buf_set_u64(), 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 | ( | unsigned int | num_states, |
const tap_state_t * | path | ||
) |
Definition at line 262 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 210 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 215 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 312 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 | ( | unsigned int | num_cycles, |
tap_state_t | state | ||
) |
Definition at line 281 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 328 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 220 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 366 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 403 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 408 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 186 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 391 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().