ARM: streamline register init
[openocd.git] / src / target / arm966e.h
index 995a79727f268eac5f3d5c117c722c045cc70e9e..45aeb4ef1e6f1399e95773b08fd7218a68128573 100644 (file)
 
 #define        ARM966E_COMMON_MAGIC 0x20f920f9
 
-typedef struct arm966e_common_s
+struct arm966e_common
 {
+       struct arm7_9_common arm7_9_common;
        int common_magic;
-       arm9tdmi_common_t arm9tdmi_common;
-       u32 cp15_control_reg;
-} arm966e_common_t;
+       uint32_t cp15_control_reg;
+};
 
-extern int arm966e_read_cp15(target_t *target, int reg_addr, u32 *value);
-extern int arm966e_write_cp15(target_t *target, int reg_addr, u32 value);
+static inline struct arm966e_common *
+target_to_arm966(struct target *target)
+{
+       return container_of(target->arch_info, struct arm966e_common,
+                       arm7_9_common.armv4_5_common);
+}
+
+int arm966e_init_arch_info(struct target *target,
+               struct arm966e_common *arm966e, struct jtag_tap *tap);
+int arm966e_register_commands(struct command_context *cmd_ctx);
+int arm966e_write_cp15(struct target *target, int reg_addr, uint32_t value);
 
 #endif /* ARM966E_H */

Linking to existing account procedure

If you already have an account and want to add another login method you MUST first sign in with your existing account and then change URL to read https://review.openocd.org/login/?link to get to this page again but this time it'll work for linking. Thank you.

SSH host keys fingerprints

1024 SHA256:YKx8b7u5ZWdcbp7/4AeXNaqElP49m6QrwfXaqQGJAOk gerrit-code-review@openocd.zylin.com (DSA)
384 SHA256:jHIbSQa4REvwCFG4cq5LBlBLxmxSqelQPem/EXIrxjk gerrit-code-review@openocd.org (ECDSA)
521 SHA256:UAOPYkU9Fjtcao0Ul/Rrlnj/OsQvt+pgdYSZ4jOYdgs gerrit-code-review@openocd.org (ECDSA)
256 SHA256:A13M5QlnozFOvTllybRZH6vm7iSt0XLxbA48yfc2yfY gerrit-code-review@openocd.org (ECDSA)
256 SHA256:spYMBqEYoAOtK7yZBrcwE8ZpYt6b68Cfh9yEVetvbXg gerrit-code-review@openocd.org (ED25519)
+--[ED25519 256]--+
|=..              |
|+o..   .         |
|*.o   . .        |
|+B . . .         |
|Bo. = o S        |
|Oo.+ + =         |
|oB=.* = . o      |
| =+=.+   + E     |
|. .=o   . o      |
+----[SHA256]-----+
2048 SHA256:0Onrb7/PHjpo6iVZ7xQX2riKN83FJ3KGU0TvI0TaFG4 gerrit-code-review@openocd.zylin.com (RSA)