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

Go to the source code of this file.

Functions

 COMMAND_HANDLER (handle_nds32_auto_break_command)
 
 COMMAND_HANDLER (handle_nds32_boot_time_command)
 
 COMMAND_HANDLER (handle_nds32_cache_command)
 
 COMMAND_HANDLER (handle_nds32_dcache_command)
 
 COMMAND_HANDLER (handle_nds32_decode_command)
 
 COMMAND_HANDLER (handle_nds32_dssim_command)
 
 COMMAND_HANDLER (handle_nds32_global_stop_command)
 
 COMMAND_HANDLER (handle_nds32_icache_command)
 
 COMMAND_HANDLER (handle_nds32_keep_target_edm_ctl_command)
 
 COMMAND_HANDLER (handle_nds32_login_edm_operation_command)
 
 COMMAND_HANDLER (handle_nds32_login_edm_passcode_command)
 
 COMMAND_HANDLER (handle_nds32_memory_access_command)
 
 COMMAND_HANDLER (handle_nds32_memory_mode_command)
 
 COMMAND_HANDLER (handle_nds32_query_cpuid_command)
 
 COMMAND_HANDLER (handle_nds32_query_endian_command)
 
 COMMAND_HANDLER (handle_nds32_query_target_command)
 
 COMMAND_HANDLER (handle_nds32_reset_halt_as_init_command)
 
 COMMAND_HANDLER (handle_nds32_soft_reset_halt_command)
 
 COMMAND_HANDLER (handle_nds32_virtual_hosting_command)
 
 COMMAND_HANDLER (handle_nds32_word_access_mem_command)
 
static int jim_nds32_bulk_read (Jim_Interp *interp, int argc, Jim_Obj *const *argv)
 
static int jim_nds32_bulk_write (Jim_Interp *interp, int argc, Jim_Obj *const *argv)
 
static int jim_nds32_multi_write (Jim_Interp *interp, int argc, Jim_Obj *const *argv)
 
static int jim_nds32_read_edm_sr (Jim_Interp *interp, int argc, Jim_Obj *const *argv)
 
static int jim_nds32_write_edm_sr (Jim_Interp *interp, int argc, Jim_Obj *const *argv)
 

Variables

const struct command_registration nds32_command_handlers []
 
struct nds32_edm_operation nds32_edm_ops [NDS32_EDM_OPERATION_MAX_NUM]
 
uint32_t nds32_edm_ops_num
 
static const struct command_registration nds32_exec_command_handlers []
 
static const struct command_registration nds32_query_command_handlers []
 
static const char *const nds_memory_access_name []
 
static const char *const nds_memory_select_name []
 

Function Documentation

◆ COMMAND_HANDLER() [1/20]

COMMAND_HANDLER ( handle_nds32_auto_break_command  )

◆ COMMAND_HANDLER() [2/20]

COMMAND_HANDLER ( handle_nds32_boot_time_command  )

◆ COMMAND_HANDLER() [3/20]

◆ COMMAND_HANDLER() [4/20]

◆ COMMAND_HANDLER() [5/20]

◆ COMMAND_HANDLER() [6/20]

COMMAND_HANDLER ( handle_nds32_dssim_command  )

◆ COMMAND_HANDLER() [7/20]

COMMAND_HANDLER ( handle_nds32_global_stop_command  )

◆ COMMAND_HANDLER() [8/20]

◆ COMMAND_HANDLER() [9/20]

COMMAND_HANDLER ( handle_nds32_keep_target_edm_ctl_command  )

◆ COMMAND_HANDLER() [10/20]

◆ COMMAND_HANDLER() [11/20]

COMMAND_HANDLER ( handle_nds32_login_edm_passcode_command  )

◆ COMMAND_HANDLER() [12/20]

◆ COMMAND_HANDLER() [13/20]

◆ COMMAND_HANDLER() [14/20]

COMMAND_HANDLER ( handle_nds32_query_cpuid_command  )

◆ COMMAND_HANDLER() [15/20]

COMMAND_HANDLER ( handle_nds32_query_endian_command  )

◆ COMMAND_HANDLER() [16/20]

COMMAND_HANDLER ( handle_nds32_query_target_command  )

◆ COMMAND_HANDLER() [17/20]

COMMAND_HANDLER ( handle_nds32_reset_halt_as_init_command  )

◆ COMMAND_HANDLER() [18/20]

COMMAND_HANDLER ( handle_nds32_soft_reset_halt_command  )

◆ COMMAND_HANDLER() [19/20]

COMMAND_HANDLER ( handle_nds32_virtual_hosting_command  )

◆ COMMAND_HANDLER() [20/20]

COMMAND_HANDLER ( handle_nds32_word_access_mem_command  )

◆ jim_nds32_bulk_read()

static int jim_nds32_bulk_read ( Jim_Interp *  interp,
int  argc,
Jim_Obj *const *  argv 
)
static

◆ jim_nds32_bulk_write()

static int jim_nds32_bulk_write ( Jim_Interp *  interp,
int  argc,
Jim_Obj *const *  argv 
)
static

◆ jim_nds32_multi_write()

◆ jim_nds32_read_edm_sr()

◆ jim_nds32_write_edm_sr()

Variable Documentation

◆ nds32_command_handlers

const struct command_registration nds32_command_handlers[]
Initial value:
= {
{
.name = "nds",
.mode = COMMAND_ANY,
.help = "Andes command group",
.usage = "",
},
}
#define COMMAND_REGISTRATION_DONE
Use this as the last entry in an array of command_registration records.
Definition: command.h:247
@ COMMAND_ANY
Definition: command.h:42
static const struct command_registration nds32_exec_command_handlers[]
Definition: nds32_cmd.c:946

Definition at line 875 of file nds32_cmd.c.

◆ nds32_edm_ops

struct nds32_edm_operation nds32_edm_ops[NDS32_EDM_OPERATION_MAX_NUM]
extern

Definition at line 1 of file nds32.c.

Referenced by COMMAND_HANDLER(), and nds32_login().

◆ nds32_edm_ops_num

uint32_t nds32_edm_ops_num
extern

Definition at line 20 of file nds32.c.

Referenced by COMMAND_HANDLER(), and nds32_login().

◆ nds32_exec_command_handlers

const struct command_registration nds32_exec_command_handlers[]
static

Definition at line 875 of file nds32_cmd.c.

◆ nds32_query_command_handlers

const struct command_registration nds32_query_command_handlers[]
static
Initial value:
= {
{
.name = "target",
.handler = handle_nds32_query_target_command,
.mode = COMMAND_EXEC,
.usage = "",
.help = "reply 'OCD' for gdb to identify server-side is OpenOCD",
},
{
.name = "endian",
.handler = handle_nds32_query_endian_command,
.mode = COMMAND_EXEC,
.usage = "",
.help = "query target endian",
},
{
.name = "cpuid",
.handler = handle_nds32_query_cpuid_command,
.mode = COMMAND_EXEC,
.usage = "",
.help = "query CPU ID",
},
}
@ COMMAND_EXEC
Definition: command.h:40

Definition at line 875 of file nds32_cmd.c.

◆ nds_memory_access_name

const char* const nds_memory_access_name[]
static
Initial value:
= {
"BUS",
"CPU",
}

Definition at line 20 of file nds32_cmd.c.

Referenced by COMMAND_HANDLER().

◆ nds_memory_select_name

const char* const nds_memory_select_name[]
static
Initial value:
= {
"AUTO",
"MEM",
"ILM",
"DLM",
}

Definition at line 25 of file nds32_cmd.c.

Referenced by COMMAND_HANDLER().