8 #ifndef OPENOCD_JTAG_AICE_AICE_PORT_H
9 #define OPENOCD_JTAG_AICE_AICE_PORT_H
13 #define AICE_MAX_NUM_CORE (0x10)
15 #define ERROR_AICE_DISCONNECT (-200)
16 #define ERROR_AICE_TIMEOUT (-201)
131 int (*
run)(uint32_t coreid);
137 int (*
read_reg)(uint32_t coreid, uint32_t num, uint32_t *val);
139 int (*
write_reg)(uint32_t coreid, uint32_t num, uint32_t val);
173 int (*
cache_ctl)(uint32_t coreid, uint32_t subtype, uint32_t address);
203 int (*
profiling)(uint32_t coreid, uint32_t interval, uint32_t iteration,
204 uint32_t reg_no, uint32_t *samples, uint32_t *num_samples);
207 #define AICE_PORT_UNKNOWN 0
208 #define AICE_PORT_AICE_USB 1
209 #define AICE_PORT_AICE_PIPE 2
static struct aice_port_param_s param
@ AICE_COMMAND_MODE_BATCH
@ AICE_COMMAND_MODE_NORMAL
struct aice_port_api_s aice_usb_layout_api
const struct aice_port * aice_port_get_list(void)
@ AICE_TARGET_DEBUG_RUNNING
@ AICE_CACHE_CTL_L1D_VA_INVAL
@ AICE_CACHE_CTL_L1D_WBALL
@ AICE_CACHE_CTL_L1D_VA_WB
@ AICE_CACHE_CTL_L1I_VA_INVAL
@ AICE_CACHE_CTL_L1D_INVALALL
@ AICE_CACHE_CTL_L1I_INVALALL
@ AICE_SET_CUSTOM_RESTART_SCRIPT
@ AICE_SET_CUSTOM_TRST_SCRIPT
@ AICE_SET_COUNT_TO_CHECK_DBGER
@ AICE_SET_CUSTOM_SRST_SCRIPT
command_mode
OpenOCD command mode is COMMAND_CONFIG at start, then switches to COMMAND_EXEC during the execution o...
static const struct @102 instructions[]
This is the interface to the Embedded Debug Module for Andes cores.
size_t size
Size of the control block search area.
int(* read_reg_64)(uint32_t coreid, uint32_t num, uint64_t *val)
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(* set_command_mode)(enum aice_command_mode command_mode)
int(* read_mem_unit)(uint32_t coreid, uint32_t addr, uint32_t size, uint32_t count, uint8_t *buffer)
int(* program_edm)(uint32_t coreid, char *command_sequence)
int(* execute)(uint32_t coreid, uint32_t *instructions, uint32_t instruction_num)
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(* set_retry_times)(uint32_t a_retry_times)
int(* set_custom_restart_script)(const char *script)
int(* set_custom_srst_script)(const char *script)
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_reg_64)(uint32_t coreid, uint32_t num, uint64_t val)
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(* set_count_to_check_dbger)(uint32_t count_to_check)
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(* cache_ctl)(uint32_t coreid, uint32_t subtype, uint32_t address)
int(* set_custom_trst_script)(const char *script)
int(* read_debug_reg)(uint32_t coreid, uint32_t addr, uint32_t *val)
int(* read_tlb)(uint32_t coreid, target_addr_t virtual_address, target_addr_t *physical_address)
int(* profiling)(uint32_t coreid, uint32_t interval, uint32_t iteration, uint32_t reg_no, uint32_t *samples, uint32_t *num_samples)
const struct aice_port * port
struct aice_port_api_s *const api