openocd: src/target: replace the GPL-2.0-or-later license tag
[fw/openocd] / src / target / arm966e.h
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2
3 /***************************************************************************
4  *   Copyright (C) 2005 by Dominic Rath                                    *
5  *   Dominic.Rath@gmx.de                                                   *
6  *                                                                         *
7  *   Copyright (C) 2008 by Spencer Oliver                                  *
8  *   spen@spen-soft.co.uk                                                  *
9  ***************************************************************************/
10
11 #ifndef OPENOCD_TARGET_ARM966E_H
12 #define OPENOCD_TARGET_ARM966E_H
13
14 #include "arm9tdmi.h"
15
16 #define ARM966E_COMMON_MAGIC 0x20f920f9
17
18 struct arm966e_common {
19         struct arm7_9_common arm7_9_common;
20         int common_magic;
21         uint32_t cp15_control_reg;
22 };
23
24 static inline struct arm966e_common *
25 target_to_arm966(struct target *target)
26 {
27         return container_of(target->arch_info, struct arm966e_common,
28                         arm7_9_common.arm);
29 }
30
31 int arm966e_init_arch_info(struct target *target,
32                 struct arm966e_common *arm966e, struct jtag_tap *tap);
33 int arm966e_write_cp15(struct target *target, int reg_addr, uint32_t value);
34
35 extern const struct command_registration arm966e_command_handlers[];
36
37 #endif /* OPENOCD_TARGET_ARM966E_H */