1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 /***************************************************************************
4 * Copyright (C) 2005 by Dominic Rath *
5 * Dominic.Rath@gmx.de *
7 * Copyright (C) 2008 by Spencer Oliver *
8 * spen@spen-soft.co.uk *
10 * Copyright (C) 2010 by Drasko DRASKOVIC *
11 * drasko.draskovic@gmail.com *
12 ***************************************************************************/
14 #ifndef OPENOCD_TARGET_ARM946E_H
15 #define OPENOCD_TARGET_ARM946E_H
19 #define ARM946E_COMMON_MAGIC 0x20f920f9
21 struct arm946e_common {
22 struct arm7_9_common arm7_9_common;
24 uint32_t cp15_control_reg;
25 uint32_t cp15_cache_info;
28 static inline struct arm946e_common *target_to_arm946(struct target *target)
30 return container_of(target->arch_info, struct arm946e_common,
34 int arm946e_init_arch_info(struct target *target,
35 struct arm946e_common *arm946e, struct jtag_tap *tap);
36 int arm946e_write_cp15(struct target *target, int reg_addr, uint32_t value);
38 extern const struct command_registration arm946e_command_handlers[];
40 #endif /* OPENOCD_TARGET_ARM946E_H */