OpenOCD
|
Go to the source code of this file.
Data Structures | |
struct | arm_dap_object |
Enumerations | |
enum | dap_cfg_param { CFG_CHAIN_POSITION , CFG_IGNORE_SYSPWRUPACK , CFG_DP_ID , CFG_INSTANCE_ID , CFG_ADIV6 , CFG_ADIV5 } |
Functions | |
const char * | adiv5_dap_name (struct adiv5_dap *self) |
const struct swd_driver * | adiv5_dap_swd_driver (struct adiv5_dap *self) |
struct adiv5_dap * | adiv5_get_dap (struct arm_dap_object *obj) |
COMMAND_HANDLER (handle_dap_info_command) | |
COMMAND_HANDLER (handle_dap_init) | |
COMMAND_HANDLER (handle_dap_names) | |
static int | dap_check_config (struct adiv5_dap *dap) |
int | dap_cleanup_all (void) |
static int | dap_configure (struct jim_getopt_info *goi, struct arm_dap_object *dap) |
static int | dap_create (struct jim_getopt_info *goi) |
static int | dap_init_all (void) |
struct adiv5_dap * | dap_instance_by_jim_obj (Jim_Interp *interp, Jim_Obj *o) |
static void | dap_instance_init (struct adiv5_dap *dap) |
int | dap_register_commands (struct command_context *cmd_ctx) |
static int | jim_dap_create (Jim_Interp *interp, int argc, Jim_Obj *const *argv) |
static | LIST_HEAD (all_dap) |
Variables | |
struct adapter_driver * | adapter_driver |
static const struct command_registration | dap_commands [] |
static const struct command_registration | dap_subcommand_handlers [] |
static const struct jim_nvp | nvp_config_opts [] |
enum dap_cfg_param |
const char* adiv5_dap_name | ( | struct adiv5_dap * | self | ) |
Definition at line 54 of file arm_dap.c.
References container_of, arm_dap_object::dap, and arm_dap_object::name.
Referenced by adiv5_jim_spot_configure(), COMMAND_HANDLER(), dap_check_config(), dap_dp_init(), dap_dp_init_or_reconnect(), swd_connect_multidrop(), and swd_multidrop_select().
const struct swd_driver* adiv5_dap_swd_driver | ( | struct adiv5_dap * | self | ) |
Definition at line 60 of file arm_dap.c.
References container_of, arm_dap_object::dap, and arm_dap_object::swd.
Referenced by swd_clear_sticky_errors(), swd_finish_read(), swd_queue_ap_abort(), swd_queue_ap_read(), swd_queue_ap_write(), swd_queue_dp_read_inner(), swd_queue_dp_write(), swd_queue_dp_write_inner(), swd_run_inner(), and swd_send_sequence().
struct adiv5_dap* adiv5_get_dap | ( | struct arm_dap_object * | obj | ) |
Definition at line 66 of file arm_dap.c.
References arm_dap_object::dap.
Referenced by COMMAND_HANDLER().
COMMAND_HANDLER | ( | handle_dap_info_command | ) |
Definition at line 448 of file arm_dap.c.
References adiv6_dap_read_baseptr(), adiv5_dap::apsel, CMD, CMD_ARGC, CMD_ARGV, CMD_CTX, COMMAND_PARSE_NUMBER, command_print(), arm::dap, adiv5_ap::dap, dap_get_ap(), dap_info_command(), dap_put_ap(), ERROR_COMMAND_ARGUMENT_INVALID, ERROR_COMMAND_SYNTAX_ERROR, ERROR_FAIL, ERROR_OK, ERROR_TARGET_RESOURCE_NOT_AVAILABLE, get_current_target(), is_adiv6(), is_ap_num_valid(), LOG_ERROR, and target_to_arm().
COMMAND_HANDLER | ( | handle_dap_init | ) |
Definition at line 443 of file arm_dap.c.
References dap_init_all().
COMMAND_HANDLER | ( | handle_dap_names | ) |
Definition at line 431 of file arm_dap.c.
References CMD, CMD_ARGC, command_print(), ERROR_COMMAND_SYNTAX_ERROR, ERROR_OK, lh(), list_for_each_entry, and arm_dap_object::name.
|
static |
Definition at line 290 of file arm_dap.c.
References adiv5_dap_name(), arm_dap_object::dap, dap_is_multidrop(), DP_TARGETSEL_DPID_MASK, DP_TARGETSEL_INSTANCEID_SHIFT, ERROR_FAIL, ERROR_OK, lh(), list_for_each_entry, LOG_ERROR, adiv5_dap::multidrop_targetsel, arm_dap_object::name, transport_is_dapdirect_jtag(), transport_is_dapdirect_swd(), transport_is_hla(), transport_is_jtag(), and transport_is_swd().
Referenced by dap_create().
int dap_cleanup_all | ( | void | ) |
Definition at line 160 of file arm_dap.c.
References adiv5_dap::ap, arm_dap_object::dap, DP_APSEL_MAX, ERROR_OK, lh(), list_for_each_entry_safe, LOG_ERROR, arm_dap_object::name, adiv5_dap::ops, dap_ops::quit, and adiv5_ap::refcount.
Referenced by openocd_main().
|
static |
Definition at line 200 of file arm_dap.c.
References adiv5_dap::adi_version, jim_getopt_info::argc, CFG_ADIV5, CFG_ADIV6, CFG_CHAIN_POSITION, CFG_DP_ID, CFG_IGNORE_SYSPWRUPACK, CFG_INSTANCE_ID, arm_dap_object::dap, DP_TARGETSEL_DPID_MASK, DP_TARGETSEL_INSTANCEID_MASK, DP_TARGETSEL_INSTANCEID_SHIFT, adiv5_dap::ignore_syspwrupack, jim_getopt_info::interp, jim_getopt_nvp(), jim_getopt_nvp_unknown(), jim_getopt_obj(), jim_getopt_wide(), jtag_tap_by_jim_obj(), adiv5_dap::multidrop_dp_id_valid, adiv5_dap::multidrop_instance_id_valid, adiv5_dap::multidrop_targetsel, jim_nvp::name, arm_dap_object::name, nvp_config_opts, adiv5_dap::tap, and jim_nvp::value.
Referenced by dap_create().
|
static |
Definition at line 336 of file arm_dap.c.
References jim_getopt_info::argc, jim_getopt_info::argv, command_registration::chain, cmd, COMMAND_ANY, COMMAND_REGISTRATION_DONE, current_command_context(), arm_dap_object::dap, dap_check_config(), dap_configure(), dap_instance_commands, dap_instance_init(), ERROR_OK, jim_getopt_info::interp, jim_getopt_obj(), arm_dap_object::lh, list_add_tail(), command_registration::name, arm_dap_object::name, NULL, register_commands_with_data(), adiv5_dap::tap, and transport_is_hla().
Referenced by jim_dap_create().
|
static |
Definition at line 90 of file arm_dap.c.
References adiv5_dap::adi_version, adiv5_dap::asize, dap_ops::connect, arm_dap_object::dap, adapter_driver::dap_jtag_ops, dap_run(), adapter_driver::dap_swd_ops, DP_DPIDR1, DP_DPIDR1_ASIZE_MASK, jtag_tap::enabled, ERROR_OK, is_adiv6(), jtag_dp_ops, jtag_tap_name(), lh(), list_for_each_entry, LOG_DEBUG, LOG_ERROR, adiv5_dap::ops, dap_ops::pre_connect_init, dap_ops::queue_dp_read, arm_dap_object::swd, swd_dap_ops, adapter_driver::swd_ops, adiv5_dap::tap, transport_is_dapdirect_jtag(), transport_is_dapdirect_swd(), transport_is_hla(), and transport_is_swd().
Referenced by COMMAND_HANDLER().
struct adiv5_dap* dap_instance_by_jim_obj | ( | Jim_Interp * | interp, |
Jim_Obj * | o | ||
) |
Definition at line 70 of file arm_dap.c.
References arm_dap_object::dap, lh(), list_for_each_entry, arm_dap_object::name, name, and NULL.
Referenced by adiv5_jim_spot_configure().
|
static |
Definition at line 33 of file arm_dap.c.
References adiv5_dap::ap, adiv5_ap::ap_num, adiv5_ap::cfg_reg, adiv5_dap::cmd_journal, adiv5_dap::cmd_pool, adiv5_ap::config_ap_never_release, CSW_AHB_DEFAULT, adiv5_ap::csw_default, adiv5_ap::dap, DP_APSEL_INVALID, DP_APSEL_MAX, INIT_LIST_HEAD(), MEM_AP_REG_CFG_INVALID, adiv5_ap::memaccess_tck, adiv5_ap::refcount, and adiv5_ap::tar_autoincr_block.
Referenced by dap_create().
int dap_register_commands | ( | struct command_context * | cmd_ctx | ) |
Definition at line 539 of file arm_dap.c.
Referenced by setup_command_handler().
|
static |
Definition at line 419 of file arm_dap.c.
References jim_getopt_info::argc, jim_getopt_info::argv, dap_create(), jim_getopt_info::interp, and jim_getopt_setup().
|
static |
|
extern |
|
static |
|
static |
|
static |
Definition at line 160 of file arm_dap.c.
Referenced by dap_configure().