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

Go to the source code of this file.

Data Structures

struct  once_reg
 

Macros

#define DSP563XX_ONCE_NOREG   0x01F /* no register selected */
 
#define DSP563XX_ONCE_OBCR   0x002 /* breakp. ctrl reg */
 
#define DSP563XX_ONCE_OCR_EX   (1<<5)
 
#define DSP563XX_ONCE_OCR_GO   (1<<6)
 
#define DSP563XX_ONCE_OCR_RW   (1<<7)
 
#define DSP563XX_ONCE_OGDBR   0x009 /* gdb reg */
 
#define DSP563XX_ONCE_OMBC   0x001 /* memory breakp. reg. */
 
#define DSP563XX_ONCE_OMLR0   0x005 /* memory limit reg */
 
#define DSP563XX_ONCE_OMLR1   0x006 /* memory limit reg */
 
#define DSP563XX_ONCE_OPABDR   0x010 /* pab decode reg */
 
#define DSP563XX_ONCE_OPABEX   0x011 /* pab exec reg */
 
#define DSP563XX_ONCE_OPABF11   0x012 /* trace buffer/inc ptr */
 
#define DSP563XX_ONCE_OPABFR   0x00F /* pab fetch reg */
 
#define DSP563XX_ONCE_OPDBR   0x00A /* pdb reg */
 
#define DSP563XX_ONCE_OPILR   0x00B /* pil reg */
 
#define DSP563XX_ONCE_OSCR   0x000 /* status/ctrl reg. */
 
#define DSP563XX_ONCE_OSCR_BUSY_M   (DSP563XX_ONCE_OSCR_OS1)
 
#define DSP563XX_ONCE_OSCR_DEBUG_M   (DSP563XX_ONCE_OSCR_OS0|DSP563XX_ONCE_OSCR_OS1)
 
#define DSP563XX_ONCE_OSCR_HIT   (1<<5)
 
#define DSP563XX_ONCE_OSCR_IME   (1<<1)
 
#define DSP563XX_ONCE_OSCR_MBO   (1<<3)
 
#define DSP563XX_ONCE_OSCR_NORMAL_M   (0)
 
#define DSP563XX_ONCE_OSCR_OS0   (1<<6)
 
#define DSP563XX_ONCE_OSCR_OS1   (1<<7)
 
#define DSP563XX_ONCE_OSCR_STOPWAIT_M   (DSP563XX_ONCE_OSCR_OS0)
 
#define DSP563XX_ONCE_OSCR_SWO   (1<<2)
 
#define DSP563XX_ONCE_OSCR_TME   (1<<0)
 
#define DSP563XX_ONCE_OSCR_TO   (1<<4)
 
#define DSP563XX_ONCE_OTC   0x00D /* trace cnt */
 
#define DSP563XX_ONCE_PDBGOTO   0x00C /* pdb to go reg */
 
#define DSP563XX_ONCE_TAGB   0x00E /* tags buffer */
 

Functions

int dsp563xx_once_execute_dw_ir (struct jtag_tap *tap, int flush, uint32_t opcode, uint32_t operand)
 double word instruction More...
 
int dsp563xx_once_execute_sw_ir (struct jtag_tap *tap, int flush, uint32_t opcode)
 single word instruction More...
 
int dsp563xx_once_read_register (struct jtag_tap *tap, int flush, struct once_reg *regs, int len)
 once read registers More...
 
int dsp563xx_once_reg_read (struct jtag_tap *tap, int flush, uint8_t reg, uint32_t *data)
 once read register More...
 
int dsp563xx_once_reg_read_ex (struct jtag_tap *tap, int flush, uint8_t reg, uint8_t len, uint32_t *data)
 once read register More...
 
int dsp563xx_once_reg_write (struct jtag_tap *tap, int flush, uint8_t reg, uint32_t data)
 once write register More...
 
int dsp563xx_once_request_debug (struct jtag_tap *tap, int reset_state)
 
int dsp563xx_once_target_status (struct jtag_tap *tap)
 

Macro Definition Documentation

◆ DSP563XX_ONCE_NOREG

#define DSP563XX_ONCE_NOREG   0x01F /* no register selected */

Definition at line 50 of file dsp563xx_once.h.

◆ DSP563XX_ONCE_OBCR

#define DSP563XX_ONCE_OBCR   0x002 /* breakp. ctrl reg */

Definition at line 37 of file dsp563xx_once.h.

◆ DSP563XX_ONCE_OCR_EX

#define DSP563XX_ONCE_OCR_EX   (1<<5)

Definition at line 17 of file dsp563xx_once.h.

◆ DSP563XX_ONCE_OCR_GO

#define DSP563XX_ONCE_OCR_GO   (1<<6)

Definition at line 18 of file dsp563xx_once.h.

◆ DSP563XX_ONCE_OCR_RW

#define DSP563XX_ONCE_OCR_RW   (1<<7)

Definition at line 19 of file dsp563xx_once.h.

◆ DSP563XX_ONCE_OGDBR

#define DSP563XX_ONCE_OGDBR   0x009 /* gdb reg */

Definition at line 40 of file dsp563xx_once.h.

◆ DSP563XX_ONCE_OMBC

#define DSP563XX_ONCE_OMBC   0x001 /* memory breakp. reg. */

Definition at line 36 of file dsp563xx_once.h.

◆ DSP563XX_ONCE_OMLR0

#define DSP563XX_ONCE_OMLR0   0x005 /* memory limit reg */

Definition at line 38 of file dsp563xx_once.h.

◆ DSP563XX_ONCE_OMLR1

#define DSP563XX_ONCE_OMLR1   0x006 /* memory limit reg */

Definition at line 39 of file dsp563xx_once.h.

◆ DSP563XX_ONCE_OPABDR

#define DSP563XX_ONCE_OPABDR   0x010 /* pab decode reg */

Definition at line 47 of file dsp563xx_once.h.

◆ DSP563XX_ONCE_OPABEX

#define DSP563XX_ONCE_OPABEX   0x011 /* pab exec reg */

Definition at line 48 of file dsp563xx_once.h.

◆ DSP563XX_ONCE_OPABF11

#define DSP563XX_ONCE_OPABF11   0x012 /* trace buffer/inc ptr */

Definition at line 49 of file dsp563xx_once.h.

◆ DSP563XX_ONCE_OPABFR

#define DSP563XX_ONCE_OPABFR   0x00F /* pab fetch reg */

Definition at line 46 of file dsp563xx_once.h.

◆ DSP563XX_ONCE_OPDBR

#define DSP563XX_ONCE_OPDBR   0x00A /* pdb reg */

Definition at line 41 of file dsp563xx_once.h.

◆ DSP563XX_ONCE_OPILR

#define DSP563XX_ONCE_OPILR   0x00B /* pil reg */

Definition at line 42 of file dsp563xx_once.h.

◆ DSP563XX_ONCE_OSCR

#define DSP563XX_ONCE_OSCR   0x000 /* status/ctrl reg. */

Definition at line 35 of file dsp563xx_once.h.

◆ DSP563XX_ONCE_OSCR_BUSY_M

#define DSP563XX_ONCE_OSCR_BUSY_M   (DSP563XX_ONCE_OSCR_OS1)

Definition at line 32 of file dsp563xx_once.h.

◆ DSP563XX_ONCE_OSCR_DEBUG_M

#define DSP563XX_ONCE_OSCR_DEBUG_M   (DSP563XX_ONCE_OSCR_OS0|DSP563XX_ONCE_OSCR_OS1)

Definition at line 33 of file dsp563xx_once.h.

◆ DSP563XX_ONCE_OSCR_HIT

#define DSP563XX_ONCE_OSCR_HIT   (1<<5)

Definition at line 23 of file dsp563xx_once.h.

◆ DSP563XX_ONCE_OSCR_IME

#define DSP563XX_ONCE_OSCR_IME   (1<<1)

Definition at line 27 of file dsp563xx_once.h.

◆ DSP563XX_ONCE_OSCR_MBO

#define DSP563XX_ONCE_OSCR_MBO   (1<<3)

Definition at line 25 of file dsp563xx_once.h.

◆ DSP563XX_ONCE_OSCR_NORMAL_M

#define DSP563XX_ONCE_OSCR_NORMAL_M   (0)

Definition at line 30 of file dsp563xx_once.h.

◆ DSP563XX_ONCE_OSCR_OS0

#define DSP563XX_ONCE_OSCR_OS0   (1<<6)

Definition at line 22 of file dsp563xx_once.h.

◆ DSP563XX_ONCE_OSCR_OS1

#define DSP563XX_ONCE_OSCR_OS1   (1<<7)

Definition at line 21 of file dsp563xx_once.h.

◆ DSP563XX_ONCE_OSCR_STOPWAIT_M

#define DSP563XX_ONCE_OSCR_STOPWAIT_M   (DSP563XX_ONCE_OSCR_OS0)

Definition at line 31 of file dsp563xx_once.h.

◆ DSP563XX_ONCE_OSCR_SWO

#define DSP563XX_ONCE_OSCR_SWO   (1<<2)

Definition at line 26 of file dsp563xx_once.h.

◆ DSP563XX_ONCE_OSCR_TME

#define DSP563XX_ONCE_OSCR_TME   (1<<0)

Definition at line 28 of file dsp563xx_once.h.

◆ DSP563XX_ONCE_OSCR_TO

#define DSP563XX_ONCE_OSCR_TO   (1<<4)

Definition at line 24 of file dsp563xx_once.h.

◆ DSP563XX_ONCE_OTC

#define DSP563XX_ONCE_OTC   0x00D /* trace cnt */

Definition at line 44 of file dsp563xx_once.h.

◆ DSP563XX_ONCE_PDBGOTO

#define DSP563XX_ONCE_PDBGOTO   0x00C /* pdb to go reg */

Definition at line 43 of file dsp563xx_once.h.

◆ DSP563XX_ONCE_TAGB

#define DSP563XX_ONCE_TAGB   0x00E /* tags buffer */

Definition at line 45 of file dsp563xx_once.h.

Function Documentation

◆ dsp563xx_once_execute_dw_ir()

int dsp563xx_once_execute_dw_ir ( struct jtag_tap tap,
int  flush,
uint32_t  opcode,
uint32_t  operand 
)

◆ dsp563xx_once_execute_sw_ir()

int dsp563xx_once_execute_sw_ir ( struct jtag_tap tap,
int  flush,
uint32_t  opcode 
)

◆ dsp563xx_once_read_register()

int dsp563xx_once_read_register ( struct jtag_tap tap,
int  flush,
struct once_reg regs,
int  len 
)

once read registers

Definition at line 171 of file dsp563xx_once.c.

References addr, dsp563xx_once_reg_read_ex(), ERROR_OK, jtag_execute_queue(), and regs.

Referenced by dsp563xx_debug_once_init().

◆ dsp563xx_once_reg_read()

int dsp563xx_once_reg_read ( struct jtag_tap tap,
int  flush,
uint8_t  reg,
uint32_t *  data 
)

◆ dsp563xx_once_reg_read_ex()

int dsp563xx_once_reg_read_ex ( struct jtag_tap tap,
int  flush,
uint8_t  reg,
uint8_t  len,
uint32_t *  data 
)

once read register

once read register

Definition at line 188 of file dsp563xx_once.c.

References dsp563xx_once_ir_exec(), dsp563xx_write_dr_u32(), ERROR_OK, and jtag_execute_queue().

Referenced by dsp563xx_once_read_register().

◆ dsp563xx_once_reg_write()

int dsp563xx_once_reg_write ( struct jtag_tap tap,
int  flush,
uint8_t  reg,
uint32_t  data 
)

◆ dsp563xx_once_request_debug()

int dsp563xx_once_request_debug ( struct jtag_tap tap,
int  reset_state 
)

◆ dsp563xx_once_target_status()