OpenOCD
|
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] |
#define AICE_PIPE_MAXLINE 8192 |
Definition at line 24 of file aice_pipe.c.
|
static |
Definition at line 377 of file aice_pipe.c.
References AICE_ASSERT_SRST, AICE_OK, AICE_PIPE_MAXLINE, aice_pipe_read(), aice_pipe_write(), ERROR_FAIL, and ERROR_OK.
|
static |
Definition at line 802 of file aice_pipe.c.
References AICE_CACHE_CTL, AICE_OK, AICE_PIPE_MAXLINE, aice_pipe_read(), aice_pipe_write(), ERROR_FAIL, ERROR_OK, and set_u32.
|
static |
Definition at line 191 of file aice_pipe.c.
References aice_port_param_s::adapter_name, aice_pipe_input, aice_pipe_output, ERROR_FAIL, ERROR_OK, LOG_ERROR, and param.
Referenced by aice_pipe_open().
|
static |
Definition at line 292 of file aice_pipe.c.
References AICE_CLOSE, AICE_OK, AICE_PIPE_MAXLINE, aice_pipe_read(), aice_pipe_write(), ERROR_FAIL, and ERROR_OK.
|
static |
Definition at line 416 of file aice_pipe.c.
References AICE_HALT, AICE_OK, AICE_PIPE_MAXLINE, aice_pipe_read(), aice_pipe_write(), ERROR_FAIL, and ERROR_OK.
|
static |
Definition at line 316 of file aice_pipe.c.
References AICE_IDCODE, AICE_PIPE_MAXLINE, aice_pipe_read(), aice_pipe_write(), ERROR_FAIL, ERROR_OK, and get_u32.
|
static |
Definition at line 740 of file aice_pipe.c.
References AICE_MEMORY_ACCESS, AICE_OK, AICE_PIPE_MAXLINE, aice_pipe_read(), aice_pipe_write(), ERROR_FAIL, ERROR_OK, and set_u32.
|
static |
Definition at line 760 of file aice_pipe.c.
References AICE_MEMORY_MODE, AICE_OK, AICE_PIPE_MAXLINE, aice_pipe_read(), aice_pipe_write(), ERROR_FAIL, ERROR_OK, and set_u32.
|
static |
Definition at line 258 of file aice_pipe.c.
References aice_pipe_child_init(), aice_pipe_input, aice_pipe_output, aice_pipe_parent_init(), ERROR_FAIL, ERROR_OK, LOG_ERROR, param, and sig_pipe().
|
static |
Definition at line 220 of file aice_pipe.c.
References AICE_OK, AICE_OPEN, aice_pipe_input, AICE_PIPE_MAXLINE, aice_pipe_output, aice_pipe_read(), aice_pipe_write(), ERROR_FAIL, ERROR_OK, LOG_ERROR, param, aice_port_param_s::pid, set_u16, and aice_port_param_s::vid.
Referenced by aice_pipe_open().
|
static |
Definition at line 165 of file aice_pipe.c.
References aice_pipe_input, buffer, count, keep_alive(), LOG_ERROR, and timeval_ms().
Referenced by aice_pipe_assert_srst(), aice_pipe_cache_ctl(), aice_pipe_close(), aice_pipe_halt(), aice_pipe_idcode(), aice_pipe_memory_access(), aice_pipe_memory_mode(), aice_pipe_parent_init(), aice_pipe_read_debug_reg(), aice_pipe_read_mem_bulk(), aice_pipe_read_mem_unit(), aice_pipe_read_reg(), aice_pipe_read_reg_64(), aice_pipe_read_tlb(), aice_pipe_reset(), aice_pipe_run(), aice_pipe_set_jtag_clock(), aice_pipe_state(), aice_pipe_step(), aice_pipe_write_debug_reg(), aice_pipe_write_mem_bulk(), aice_pipe_write_mem_unit(), aice_pipe_write_reg(), and aice_pipe_write_reg_64().
|
static |
Definition at line 680 of file aice_pipe.c.
References addr, AICE_PIPE_MAXLINE, aice_pipe_read(), aice_pipe_write(), AICE_READ_DEBUG_REG, ERROR_FAIL, ERROR_OK, get_u32, and set_u32.
|
static |
Definition at line 582 of file aice_pipe.c.
References addr, AICE_OK, AICE_PIPE_MAXLINE, aice_pipe_read(), aice_pipe_write(), AICE_READ_MEM_BULK, buffer, ERROR_FAIL, ERROR_OK, length, and set_u32.
|
static |
Definition at line 535 of file aice_pipe.c.
References addr, AICE_PIPE_MAXLINE, aice_pipe_read(), aice_pipe_write(), AICE_READ_MEM_UNIT, buffer, count, ERROR_FAIL, ERROR_OK, set_u32, and size.
|
static |
Definition at line 435 of file aice_pipe.c.
References AICE_PIPE_MAXLINE, aice_pipe_read(), aice_pipe_write(), AICE_READ_REG, ERROR_FAIL, ERROR_OK, get_u32, and set_u32.
|
static |
Definition at line 475 of file aice_pipe.c.
References AICE_PIPE_MAXLINE, aice_pipe_read(), aice_pipe_write(), AICE_READ_REG_64, ERROR_FAIL, ERROR_OK, get_u32, and set_u32.
|
static |
Definition at line 780 of file aice_pipe.c.
References AICE_OK, AICE_PIPE_MAXLINE, aice_pipe_read(), aice_pipe_write(), AICE_READ_TLB, ERROR_FAIL, ERROR_OK, get_u32, and set_u32.
|
static |
Definition at line 358 of file aice_pipe.c.
References AICE_OK, AICE_PIPE_MAXLINE, aice_pipe_read(), aice_pipe_write(), AICE_RESET, ERROR_FAIL, and ERROR_OK.
|
static |
Definition at line 397 of file aice_pipe.c.
References AICE_OK, AICE_PIPE_MAXLINE, aice_pipe_read(), aice_pipe_write(), AICE_RUN, ERROR_FAIL, and ERROR_OK.
|
static |
Definition at line 720 of file aice_pipe.c.
References AICE_OK, AICE_PIPE_MAXLINE, aice_pipe_read(), aice_pipe_write(), AICE_SET_JTAG_CLOCK, ERROR_FAIL, ERROR_OK, and set_u32.
|
static |
Definition at line 823 of file aice_pipe.c.
|
static |
Definition at line 340 of file aice_pipe.c.
References AICE_PIPE_MAXLINE, aice_pipe_read(), aice_pipe_write(), AICE_STATE, ERROR_FAIL, ERROR_OK, and state.
|
static |
Definition at line 516 of file aice_pipe.c.
References AICE_OK, AICE_PIPE_MAXLINE, aice_pipe_read(), aice_pipe_write(), AICE_STEP, ERROR_FAIL, and ERROR_OK.
|
static |
Definition at line 155 of file aice_pipe.c.
References aice_pipe_output, buffer, count, and LOG_ERROR.
Referenced by aice_pipe_assert_srst(), aice_pipe_cache_ctl(), aice_pipe_close(), aice_pipe_halt(), aice_pipe_idcode(), aice_pipe_memory_access(), aice_pipe_memory_mode(), aice_pipe_parent_init(), aice_pipe_read_debug_reg(), aice_pipe_read_mem_bulk(), aice_pipe_read_mem_unit(), aice_pipe_read_reg(), aice_pipe_read_reg_64(), aice_pipe_read_tlb(), aice_pipe_reset(), aice_pipe_run(), aice_pipe_set_jtag_clock(), aice_pipe_state(), aice_pipe_step(), aice_pipe_write_debug_reg(), aice_pipe_write_mem_bulk(), aice_pipe_write_mem_unit(), aice_pipe_write_reg(), and aice_pipe_write_reg_64().
|
static |
Definition at line 699 of file aice_pipe.c.
References addr, AICE_OK, AICE_PIPE_MAXLINE, aice_pipe_read(), aice_pipe_write(), AICE_WRITE_DEBUG_REG, ERROR_FAIL, ERROR_OK, and set_u32.
|
static |
Definition at line 629 of file aice_pipe.c.
References addr, AICE_ERROR, AICE_OK, AICE_PIPE_MAXLINE, aice_pipe_read(), aice_pipe_write(), AICE_WRITE_MEM_BULK, buffer, ERROR_FAIL, ERROR_OK, length, and set_u32.
|
static |
Definition at line 554 of file aice_pipe.c.
References addr, AICE_OK, AICE_PIPE_MAXLINE, aice_pipe_read(), aice_pipe_write(), AICE_WRITE_MEM_UNIT, buffer, count, ERROR_FAIL, ERROR_OK, set_u32, and size.
|
static |
Definition at line 454 of file aice_pipe.c.
References AICE_OK, AICE_PIPE_MAXLINE, aice_pipe_read(), aice_pipe_write(), AICE_WRITE_REG, ERROR_FAIL, ERROR_OK, and set_u32.
|
static |
Definition at line 494 of file aice_pipe.c.
References AICE_OK, AICE_PIPE_MAXLINE, aice_pipe_read(), aice_pipe_write(), AICE_WRITE_REG_64, ERROR_FAIL, ERROR_OK, and set_u32.
|
static |
Definition at line 253 of file aice_pipe.c.
Referenced by aice_pipe_open().
struct aice_port_api_s aice_pipe |
Definition at line 823 of file aice_pipe.c.
|
static |
Definition at line 153 of file aice_pipe.c.
Referenced by aice_pipe_child_init(), aice_pipe_open(), aice_pipe_parent_init(), and aice_pipe_read().
|
static |
Definition at line 152 of file aice_pipe.c.
Referenced by aice_pipe_child_init(), aice_pipe_open(), aice_pipe_parent_init(), and aice_pipe_write().