target/espressif: add semihosting support
[fw/openocd] / src / target / avr32_ap7k.h
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2
3 /***************************************************************************
4  *   Copyright (C) 2010 by Oleksandr Tymoshenko <gonzo@bluezbox.com>       *
5  ***************************************************************************/
6
7 #ifndef OPENOCD_TARGET_AVR32_AP7K_H
8 #define OPENOCD_TARGET_AVR32_AP7K_H
9
10 struct target;
11
12 #define AP7K_COMMON_MAGIC       0x4150374bU
13
14 struct avr32_ap7k_common {
15         unsigned int common_magic;
16
17         struct avr32_jtag jtag;
18         struct reg_cache *core_cache;
19         uint32_t core_regs[AVR32NUMCOREREGS];
20 };
21
22 static inline struct avr32_ap7k_common *
23 target_to_ap7k(struct target *target)
24 {
25         return (struct avr32_ap7k_common *)target->arch_info;
26 }
27
28 struct avr32_core_reg {
29         uint32_t num;
30         struct target *target;
31         struct avr32_ap7k_common *avr32_common;
32 };
33
34 #endif /* OPENOCD_TARGET_AVR32_AP7K_H */