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

Go to the source code of this file.

Functions

int xtensa_chip_arch_state (struct target *target)
 
static int xtensa_chip_examine (struct target *target)
 
int xtensa_chip_init_arch_info (struct target *target, void *arch_info, struct xtensa_debug_module_config *dm_cfg)
 
static int xtensa_chip_jim_configure (struct target *target, struct jim_getopt_info *goi)
 
static int xtensa_chip_poll (struct target *target)
 
static int xtensa_chip_target_create (struct target *target, Jim_Interp *interp)
 
static void xtensa_chip_target_deinit (struct target *target)
 
int xtensa_chip_target_init (struct command_context *cmd_ctx, struct target *target)
 
static int xtensa_chip_virt2phys (struct target *target, target_addr_t virtual, target_addr_t *physical)
 

Variables

static const struct xtensa_debug_ops xtensa_chip_dm_dbg_ops
 
static const struct xtensa_power_ops xtensa_chip_dm_pwr_ops
 
struct target_type xtensa_chip_target
 Methods for generic example of Xtensa-based chip-level targets. More...
 

Function Documentation

◆ xtensa_chip_arch_state()

int xtensa_chip_arch_state ( struct target target)

Definition at line 40 of file xtensa_chip.c.

References ERROR_OK.

◆ xtensa_chip_examine()

static int xtensa_chip_examine ( struct target target)
static

◆ xtensa_chip_init_arch_info()

int xtensa_chip_init_arch_info ( struct target target,
void *  arch_info,
struct xtensa_debug_module_config dm_cfg 
)

◆ xtensa_chip_jim_configure()

static int xtensa_chip_jim_configure ( struct target target,
struct jim_getopt_info goi 
)
static

Definition at line 145 of file xtensa_chip.c.

References ADI_CONFIGURE_DAP_OPTIONAL, adiv5_jim_configure_ext(), and NULL.

◆ xtensa_chip_poll()

◆ xtensa_chip_target_create()

◆ xtensa_chip_target_deinit()

static void xtensa_chip_target_deinit ( struct target target)
static

Definition at line 129 of file xtensa_chip.c.

References target_to_xtensa(), xtensa::xtensa_chip, and xtensa_target_deinit().

◆ xtensa_chip_target_init()

int xtensa_chip_target_init ( struct command_context cmd_ctx,
struct target target 
)

Definition at line 32 of file xtensa_chip.c.

References ERROR_OK, xtensa_fileio_init(), and xtensa_target_init().

◆ xtensa_chip_virt2phys()

static int xtensa_chip_virt2phys ( struct target target,
target_addr_t  virtual,
target_addr_t physical 
)
static

Definition at line 63 of file xtensa_chip.c.

Variable Documentation

◆ xtensa_chip_dm_dbg_ops

const struct xtensa_debug_ops xtensa_chip_dm_dbg_ops
static
Initial value:
= {
.queue_enable = xtensa_dm_queue_enable,
.queue_reg_read = xtensa_dm_queue_reg_read,
.queue_reg_write = xtensa_dm_queue_reg_write
}
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_queue_enable(struct xtensa_debug_module *dm)

Definition at line 63 of file xtensa_chip.c.

Referenced by xtensa_chip_target_create().

◆ xtensa_chip_dm_pwr_ops

const struct xtensa_power_ops xtensa_chip_dm_pwr_ops
static
Initial value:
= {
.queue_reg_read = xtensa_dm_queue_pwr_reg_read,
.queue_reg_write = xtensa_dm_queue_pwr_reg_write
}
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_pwr_reg_read(struct xtensa_debug_module *dm, enum xtensa_dm_pwr_reg reg, uint8_t *data, uint32_t clear)

Definition at line 63 of file xtensa_chip.c.

Referenced by xtensa_chip_target_create().

◆ xtensa_chip_target

struct target_type xtensa_chip_target

Methods for generic example of Xtensa-based chip-level targets.

Definition at line 145 of file xtensa_chip.c.