OpenOCD
nds32_aice.h File Reference
Include dependency graph for nds32_aice.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

static int aice_assert_srst (struct aice_port_s *aice, enum aice_srst_type_s srst)
 
int aice_cache_ctl (struct aice_port_s *aice, uint32_t subtype, uint32_t address)
 
static int aice_close (struct aice_port_s *aice)
 
int aice_execute (struct aice_port_s *aice, uint32_t *instructions, uint32_t instruction_num)
 
static int aice_halt (struct aice_port_s *aice)
 
static int aice_idcode (struct aice_port_s *aice, uint32_t *idcode, uint8_t *num_of_idcode)
 
static int aice_memory_access (struct aice_port_s *aice, enum nds_memory_access a_access)
 
static int aice_memory_mode (struct aice_port_s *aice, enum nds_memory_select mem_select)
 
static int aice_open (struct aice_port_s *aice, struct aice_port_param_s *param)
 
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_program_edm (struct aice_port_s *aice, char *command_sequence)
 
static int aice_read_debug_reg (struct aice_port_s *aice, uint32_t addr, uint32_t *val)
 
static int aice_read_mem_bulk (struct aice_port_s *aice, uint32_t addr, uint32_t length, uint8_t *buffer)
 
static int aice_read_mem_unit (struct aice_port_s *aice, uint32_t addr, uint32_t size, uint32_t count, uint8_t *buffer)
 
int aice_read_reg_64 (struct aice_port_s *aice, uint32_t num, uint64_t *val)
 
static int aice_read_register (struct aice_port_s *aice, uint32_t num, uint32_t *val)
 
int aice_read_tlb (struct aice_port_s *aice, target_addr_t virtual_address, target_addr_t *physical_address)
 
static int aice_reset (struct aice_port_s *aice)
 
static int aice_run (struct aice_port_s *aice)
 
int aice_set_command_mode (struct aice_port_s *aice, enum aice_command_mode command_mode)
 
int aice_set_count_to_check_dbger (struct aice_port_s *aice, uint32_t count_to_check)
 
int aice_set_custom_restart_script (struct aice_port_s *aice, const char *script)
 
int aice_set_custom_srst_script (struct aice_port_s *aice, const char *script)
 
int aice_set_custom_trst_script (struct aice_port_s *aice, const char *script)
 
static int aice_set_data_endian (struct aice_port_s *aice, enum aice_target_endian target_data_endian)
 
static int aice_set_jtag_clock (struct aice_port_s *aice, uint32_t a_clock)
 
int aice_set_retry_times (struct aice_port_s *aice, uint32_t a_retry_times)
 
static int aice_state (struct aice_port_s *aice, enum aice_target_state_s *state)
 
static int aice_step (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_write_mem_bulk (struct aice_port_s *aice, uint32_t addr, uint32_t length, const 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_write_reg_64 (struct aice_port_s *aice, uint32_t num, uint64_t val)
 
static int aice_write_register (struct aice_port_s *aice, uint32_t num, uint32_t val)
 

Function Documentation

static int aice_assert_srst ( struct aice_port_s aice,
enum aice_srst_type_s  srst 
)
inlinestatic
int aice_cache_ctl ( struct aice_port_s aice,
uint32_t  subtype,
uint32_t  address 
)
static int aice_close ( struct aice_port_s aice)
inlinestatic

Definition at line 47 of file nds32_aice.h.

References aice_port::api, aice_port_api_s::close, and aice_port_s::port.

int aice_execute ( struct aice_port_s aice,
uint32_t *  instructions,
uint32_t  instruction_num 
)
static int aice_halt ( struct aice_port_s aice)
inlinestatic

Definition at line 68 of file nds32_aice.h.

References aice_port::api, aice_port_s::coreid, aice_port_api_s::halt, and aice_port_s::port.

Referenced by nds32_halt().

static int aice_idcode ( struct aice_port_s aice,
uint32_t *  idcode,
uint8_t *  num_of_idcode 
)
inlinestatic

Definition at line 126 of file nds32_aice.h.

References aice_port::api, aice_port_api_s::idcode, and aice_port_s::port.

static int aice_memory_mode ( struct aice_port_s aice,
enum nds_memory_select  mem_select 
)
inlinestatic
static int aice_open ( struct aice_port_s aice,
struct aice_port_param_s param 
)
inlinestatic

Definition at line 42 of file nds32_aice.h.

References aice_port::api, aice_port_api_s::open, and aice_port_s::port.

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_program_edm ( struct aice_port_s aice,
char *  command_sequence 
)
static int aice_read_mem_bulk ( struct aice_port_s aice,
uint32_t  addr,
uint32_t  length,
uint8_t *  buffer 
)
inlinestatic
static int aice_read_mem_unit ( struct aice_port_s aice,
uint32_t  addr,
uint32_t  size,
uint32_t  count,
uint8_t *  buffer 
)
inlinestatic
int aice_read_reg_64 ( struct aice_port_s aice,
uint32_t  num,
uint64_t *  val 
)
static int aice_read_register ( struct aice_port_s aice,
uint32_t  num,
uint32_t *  val 
)
inlinestatic
int aice_read_tlb ( struct aice_port_s aice,
target_addr_t  virtual_address,
target_addr_t physical_address 
)
static int aice_reset ( struct aice_port_s aice)
inlinestatic

Definition at line 52 of file nds32_aice.h.

References aice_port::api, aice_port_s::port, and aice_port_api_s::reset.

static int aice_run ( struct aice_port_s aice)
inlinestatic

Definition at line 63 of file nds32_aice.h.

References aice_port::api, aice_port_s::coreid, aice_port_s::port, and aice_port_api_s::run.

Referenced by nds32_poll(), and nds32_resume().

int aice_set_command_mode ( struct aice_port_s aice,
enum aice_command_mode  command_mode 
)
int aice_set_count_to_check_dbger ( struct aice_port_s aice,
uint32_t  count_to_check 
)
int aice_set_custom_restart_script ( struct aice_port_s aice,
const char *  script 
)
int aice_set_custom_srst_script ( struct aice_port_s aice,
const char *  script 
)
int aice_set_custom_trst_script ( struct aice_port_s aice,
const char *  script 
)
static int aice_set_data_endian ( struct aice_port_s aice,
enum aice_target_endian  target_data_endian 
)
inlinestatic
static int aice_set_jtag_clock ( struct aice_port_s aice,
uint32_t  a_clock 
)
inlinestatic

Definition at line 138 of file nds32_aice.h.

References aice_port::api, aice_port_s::port, and aice_port_api_s::set_jtag_clock.

int aice_set_retry_times ( struct aice_port_s aice,
uint32_t  a_retry_times 
)
static int aice_state ( struct aice_port_s aice,
enum aice_target_state_s state 
)
inlinestatic
static int aice_step ( struct aice_port_s aice)
inlinestatic
static int aice_write_mem_bulk ( struct aice_port_s aice,
uint32_t  addr,
uint32_t  length,
const uint8_t *  buffer 
)
inlinestatic
static int aice_write_mem_unit ( struct aice_port_s aice,
uint32_t  addr,
uint32_t  size,
uint32_t  count,
const uint8_t *  buffer 
)
inlinestatic
int aice_write_reg_64 ( struct aice_port_s aice,
uint32_t  num,
uint64_t  val 
)
static int aice_write_register ( struct aice_port_s aice,
uint32_t  num,
uint32_t  val 
)
inlinestatic