openocd: src/target: replace the GPL-2.0-or-later license tag
[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       0x4150374b
13 struct avr32_ap7k_common {
14         int common_magic;
15         struct avr32_jtag jtag;
16         struct reg_cache *core_cache;
17         uint32_t core_regs[AVR32NUMCOREREGS];
18 };
19
20 static inline struct avr32_ap7k_common *
21 target_to_ap7k(struct target *target)
22 {
23         return (struct avr32_ap7k_common *)target->arch_info;
24 }
25
26 struct avr32_core_reg {
27         uint32_t num;
28         struct target *target;
29         struct avr32_ap7k_common *avr32_common;
30 };
31
32 #endif /* OPENOCD_TARGET_AVR32_AP7K_H */