openocd: src/target: replace the GPL-2.0-or-later license tag
[fw/openocd] / src / target / arm720t.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
8 #ifndef OPENOCD_TARGET_ARM720T_H
9 #define OPENOCD_TARGET_ARM720T_H
10
11 #include "arm7tdmi.h"
12 #include "armv4_5_mmu.h"
13
14 #define ARM720T_COMMON_MAGIC 0xa720a720
15
16 struct arm720t_common {
17         struct arm7_9_common arm7_9_common;
18         uint32_t common_magic;
19         struct armv4_5_mmu_common armv4_5_mmu;
20         uint32_t cp15_control_reg;
21         uint32_t fsr_reg;
22         uint32_t far_reg;
23 };
24
25 static inline struct arm720t_common *target_to_arm720(struct target *target)
26 {
27         return container_of(target->arch_info, struct arm720t_common, arm7_9_common.arm);
28 }
29
30 #endif /* OPENOCD_TARGET_ARM720T_H */