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

Go to the source code of this file.

Macros

#define TAPINS_BYPASS   0x1F
 
#define TAPINS_BYPASS_LEN   1
 
#define TAPINS_IDCODE   0x1E
 
#define TAPINS_IDCODE_LEN   32
 
#define TAPINS_NARSEL   0x1C
 
#define TAPINS_NARSEL_ADRLEN   8
 
#define TAPINS_NARSEL_DATALEN   32
 
#define TAPINS_PWRCTL   0x08
 
#define TAPINS_PWRCTL_LEN   8
 
#define TAPINS_PWRSTAT   0x09
 
#define TAPINS_PWRSTAT_LEN   8
 

Functions

static void xtensa_dm_add_dr_scan (struct xtensa_debug_module *dm, int len, const uint8_t *src, uint8_t *dest, tap_state_t endstate)
 
static void xtensa_dm_add_set_ir (struct xtensa_debug_module *dm, uint8_t value)
 
int xtensa_dm_core_status_clear (struct xtensa_debug_module *dm, xtensa_dsr_t bits)
 
int xtensa_dm_core_status_read (struct xtensa_debug_module *dm)
 
void xtensa_dm_deinit (struct xtensa_debug_module *dm)
 
int xtensa_dm_device_id_read (struct xtensa_debug_module *dm)
 
int xtensa_dm_examine (struct xtensa_debug_module *dm)
 
int xtensa_dm_init (struct xtensa_debug_module *dm, const struct xtensa_debug_module_config *cfg)
 
int xtensa_dm_perfmon_dump (struct xtensa_debug_module *dm, int counter_id, struct xtensa_perfmon_result *out_result)
 
int xtensa_dm_perfmon_enable (struct xtensa_debug_module *dm, int counter_id, const struct xtensa_perfmon_config *config)
 
int xtensa_dm_poll (struct xtensa_debug_module *dm)
 
int xtensa_dm_power_status_read (struct xtensa_debug_module *dm, uint32_t clear)
 
int xtensa_dm_queue_enable (struct xtensa_debug_module *dm)
 
int xtensa_dm_queue_pwr_reg_read (struct xtensa_debug_module *dm, enum xtensa_dm_pwr_reg reg, uint8_t *data, uint32_t clear)
 
int xtensa_dm_queue_pwr_reg_write (struct xtensa_debug_module *dm, enum xtensa_dm_pwr_reg reg, uint32_t data)
 
int xtensa_dm_queue_reg_read (struct xtensa_debug_module *dm, enum xtensa_dm_reg reg, uint8_t *value)
 
int xtensa_dm_queue_reg_write (struct xtensa_debug_module *dm, enum xtensa_dm_reg reg, uint32_t value)
 
int xtensa_dm_trace_config_read (struct xtensa_debug_module *dm, struct xtensa_trace_config *config)
 
int xtensa_dm_trace_data_read (struct xtensa_debug_module *dm, uint8_t *dest, uint32_t size)
 
int xtensa_dm_trace_start (struct xtensa_debug_module *dm, struct xtensa_trace_start_config *cfg)
 
int xtensa_dm_trace_status_read (struct xtensa_debug_module *dm, struct xtensa_trace_status *status)
 
int xtensa_dm_trace_stop (struct xtensa_debug_module *dm, bool pto_enable)
 

Variables

static const struct xtensa_dm_pwr_reg_offsets xdm_pwr_regs [XDMREG_PWRNUM]
 
static const struct xtensa_dm_reg_offsets xdm_regs [XDMREG_NUM]
 

Macro Definition Documentation

◆ TAPINS_BYPASS

#define TAPINS_BYPASS   0x1F

Definition at line 20 of file xtensa_debug_module.c.

◆ TAPINS_BYPASS_LEN

#define TAPINS_BYPASS_LEN   1

Definition at line 27 of file xtensa_debug_module.c.

◆ TAPINS_IDCODE

#define TAPINS_IDCODE   0x1E

Definition at line 19 of file xtensa_debug_module.c.

◆ TAPINS_IDCODE_LEN

#define TAPINS_IDCODE_LEN   32

Definition at line 26 of file xtensa_debug_module.c.

◆ TAPINS_NARSEL

#define TAPINS_NARSEL   0x1C

Definition at line 18 of file xtensa_debug_module.c.

◆ TAPINS_NARSEL_ADRLEN

#define TAPINS_NARSEL_ADRLEN   8

Definition at line 24 of file xtensa_debug_module.c.

◆ TAPINS_NARSEL_DATALEN

#define TAPINS_NARSEL_DATALEN   32

Definition at line 25 of file xtensa_debug_module.c.

◆ TAPINS_PWRCTL

#define TAPINS_PWRCTL   0x08

Definition at line 16 of file xtensa_debug_module.c.

◆ TAPINS_PWRCTL_LEN

#define TAPINS_PWRCTL_LEN   8

Definition at line 22 of file xtensa_debug_module.c.

◆ TAPINS_PWRSTAT

#define TAPINS_PWRSTAT   0x09

Definition at line 17 of file xtensa_debug_module.c.

◆ TAPINS_PWRSTAT_LEN

#define TAPINS_PWRSTAT_LEN   8

Definition at line 23 of file xtensa_debug_module.c.

Function Documentation

◆ xtensa_dm_add_dr_scan()

static void xtensa_dm_add_dr_scan ( struct xtensa_debug_module dm,
int  len,
const uint8_t *  src,
uint8_t *  dest,
tap_state_t  endstate 
)
static

◆ xtensa_dm_add_set_ir()

◆ xtensa_dm_core_status_clear()

◆ xtensa_dm_core_status_read()

◆ xtensa_dm_deinit()

void xtensa_dm_deinit ( struct xtensa_debug_module dm)

Definition at line 86 of file xtensa_debug_module.c.

References dap_put_ap(), xtensa_debug_module::debug_ap, and NULL.

Referenced by xtensa_target_deinit().

◆ xtensa_dm_device_id_read()

◆ xtensa_dm_examine()

◆ xtensa_dm_init()

◆ xtensa_dm_perfmon_dump()

◆ xtensa_dm_perfmon_enable()

◆ xtensa_dm_poll()

int xtensa_dm_poll ( struct xtensa_debug_module dm)

◆ xtensa_dm_power_status_read()

◆ xtensa_dm_queue_enable()

int xtensa_dm_queue_enable ( struct xtensa_debug_module dm)

◆ xtensa_dm_queue_pwr_reg_read()

◆ xtensa_dm_queue_pwr_reg_write()

◆ xtensa_dm_queue_reg_read()

◆ xtensa_dm_queue_reg_write()

◆ xtensa_dm_trace_config_read()

◆ xtensa_dm_trace_data_read()

int xtensa_dm_trace_data_read ( struct xtensa_debug_module dm,
uint8_t *  dest,
uint32_t  size 
)

◆ xtensa_dm_trace_start()

◆ xtensa_dm_trace_status_read()

◆ xtensa_dm_trace_stop()

Variable Documentation

◆ xdm_pwr_regs

const struct xtensa_dm_pwr_reg_offsets xdm_pwr_regs[XDMREG_PWRNUM]
static
Initial value:

Definition at line 1 of file xtensa_debug_module.c.

Referenced by xtensa_dm_queue_pwr_reg_read(), and xtensa_dm_queue_pwr_reg_write().

◆ xdm_regs

const struct xtensa_dm_reg_offsets xdm_regs[XDMREG_NUM]
static
Initial value:
=
#define XTENSA_DM_REG_OFFSETS

Definition at line 1 of file xtensa_debug_module.c.

Referenced by xtensa_dm_queue_reg_read(), and xtensa_dm_queue_reg_write().