OpenOCD
aice_pipe.c File Reference
Include dependency graph for aice_pipe.c:

Go to the source code of this file.

Macros

#define AICE_PIPE_MAXLINE   8192
 

Functions

static int aice_pipe_assert_srst (uint32_t coreid, enum aice_srst_type_s srst)
 
static int aice_pipe_cache_ctl (uint32_t coreid, uint32_t subtype, uint32_t address)
 
static int aice_pipe_child_init (struct aice_port_param_s *param)
 
static int aice_pipe_close (void)
 
static int aice_pipe_halt (uint32_t coreid)
 
static int aice_pipe_idcode (uint32_t *idcode, uint8_t *num_of_idcode)
 
static int aice_pipe_memory_access (uint32_t coreid, enum nds_memory_access access_channel)
 
static int aice_pipe_memory_mode (uint32_t coreid, enum nds_memory_select mem_select)
 
static int aice_pipe_open (struct aice_port_param_s *param)
 
static int aice_pipe_parent_init (struct aice_port_param_s *param)
 
static int aice_pipe_read (void *buffer, int count)
 
static int aice_pipe_read_debug_reg (uint32_t coreid, uint32_t addr, uint32_t *val)
 
static int aice_pipe_read_mem_bulk (uint32_t coreid, uint32_t addr, uint32_t length, uint8_t *buffer)
 
static int aice_pipe_read_mem_unit (uint32_t coreid, uint32_t addr, uint32_t size, uint32_t count, uint8_t *buffer)
 
static int aice_pipe_read_reg (uint32_t coreid, uint32_t num, uint32_t *val)
 
static int aice_pipe_read_reg_64 (uint32_t coreid, uint32_t num, uint64_t *val)
 
static int aice_pipe_read_tlb (uint32_t coreid, target_addr_t virtual_address, target_addr_t *physical_address)
 
static int aice_pipe_reset (void)
 
static int aice_pipe_run (uint32_t coreid)
 
static int aice_pipe_set_jtag_clock (uint32_t a_clock)
 
static int aice_pipe_set_retry_times (uint32_t a_retry_times)
 
static int aice_pipe_state (uint32_t coreid, enum aice_target_state_s *state)
 
static int aice_pipe_step (uint32_t coreid)
 
static int aice_pipe_write (const void *buffer, int count)
 
static int aice_pipe_write_debug_reg (uint32_t coreid, uint32_t addr, const uint32_t val)
 
static int aice_pipe_write_mem_bulk (uint32_t coreid, uint32_t addr, uint32_t length, const uint8_t *buffer)
 
static int aice_pipe_write_mem_unit (uint32_t coreid, uint32_t addr, uint32_t size, uint32_t count, const uint8_t *buffer)
 
static int aice_pipe_write_reg (uint32_t coreid, uint32_t num, uint32_t val)
 
static int aice_pipe_write_reg_64 (uint32_t coreid, uint32_t num, uint64_t val)
 
static void sig_pipe (int signo)
 

Variables

struct aice_port_api_s aice_pipe
 
static int aice_pipe_input [2]
 
static int aice_pipe_output [2]
 

Macro Definition Documentation

◆ AICE_PIPE_MAXLINE

#define AICE_PIPE_MAXLINE   8192

Definition at line 24 of file aice_pipe.c.

Function Documentation

◆ aice_pipe_assert_srst()

static int aice_pipe_assert_srst ( uint32_t  coreid,
enum aice_srst_type_s  srst 
)
static

◆ aice_pipe_cache_ctl()

static int aice_pipe_cache_ctl ( uint32_t  coreid,
uint32_t  subtype,
uint32_t  address 
)
static

◆ aice_pipe_child_init()

static int aice_pipe_child_init ( struct aice_port_param_s param)
static

◆ aice_pipe_close()

static int aice_pipe_close ( void  )
static

◆ aice_pipe_halt()

static int aice_pipe_halt ( uint32_t  coreid)
static

◆ aice_pipe_idcode()

static int aice_pipe_idcode ( uint32_t *  idcode,
uint8_t *  num_of_idcode 
)
static

◆ aice_pipe_memory_access()

static int aice_pipe_memory_access ( uint32_t  coreid,
enum nds_memory_access  access_channel 
)
static

◆ aice_pipe_memory_mode()

static int aice_pipe_memory_mode ( uint32_t  coreid,
enum nds_memory_select  mem_select 
)
static

◆ aice_pipe_open()

static int aice_pipe_open ( struct aice_port_param_s param)
static

◆ aice_pipe_parent_init()

◆ aice_pipe_read()

◆ aice_pipe_read_debug_reg()

static int aice_pipe_read_debug_reg ( uint32_t  coreid,
uint32_t  addr,
uint32_t *  val 
)
static

◆ aice_pipe_read_mem_bulk()

static int aice_pipe_read_mem_bulk ( uint32_t  coreid,
uint32_t  addr,
uint32_t  length,
uint8_t *  buffer 
)
static

◆ aice_pipe_read_mem_unit()

static int aice_pipe_read_mem_unit ( uint32_t  coreid,
uint32_t  addr,
uint32_t  size,
uint32_t  count,
uint8_t *  buffer 
)
static

◆ aice_pipe_read_reg()

static int aice_pipe_read_reg ( uint32_t  coreid,
uint32_t  num,
uint32_t *  val 
)
static

◆ aice_pipe_read_reg_64()

static int aice_pipe_read_reg_64 ( uint32_t  coreid,
uint32_t  num,
uint64_t *  val 
)
static

◆ aice_pipe_read_tlb()

static int aice_pipe_read_tlb ( uint32_t  coreid,
target_addr_t  virtual_address,
target_addr_t physical_address 
)
static

◆ aice_pipe_reset()

static int aice_pipe_reset ( void  )
static

◆ aice_pipe_run()

static int aice_pipe_run ( uint32_t  coreid)
static

◆ aice_pipe_set_jtag_clock()

static int aice_pipe_set_jtag_clock ( uint32_t  a_clock)
static

◆ aice_pipe_set_retry_times()

static int aice_pipe_set_retry_times ( uint32_t  a_retry_times)
static

Definition at line 823 of file aice_pipe.c.

◆ aice_pipe_state()

static int aice_pipe_state ( uint32_t  coreid,
enum aice_target_state_s state 
)
static

◆ aice_pipe_step()

static int aice_pipe_step ( uint32_t  coreid)
static

◆ aice_pipe_write()

◆ aice_pipe_write_debug_reg()

static int aice_pipe_write_debug_reg ( uint32_t  coreid,
uint32_t  addr,
const uint32_t  val 
)
static

◆ aice_pipe_write_mem_bulk()

static int aice_pipe_write_mem_bulk ( uint32_t  coreid,
uint32_t  addr,
uint32_t  length,
const uint8_t *  buffer 
)
static

◆ aice_pipe_write_mem_unit()

static int aice_pipe_write_mem_unit ( uint32_t  coreid,
uint32_t  addr,
uint32_t  size,
uint32_t  count,
const uint8_t *  buffer 
)
static

◆ aice_pipe_write_reg()

static int aice_pipe_write_reg ( uint32_t  coreid,
uint32_t  num,
uint32_t  val 
)
static

◆ aice_pipe_write_reg_64()

static int aice_pipe_write_reg_64 ( uint32_t  coreid,
uint32_t  num,
uint64_t  val 
)
static

◆ sig_pipe()

static void sig_pipe ( int  signo)
static

Definition at line 253 of file aice_pipe.c.

Referenced by aice_pipe_open().

Variable Documentation

◆ aice_pipe

struct aice_port_api_s aice_pipe

Definition at line 823 of file aice_pipe.c.

◆ aice_pipe_input

int aice_pipe_input[2]
static

◆ aice_pipe_output

int aice_pipe_output[2]
static