OpenOCD
|
Go to the source code of this file.
Macros | |
#define | CTI_APPCLEAR 0x18 |
#define | CTI_APPPULSE 0x1C |
#define | CTI_APPSET 0x14 |
#define | CTI_CHIN_STATUS 0x138 |
#define | CTI_CHNL(x) (1 << x) |
#define | CTI_CHOU_STATUS 0x13C |
#define | CTI_CTR 0x0 |
#define | CTI_DEVCTL 0x150 |
#define | CTI_GATE 0x140 |
#define | CTI_INACK 0x10 |
#define | CTI_INEN(n) (0x20 + 4 * n) |
#define | CTI_INEN0 0x20 |
#define | CTI_INEN1 0x24 |
#define | CTI_INEN2 0x28 |
#define | CTI_INEN3 0x2C |
#define | CTI_INEN4 0x30 |
#define | CTI_INEN5 0x34 |
#define | CTI_INEN6 0x38 |
#define | CTI_INEN7 0x3C |
#define | CTI_INEN8 0x40 |
#define | CTI_OUTEN(n) (0xA0 + 4 * n) |
#define | CTI_OUTEN0 0xA0 |
#define | CTI_OUTEN1 0xA4 |
#define | CTI_OUTEN2 0xA8 |
#define | CTI_OUTEN3 0xAC |
#define | CTI_OUTEN4 0xB0 |
#define | CTI_OUTEN5 0xB4 |
#define | CTI_OUTEN6 0xB8 |
#define | CTI_OUTEN7 0xBC |
#define | CTI_OUTEN8 0xC0 |
#define | CTI_TRIG(n) (1 << CTI_TRIG_##n) |
#define | CTI_TRIG_HALT 0 |
#define | CTI_TRIG_RESUME 1 |
#define | CTI_TRIN_STATUS 0x130 |
#define | CTI_TROUT_STATUS 0x134 |
#define | CTI_UNLOCK 0xFB0 |
Functions | |
int | arm_cti_ack_events (struct arm_cti *self, uint32_t event) |
int | arm_cti_cleanup_all (void) |
int | arm_cti_clear_channel (struct arm_cti *self, uint32_t channel) |
int | arm_cti_enable (struct arm_cti *self, bool enable) |
int | arm_cti_gate_channel (struct arm_cti *self, uint32_t channel) |
const char * | arm_cti_name (struct arm_cti *self) |
int | arm_cti_pulse_channel (struct arm_cti *self, uint32_t channel) |
int | arm_cti_read_reg (struct arm_cti *self, unsigned int reg, uint32_t *value) |
int | arm_cti_set_channel (struct arm_cti *self, uint32_t channel) |
int | arm_cti_ungate_channel (struct arm_cti *self, uint32_t channel) |
int | arm_cti_write_reg (struct arm_cti *self, unsigned int reg, uint32_t value) |
struct arm_cti * | cti_instance_by_jim_obj (Jim_Interp *interp, Jim_Obj *o) |
int | cti_register_commands (struct command_context *cmd_ctx) |
int arm_cti_ack_events | ( | struct arm_cti * | self, |
uint32_t | event | ||
) |
Definition at line 81 of file arm_cti.c.
References CTI_INACK, CTI_TROUT_STATUS, ERROR_OK, ERROR_TARGET_TIMEOUT, LOG_ERROR, mem_ap_read_atomic_u32(), mem_ap_write_atomic_u32(), and timeval_ms().
Referenced by aarch64_debug_entry(), aarch64_prepare_restart_one(), and COMMAND_HANDLER().
int arm_cti_cleanup_all | ( | void | ) |
Definition at line 206 of file arm_cti.c.
References arm_cti::ap, dap_put_ap(), ERROR_OK, lh(), list_for_each_entry_safe, and arm_cti::name.
Referenced by openocd_main().
int arm_cti_clear_channel | ( | struct arm_cti * | self, |
uint32_t | channel | ||
) |
Definition at line 152 of file arm_cti.c.
References arm_cti_write_reg(), CTI_APPCLEAR, CTI_CHNL, and ERROR_COMMAND_ARGUMENT_INVALID.
Referenced by COMMAND_HANDLER().
int arm_cti_enable | ( | struct arm_cti * | self, |
bool | enable | ||
) |
Definition at line 74 of file arm_cti.c.
References CTI_CTR, and mem_ap_write_atomic_u32().
Referenced by aarch64_init_debug_access(), and COMMAND_HANDLER().
int arm_cti_gate_channel | ( | struct arm_cti * | self, |
uint32_t | channel | ||
) |
Definition at line 107 of file arm_cti.c.
References arm_cti_mod_reg_bits(), CTI_CHNL, CTI_GATE, and ERROR_COMMAND_ARGUMENT_INVALID.
Referenced by aarch64_prepare_restart_one(), aarch64_step(), and COMMAND_HANDLER().
const char* arm_cti_name | ( | struct arm_cti * | self | ) |
Definition at line 30 of file arm_cti.c.
Referenced by aarch64_jim_configure().
int arm_cti_pulse_channel | ( | struct arm_cti * | self, |
uint32_t | channel | ||
) |
Definition at line 136 of file arm_cti.c.
References arm_cti_write_reg(), CTI_APPPULSE, CTI_CHNL, and ERROR_COMMAND_ARGUMENT_INVALID.
Referenced by aarch64_do_restart_one(), aarch64_halt_one(), and COMMAND_HANDLER().
int arm_cti_read_reg | ( | struct arm_cti * | self, |
unsigned int | reg, | ||
uint32_t * | value | ||
) |
Definition at line 128 of file arm_cti.c.
References ERROR_COMMAND_ARGUMENT_INVALID, and mem_ap_read_atomic_u32().
Referenced by COMMAND_HANDLER().
int arm_cti_set_channel | ( | struct arm_cti * | self, |
uint32_t | channel | ||
) |
Definition at line 144 of file arm_cti.c.
References arm_cti_write_reg(), CTI_APPSET, CTI_CHNL, and ERROR_COMMAND_ARGUMENT_INVALID.
Referenced by COMMAND_HANDLER().
int arm_cti_ungate_channel | ( | struct arm_cti * | self, |
uint32_t | channel | ||
) |
Definition at line 115 of file arm_cti.c.
References arm_cti_mod_reg_bits(), CTI_CHNL, CTI_GATE, and ERROR_COMMAND_ARGUMENT_INVALID.
Referenced by aarch64_prepare_halt_smp(), aarch64_prepare_restart_one(), and COMMAND_HANDLER().
int arm_cti_write_reg | ( | struct arm_cti * | self, |
unsigned int | reg, | ||
uint32_t | value | ||
) |
Definition at line 123 of file arm_cti.c.
References mem_ap_write_atomic_u32().
Referenced by aarch64_debug_entry(), aarch64_init_debug_access(), arm_cti_clear_channel(), arm_cti_pulse_channel(), arm_cti_set_channel(), and COMMAND_HANDLER().
struct arm_cti* cti_instance_by_jim_obj | ( | Jim_Interp * | interp, |
Jim_Obj * | o | ||
) |
Definition at line 35 of file arm_cti.c.
References lh(), list_for_each_entry, arm_cti::name, name, and NULL.
Referenced by aarch64_jim_configure().
int cti_register_commands | ( | struct command_context * | cmd_ctx | ) |
Definition at line 567 of file arm_cti.c.
Referenced by setup_command_handler().