1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 /***************************************************************************
4 * Copyright (C) 2009-2011 by Mathias Kuester *
5 * mkdorg@users.sourceforge.net *
6 ***************************************************************************/
8 #ifndef OPENOCD_TARGET_DSP563XX_H
9 #define OPENOCD_TARGET_DSP563XX_H
11 #include <jtag/jtag.h>
12 #include <target/dsp563xx_once.h>
14 #define DSP563XX_NUMCOREREGS 54
15 #define DSP563XX_NUMONCEREGS 25
21 enum breakpoint_usage
{
27 struct hardware_breakpoint
{
28 enum breakpoint_usage used
;
31 struct dsp563xx_common
{
32 struct mcu_jtag jtag_info
;
33 struct reg_cache
*core_cache
;
34 uint32_t core_regs
[DSP563XX_NUMCOREREGS
];
35 struct once_reg once_regs
[DSP563XX_NUMONCEREGS
];
37 /* register cache to processor synchronization */
38 int (*read_core_reg
)(struct target
*target
, int num
);
39 int (*write_core_reg
)(struct target
*target
, int num
);
41 struct hardware_breakpoint hardware_breakpoint
[1];
43 /*Were the hardware breakpoints cleared on startup?*/
44 bool hardware_breakpoints_cleared
;
47 struct dsp563xx_core_reg
{
53 struct target
*target
;
54 struct dsp563xx_common
*dsp563xx_common
;
57 static inline struct dsp563xx_common
*target_to_dsp563xx(struct target
*target
)
59 return target
->arch_info
;
62 #endif /* OPENOCD_TARGET_DSP563XX_H */