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

Go to the source code of this file.

Data Structures

struct  aice_port
 
struct  aice_port_api_s
 
struct  aice_port_param_s
 
struct  aice_port_s
 

Macros

#define AICE_MAX_NUM_CORE   (0x10)
 
#define AICE_PORT_AICE_PIPE   2
 
#define AICE_PORT_AICE_USB   1
 
#define AICE_PORT_UNKNOWN   0
 
#define ERROR_AICE_DISCONNECT   (-200)
 
#define ERROR_AICE_TIMEOUT   (-201)
 

Enumerations

enum  aice_api_s {
  AICE_OPEN = 0x0 , AICE_CLOSE , AICE_RESET , AICE_IDCODE ,
  AICE_SET_JTAG_CLOCK , AICE_ASSERT_SRST , AICE_RUN , AICE_HALT ,
  AICE_STEP , AICE_READ_REG , AICE_WRITE_REG , AICE_READ_REG_64 ,
  AICE_WRITE_REG_64 , AICE_READ_MEM_UNIT , AICE_WRITE_MEM_UNIT , AICE_READ_MEM_BULK ,
  AICE_WRITE_MEM_BULK , AICE_READ_DEBUG_REG , AICE_WRITE_DEBUG_REG , AICE_STATE ,
  AICE_MEMORY_ACCESS , AICE_MEMORY_MODE , AICE_READ_TLB , AICE_CACHE_CTL ,
  AICE_SET_RETRY_TIMES , AICE_PROGRAM_EDM , AICE_SET_COMMAND_MODE , AICE_EXECUTE ,
  AICE_SET_CUSTOM_SRST_SCRIPT , AICE_SET_CUSTOM_TRST_SCRIPT , AICE_SET_CUSTOM_RESTART_SCRIPT , AICE_SET_COUNT_TO_CHECK_DBGER ,
  AICE_SET_DATA_ENDIAN
}
 
enum  aice_cache_ctl_type {
  AICE_CACHE_CTL_L1D_INVALALL = 0 , AICE_CACHE_CTL_L1D_VA_INVAL , AICE_CACHE_CTL_L1D_WBALL , AICE_CACHE_CTL_L1D_VA_WB ,
  AICE_CACHE_CTL_L1I_INVALALL , AICE_CACHE_CTL_L1I_VA_INVAL
}
 
enum  aice_command_mode { AICE_COMMAND_MODE_NORMAL , AICE_COMMAND_MODE_PACK , AICE_COMMAND_MODE_BATCH }
 
enum  aice_error_s { AICE_OK , AICE_ACK , AICE_ERROR }
 
enum  aice_srst_type_s { AICE_SRST = 0x1 , AICE_RESET_HOLD = 0x8 }
 
enum  aice_target_endian { AICE_LITTLE_ENDIAN = 0 , AICE_BIG_ENDIAN }
 
enum  aice_target_state_s {
  AICE_DISCONNECT = 0 , AICE_TARGET_DETACH , AICE_TARGET_UNKNOWN , AICE_TARGET_RUNNING ,
  AICE_TARGET_HALTED , AICE_TARGET_RESET , AICE_TARGET_DEBUG_RUNNING
}
 

Functions

const struct aice_portaice_port_get_list (void)
 

Variables

struct aice_port_api_s aice_usb_layout_api
 

Macro Definition Documentation

◆ AICE_MAX_NUM_CORE

#define AICE_MAX_NUM_CORE   (0x10)

Definition at line 13 of file aice_port.h.

◆ AICE_PORT_AICE_PIPE

#define AICE_PORT_AICE_PIPE   2

Definition at line 209 of file aice_port.h.

◆ AICE_PORT_AICE_USB

#define AICE_PORT_AICE_USB   1

Definition at line 208 of file aice_port.h.

◆ AICE_PORT_UNKNOWN

#define AICE_PORT_UNKNOWN   0

Definition at line 207 of file aice_port.h.

◆ ERROR_AICE_DISCONNECT

#define ERROR_AICE_DISCONNECT   (-200)

Definition at line 15 of file aice_port.h.

◆ ERROR_AICE_TIMEOUT

#define ERROR_AICE_TIMEOUT   (-201)

Definition at line 16 of file aice_port.h.

Enumeration Type Documentation

◆ aice_api_s

enum aice_api_s
Enumerator
AICE_OPEN 
AICE_CLOSE 
AICE_RESET 
AICE_IDCODE 
AICE_SET_JTAG_CLOCK 
AICE_ASSERT_SRST 
AICE_RUN 
AICE_HALT 
AICE_STEP 
AICE_READ_REG 
AICE_WRITE_REG 
AICE_READ_REG_64 
AICE_WRITE_REG_64 
AICE_READ_MEM_UNIT 
AICE_WRITE_MEM_UNIT 
AICE_READ_MEM_BULK 
AICE_WRITE_MEM_BULK 
AICE_READ_DEBUG_REG 
AICE_WRITE_DEBUG_REG 
AICE_STATE 
AICE_MEMORY_ACCESS 
AICE_MEMORY_MODE 
AICE_READ_TLB 
AICE_CACHE_CTL 
AICE_SET_RETRY_TIMES 
AICE_PROGRAM_EDM 
AICE_SET_COMMAND_MODE 
AICE_EXECUTE 
AICE_SET_CUSTOM_SRST_SCRIPT 
AICE_SET_CUSTOM_TRST_SCRIPT 
AICE_SET_CUSTOM_RESTART_SCRIPT 
AICE_SET_COUNT_TO_CHECK_DBGER 
AICE_SET_DATA_ENDIAN 

Definition at line 38 of file aice_port.h.

◆ aice_cache_ctl_type

Enumerator
AICE_CACHE_CTL_L1D_INVALALL 
AICE_CACHE_CTL_L1D_VA_INVAL 
AICE_CACHE_CTL_L1D_WBALL 
AICE_CACHE_CTL_L1D_VA_WB 
AICE_CACHE_CTL_L1I_INVALALL 
AICE_CACHE_CTL_L1I_VA_INVAL 

Definition at line 80 of file aice_port.h.

◆ aice_command_mode

Enumerator
AICE_COMMAND_MODE_NORMAL 
AICE_COMMAND_MODE_PACK 
AICE_COMMAND_MODE_BATCH 

Definition at line 89 of file aice_port.h.

◆ aice_error_s

Enumerator
AICE_OK 
AICE_ACK 
AICE_ERROR 

Definition at line 74 of file aice_port.h.

◆ aice_srst_type_s

Enumerator
AICE_SRST 
AICE_RESET_HOLD 

Definition at line 28 of file aice_port.h.

◆ aice_target_endian

Enumerator
AICE_LITTLE_ENDIAN 
AICE_BIG_ENDIAN 

Definition at line 33 of file aice_port.h.

◆ aice_target_state_s

Enumerator
AICE_DISCONNECT 
AICE_TARGET_DETACH 
AICE_TARGET_UNKNOWN 
AICE_TARGET_RUNNING 
AICE_TARGET_HALTED 
AICE_TARGET_RESET 
AICE_TARGET_DEBUG_RUNNING 

Definition at line 18 of file aice_port.h.

Function Documentation

◆ aice_port_get_list()

const struct aice_port* aice_port_get_list ( void  )

Definition at line 31 of file aice_port.c.

References aice_ports.

Referenced by COMMAND_HANDLER().

Variable Documentation

◆ aice_usb_layout_api

struct aice_port_api_s aice_usb_layout_api
extern