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

◆ aice_assert_srst()

static int aice_assert_srst ( struct aice_port_s aice,
enum aice_srst_type_s  srst 
)
inlinestatic

◆ aice_cache_ctl()

int aice_cache_ctl ( struct aice_port_s aice,
uint32_t  subtype,
uint32_t  address 
)

◆ aice_close()

static int aice_close ( struct aice_port_s aice)
inlinestatic

Definition at line 36 of file nds32_aice.h.

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

◆ aice_execute()

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

◆ aice_halt()

static int aice_halt ( struct aice_port_s aice)
inlinestatic

Definition at line 57 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().

◆ aice_idcode()

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

Definition at line 115 of file nds32_aice.h.

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

◆ aice_memory_access()

◆ aice_memory_mode()

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

◆ aice_open()

static int aice_open ( struct aice_port_s aice,
struct aice_port_param_s param 
)
inlinestatic

Definition at line 31 of file nds32_aice.h.

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

◆ aice_profiling()

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 
)

◆ aice_program_edm()

int aice_program_edm ( struct aice_port_s aice,
char *  command_sequence 
)

◆ aice_read_debug_reg()

◆ aice_read_mem_bulk()

static int aice_read_mem_bulk ( struct aice_port_s aice,
uint32_t  addr,
uint32_t  length,
uint8_t *  buffer 
)
inlinestatic

◆ aice_read_mem_unit()

static int aice_read_mem_unit ( struct aice_port_s aice,
uint32_t  addr,
uint32_t  size,
uint32_t  count,
uint8_t *  buffer 
)
inlinestatic

◆ aice_read_reg_64()

int aice_read_reg_64 ( struct aice_port_s aice,
uint32_t  num,
uint64_t *  val 
)

◆ aice_read_register()

static int aice_read_register ( struct aice_port_s aice,
uint32_t  num,
uint32_t *  val 
)
inlinestatic

◆ aice_read_tlb()

int aice_read_tlb ( struct aice_port_s aice,
target_addr_t  virtual_address,
target_addr_t physical_address 
)

◆ aice_reset()

static int aice_reset ( struct aice_port_s aice)
inlinestatic

Definition at line 41 of file nds32_aice.h.

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

◆ aice_run()

static int aice_run ( struct aice_port_s aice)
inlinestatic

Definition at line 52 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().

◆ aice_set_command_mode()

int aice_set_command_mode ( struct aice_port_s aice,
enum aice_command_mode  command_mode 
)

◆ aice_set_count_to_check_dbger()

int aice_set_count_to_check_dbger ( struct aice_port_s aice,
uint32_t  count_to_check 
)

◆ aice_set_custom_restart_script()

int aice_set_custom_restart_script ( struct aice_port_s aice,
const char *  script 
)

◆ aice_set_custom_srst_script()

int aice_set_custom_srst_script ( struct aice_port_s aice,
const char *  script 
)

◆ aice_set_custom_trst_script()

int aice_set_custom_trst_script ( struct aice_port_s aice,
const char *  script 
)

◆ aice_set_data_endian()

static int aice_set_data_endian ( struct aice_port_s aice,
enum aice_target_endian  target_data_endian 
)
inlinestatic

◆ aice_set_jtag_clock()

static int aice_set_jtag_clock ( struct aice_port_s aice,
uint32_t  a_clock 
)
inlinestatic

Definition at line 127 of file nds32_aice.h.

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

◆ aice_set_retry_times()

int aice_set_retry_times ( struct aice_port_s aice,
uint32_t  a_retry_times 
)

◆ aice_state()

static int aice_state ( struct aice_port_s aice,
enum aice_target_state_s state 
)
inlinestatic

◆ aice_step()

static int aice_step ( struct aice_port_s aice)
inlinestatic

◆ aice_write_debug_reg()

◆ aice_write_mem_bulk()

static int aice_write_mem_bulk ( struct aice_port_s aice,
uint32_t  addr,
uint32_t  length,
const uint8_t *  buffer 
)
inlinestatic

◆ aice_write_mem_unit()

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

◆ aice_write_reg_64()

int aice_write_reg_64 ( struct aice_port_s aice,
uint32_t  num,
uint64_t  val 
)

◆ aice_write_register()

static int aice_write_register ( struct aice_port_s aice,
uint32_t  num,
uint32_t  val 
)
inlinestatic