8 #ifndef OPENOCD_TARGET_NDS32_AICE_H
9 #define OPENOCD_TARGET_NDS32_AICE_H
23 uint32_t instruction_num);
29 uint32_t reg_no, uint32_t *samples, uint32_t *num_samples);
116 uint8_t *num_of_idcode)
static struct aice_port_param_s param
command_mode
OpenOCD command mode is COMMAND_CONFIG at start, then switches to COMMAND_EXEC during the execution o...
static const struct @102 instructions[]
int aice_set_custom_srst_script(struct aice_port_s *aice, const char *script)
static int aice_open(struct aice_port_s *aice, struct aice_port_param_s *param)
static int aice_close(struct aice_port_s *aice)
static int aice_write_debug_reg(struct aice_port_s *aice, uint32_t addr, const uint32_t val)
static int aice_set_data_endian(struct aice_port_s *aice, enum aice_target_endian target_data_endian)
static int aice_state(struct aice_port_s *aice, enum aice_target_state_s *state)
static int aice_idcode(struct aice_port_s *aice, uint32_t *idcode, uint8_t *num_of_idcode)
int aice_set_custom_trst_script(struct aice_port_s *aice, const char *script)
int aice_write_reg_64(struct aice_port_s *aice, uint32_t num, uint64_t val)
static int aice_assert_srst(struct aice_port_s *aice, enum aice_srst_type_s srst)
int aice_program_edm(struct aice_port_s *aice, char *command_sequence)
int aice_set_count_to_check_dbger(struct aice_port_s *aice, uint32_t count_to_check)
static int aice_run(struct aice_port_s *aice)
static int aice_halt(struct aice_port_s *aice)
static int aice_read_mem_bulk(struct aice_port_s *aice, uint32_t addr, uint32_t length, uint8_t *buffer)
static int aice_read_debug_reg(struct aice_port_s *aice, uint32_t addr, uint32_t *val)
static int aice_read_register(struct aice_port_s *aice, uint32_t num, uint32_t *val)
static int aice_set_jtag_clock(struct aice_port_s *aice, uint32_t a_clock)
int aice_profiling(struct aice_port_s *aice, uint32_t interval, uint32_t iteration, uint32_t reg_no, uint32_t *samples, uint32_t *num_samples)
int aice_read_reg_64(struct aice_port_s *aice, uint32_t num, uint64_t *val)
int aice_cache_ctl(struct aice_port_s *aice, uint32_t subtype, uint32_t address)
static int aice_step(struct aice_port_s *aice)
int aice_set_command_mode(struct aice_port_s *aice, enum aice_command_mode command_mode)
static int aice_write_mem_bulk(struct aice_port_s *aice, uint32_t addr, uint32_t length, const uint8_t *buffer)
int aice_set_retry_times(struct aice_port_s *aice, uint32_t a_retry_times)
int aice_read_tlb(struct aice_port_s *aice, target_addr_t virtual_address, target_addr_t *physical_address)
static int aice_read_mem_unit(struct aice_port_s *aice, uint32_t addr, uint32_t size, uint32_t count, uint8_t *buffer)
static int aice_write_mem_unit(struct aice_port_s *aice, uint32_t addr, uint32_t size, uint32_t count, const uint8_t *buffer)
int aice_execute(struct aice_port_s *aice, uint32_t *instructions, uint32_t instruction_num)
static int aice_write_register(struct aice_port_s *aice, uint32_t num, uint32_t val)
static int aice_memory_access(struct aice_port_s *aice, enum nds_memory_access a_access)
int aice_set_custom_restart_script(struct aice_port_s *aice, const char *script)
static int aice_memory_mode(struct aice_port_s *aice, enum nds_memory_select mem_select)
static int aice_reset(struct aice_port_s *aice)
size_t size
Size of the control block search area.
int(* assert_srst)(uint32_t coreid, enum aice_srst_type_s srst)
int(* read_mem_bulk)(uint32_t coreid, uint32_t addr, uint32_t length, uint8_t *buffer)
int(* read_mem_unit)(uint32_t coreid, uint32_t addr, uint32_t size, uint32_t count, uint8_t *buffer)
int(* memory_mode)(uint32_t coreid, enum nds_memory_select mem_select)
int(* set_data_endian)(uint32_t coreid, enum aice_target_endian target_data_endian)
int(* halt)(uint32_t coreid)
int(* state)(uint32_t coreid, enum aice_target_state_s *state)
int(* open)(struct aice_port_param_s *param)
int(* write_debug_reg)(uint32_t coreid, uint32_t addr, const uint32_t val)
int(* write_reg)(uint32_t coreid, uint32_t num, uint32_t val)
int(* step)(uint32_t coreid)
int(* write_mem_bulk)(uint32_t coreid, uint32_t addr, uint32_t length, const uint8_t *buffer)
int(* memory_access)(uint32_t coreid, enum nds_memory_access a_access)
int(* read_reg)(uint32_t coreid, uint32_t num, uint32_t *val)
int(* write_mem_unit)(uint32_t coreid, uint32_t addr, uint32_t size, uint32_t count, const uint8_t *buffer)
int(* idcode)(uint32_t *idcode, uint8_t *num_of_idcode)
int(* set_jtag_clock)(uint32_t a_clock)
int(* run)(uint32_t coreid)
int(* read_debug_reg)(uint32_t coreid, uint32_t addr, uint32_t *val)
const struct aice_port * port
struct aice_port_api_s *const api