jtag: linuxgpiod: drop extra parenthesis
[openocd.git] / src / target / aarch64.h
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2
3 /***************************************************************************
4 * Copyright (C) 2015 by David Ung *
5 ***************************************************************************/
6
7 #ifndef OPENOCD_TARGET_AARCH64_H
8 #define OPENOCD_TARGET_AARCH64_H
9
10 #include "armv8.h"
11
12 #define AARCH64_COMMON_MAGIC 0x41413634U
13
14 #define CPUDBG_CPUID 0xD00
15 #define CPUDBG_CTYPR 0xD04
16 #define CPUDBG_TTYPR 0xD0C
17 #define ID_AA64PFR0_EL1 0xD20
18 #define ID_AA64DFR0_EL1 0xD28
19 #define CPUDBG_LOCKACCESS 0xFB0
20 #define CPUDBG_LOCKSTATUS 0xFB4
21
22 #define BRP_NORMAL 0
23 #define BRP_CONTEXT 1
24
25 #define AARCH64_PADDRDBG_CPU_SHIFT 13
26
27 enum aarch64_isrmasking_mode {
28 AARCH64_ISRMASK_OFF,
29 AARCH64_ISRMASK_ON,
30 };
31
32 struct aarch64_brp {
33 int used;
34 int type;
35 target_addr_t value;
36 uint32_t control;
37 uint8_t brpn;
38 };
39
40 struct aarch64_common {
41 unsigned int common_magic;
42
43 struct armv8_common armv8_common;
44
45 /* Context information */
46 uint32_t system_control_reg;
47 uint32_t system_control_reg_curr;
48
49 /* Breakpoint register pairs */
50 int brp_num_context;
51 int brp_num;
52 int brp_num_available;
53 struct aarch64_brp *brp_list;
54
55 /* Watchpoint register pairs */
56 int wp_num;
57 int wp_num_available;
58 struct aarch64_brp *wp_list;
59
60 enum aarch64_isrmasking_mode isrmasking_mode;
61 };
62
63 static inline struct aarch64_common *
64 target_to_aarch64(struct target *target)
65 {
66 return container_of(target->arch_info, struct aarch64_common, armv8_common.arm);
67 }
68
69 #endif /* OPENOCD_TARGET_AARCH64_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)