Soby Mathew | b4c6df4 | 2022-11-09 11:13:29 +0000 | [diff] [blame] | 1 | /* |
| 2 | * SPDX-License-Identifier: BSD-3-Clause |
| 3 | * |
| 4 | * SPDX-FileCopyrightText: Copyright TF-RMM Contributors. |
| 5 | */ |
| 6 | |
| 7 | #ifndef SMC_RMI_H |
| 8 | #define SMC_RMI_H |
| 9 | |
Soby Mathew | b4c6df4 | 2022-11-09 11:13:29 +0000 | [diff] [blame] | 10 | #include <smc.h> |
| 11 | |
| 12 | /* |
| 13 | * This file describes the Realm Management Interface (RMI) Application Binary |
| 14 | * Interface (ABI) for SMC calls made from Non-secure state to the RMM and |
| 15 | * serviced by the RMM. |
Soby Mathew | b4c6df4 | 2022-11-09 11:13:29 +0000 | [diff] [blame] | 16 | */ |
| 17 | |
| 18 | /* |
| 19 | * The major version number of the RMI implementation. Increase this whenever |
| 20 | * the binary format or semantics of the SMC calls change. |
| 21 | */ |
AlexeiFedorov | 2cc6cee | 2023-10-09 16:19:05 +0100 | [diff] [blame] | 22 | #define RMI_ABI_VERSION_MAJOR UL(1) |
Soby Mathew | b4c6df4 | 2022-11-09 11:13:29 +0000 | [diff] [blame] | 23 | |
| 24 | /* |
| 25 | * The minor version number of the RMI implementation. Increase this when |
| 26 | * a bug is fixed, or a feature is added without breaking binary compatibility. |
| 27 | */ |
AlexeiFedorov | ddf5daf | 2023-10-10 14:28:56 +0100 | [diff] [blame] | 28 | #define RMI_ABI_VERSION_MINOR UL(0) |
Soby Mathew | b4c6df4 | 2022-11-09 11:13:29 +0000 | [diff] [blame] | 29 | |
Soby Mathew | c9b6ecd | 2023-01-17 03:40:44 +0000 | [diff] [blame] | 30 | #define RMI_ABI_VERSION ((RMI_ABI_VERSION_MAJOR << U(16)) | \ |
AlexeiFedorov | ddf5daf | 2023-10-10 14:28:56 +0100 | [diff] [blame] | 31 | RMI_ABI_VERSION_MINOR) |
Soby Mathew | b4c6df4 | 2022-11-09 11:13:29 +0000 | [diff] [blame] | 32 | |
Soby Mathew | c9b6ecd | 2023-01-17 03:40:44 +0000 | [diff] [blame] | 33 | #define RMI_ABI_VERSION_GET_MAJOR(_version) ((_version) >> U(16)) |
| 34 | #define RMI_ABI_VERSION_GET_MINOR(_version) ((_version) & U(0xFFFF)) |
Soby Mathew | b4c6df4 | 2022-11-09 11:13:29 +0000 | [diff] [blame] | 35 | |
| 36 | #define SMC64_RMI_FID(_offset) SMC64_STD_FID(RMI, _offset) |
| 37 | |
| 38 | #define IS_SMC64_RMI_FID(_fid) IS_SMC64_STD_FAST_IN_RANGE(RMI, _fid) |
| 39 | |
Yousuf A | 0ec040d | 2022-10-31 12:30:57 +0000 | [diff] [blame] | 40 | /* Command completed successfully. index is zero. */ |
| 41 | #define RMI_SUCCESS U(0) |
| 42 | |
| 43 | /* |
| 44 | * The value of a command input value caused the command to fail. |
| 45 | * Index is zero. |
| 46 | */ |
| 47 | #define RMI_ERROR_INPUT U(1) |
| 48 | |
| 49 | /* |
| 50 | * An attribute of a Realm does not match the expected value. |
| 51 | * index varies between usages. |
| 52 | */ |
| 53 | #define RMI_ERROR_REALM U(2) |
| 54 | |
| 55 | /* |
| 56 | * An attribute of a REC does not match the expected value. |
| 57 | * Index is zero. |
| 58 | */ |
| 59 | #define RMI_ERROR_REC U(3) |
| 60 | |
| 61 | /* |
| 62 | * An RTT walk terminated before reaching the target RTT level, or reached |
| 63 | * an RTTE with an unexpected value. index: RTT level at which the walk |
| 64 | * terminated |
| 65 | */ |
| 66 | #define RMI_ERROR_RTT U(4) |
| 67 | |
| 68 | /* |
Yousuf A | 0ec040d | 2022-10-31 12:30:57 +0000 | [diff] [blame] | 69 | * Number of RMI Status Errors. |
| 70 | */ |
AlexeiFedorov | 892abce | 2023-04-06 16:32:12 +0100 | [diff] [blame] | 71 | #define RMI_ERROR_COUNT U(5) |
Yousuf A | 0ec040d | 2022-10-31 12:30:57 +0000 | [diff] [blame] | 72 | |
Soby Mathew | b4c6df4 | 2022-11-09 11:13:29 +0000 | [diff] [blame] | 73 | /* |
| 74 | * The number of GPRs (starting from X0) that are |
| 75 | * configured by the host when a REC is created. |
| 76 | */ |
Soby Mathew | c9b6ecd | 2023-01-17 03:40:44 +0000 | [diff] [blame] | 77 | #define REC_CREATE_NR_GPRS U(8) |
Soby Mathew | b4c6df4 | 2022-11-09 11:13:29 +0000 | [diff] [blame] | 78 | |
Soby Mathew | c9b6ecd | 2023-01-17 03:40:44 +0000 | [diff] [blame] | 79 | #define REC_PARAMS_FLAG_RUNNABLE (UL(1) << 0) |
Soby Mathew | b4c6df4 | 2022-11-09 11:13:29 +0000 | [diff] [blame] | 80 | |
| 81 | /* |
| 82 | * The number of GPRs (starting from X0) per voluntary exit context. |
| 83 | * Per SMCCC. |
| 84 | */ |
Soby Mathew | c9b6ecd | 2023-01-17 03:40:44 +0000 | [diff] [blame] | 85 | #define REC_EXIT_NR_GPRS U(31) |
Soby Mathew | b4c6df4 | 2022-11-09 11:13:29 +0000 | [diff] [blame] | 86 | |
| 87 | /* RmiHashAlgorithm type */ |
AlexeiFedorov | 6a4314e | 2023-10-20 15:40:14 +0100 | [diff] [blame] | 88 | #define RMI_HASH_SHA_256 0U |
| 89 | #define RMI_HASH_SHA_512 1U |
Soby Mathew | b4c6df4 | 2022-11-09 11:13:29 +0000 | [diff] [blame] | 90 | |
| 91 | /* Maximum number of Interrupt Controller List Registers */ |
Soby Mathew | c9b6ecd | 2023-01-17 03:40:44 +0000 | [diff] [blame] | 92 | #define REC_GIC_NUM_LRS U(16) |
Soby Mathew | b4c6df4 | 2022-11-09 11:13:29 +0000 | [diff] [blame] | 93 | |
Mate Toth-Pal | 0a8f37c | 2023-08-09 13:37:55 +0200 | [diff] [blame] | 94 | #ifndef CBMC |
Soby Mathew | b4c6df4 | 2022-11-09 11:13:29 +0000 | [diff] [blame] | 95 | /* Maximum number of auxiliary granules required for a REC */ |
Soby Mathew | c9b6ecd | 2023-01-17 03:40:44 +0000 | [diff] [blame] | 96 | #define MAX_REC_AUX_GRANULES U(16) |
Mate Toth-Pal | 0a8f37c | 2023-08-09 13:37:55 +0200 | [diff] [blame] | 97 | #else /* CBMC */ |
| 98 | #define MAX_REC_AUX_GRANULES U(1) |
| 99 | #endif /* CBMC */ |
Soby Mathew | b4c6df4 | 2022-11-09 11:13:29 +0000 | [diff] [blame] | 100 | |
AlexeiFedorov | 9b29c6b | 2023-09-12 17:09:50 +0100 | [diff] [blame] | 101 | /* Whether Host has completed emulation for an Emulatable Data Abort */ |
Soby Mathew | c9b6ecd | 2023-01-17 03:40:44 +0000 | [diff] [blame] | 102 | #define REC_ENTRY_FLAG_EMUL_MMIO (UL(1) << 0) |
AlexeiFedorov | 9b29c6b | 2023-09-12 17:09:50 +0100 | [diff] [blame] | 103 | |
| 104 | /* Whether to inject a Synchronous External Abort into Realm */ |
Soby Mathew | c9b6ecd | 2023-01-17 03:40:44 +0000 | [diff] [blame] | 105 | #define REC_ENTRY_FLAG_INJECT_SEA (UL(1) << 1) |
Soby Mathew | b4c6df4 | 2022-11-09 11:13:29 +0000 | [diff] [blame] | 106 | |
AlexeiFedorov | 9b29c6b | 2023-09-12 17:09:50 +0100 | [diff] [blame] | 107 | /* Whether to trap WFI/WFE execution by Realm */ |
Soby Mathew | c9b6ecd | 2023-01-17 03:40:44 +0000 | [diff] [blame] | 108 | #define REC_ENTRY_FLAG_TRAP_WFI (UL(1) << 2) |
| 109 | #define REC_ENTRY_FLAG_TRAP_WFE (UL(1) << 3) |
Soby Mathew | b4c6df4 | 2022-11-09 11:13:29 +0000 | [diff] [blame] | 110 | |
AlexeiFedorov | 9b29c6b | 2023-09-12 17:09:50 +0100 | [diff] [blame] | 111 | /* Host response to RIPAS change request */ |
| 112 | #define REC_ENTRY_FLAG_RIPAS_RESPONSE (UL(1) << 4) |
| 113 | |
Soby Mathew | b4c6df4 | 2022-11-09 11:13:29 +0000 | [diff] [blame] | 114 | /* |
| 115 | * RmiRecExitReason represents the reason for a REC exit. |
| 116 | * This is returned to NS hosts via RMI_REC_ENTER::run_ptr. |
| 117 | */ |
Soby Mathew | c9b6ecd | 2023-01-17 03:40:44 +0000 | [diff] [blame] | 118 | #define RMI_EXIT_SYNC U(0) |
| 119 | #define RMI_EXIT_IRQ U(1) |
| 120 | #define RMI_EXIT_FIQ U(2) |
| 121 | #define RMI_EXIT_PSCI U(3) |
| 122 | #define RMI_EXIT_RIPAS_CHANGE U(4) |
| 123 | #define RMI_EXIT_HOST_CALL U(5) |
| 124 | #define RMI_EXIT_SERROR U(6) |
Soby Mathew | b4c6df4 | 2022-11-09 11:13:29 +0000 | [diff] [blame] | 125 | |
| 126 | /* RmiRttEntryState represents the state of an RTTE */ |
AlexeiFedorov | c53b1f7 | 2023-07-04 15:37:03 +0100 | [diff] [blame] | 127 | #define RMI_UNASSIGNED UL(0) |
| 128 | #define RMI_ASSIGNED UL(1) |
| 129 | #define RMI_TABLE UL(2) |
Soby Mathew | b4c6df4 | 2022-11-09 11:13:29 +0000 | [diff] [blame] | 130 | |
AlexeiFedorov | 7bb7a70 | 2023-01-17 17:04:14 +0000 | [diff] [blame] | 131 | /* RmiFeature enumerations */ |
AlexeiFedorov | c09b165 | 2023-04-04 15:41:37 +0100 | [diff] [blame] | 132 | #define RMI_FEATURE_FALSE UL(0) |
| 133 | #define RMI_FEATURE_TRUE UL(1) |
AlexeiFedorov | 7bb7a70 | 2023-01-17 17:04:14 +0000 | [diff] [blame] | 134 | |
Yousuf A | a297b9b | 2022-10-13 13:54:21 +0100 | [diff] [blame] | 135 | /* RmiFeatureRegister0 format */ |
Arunachalam Ganapathy | 807dda8 | 2024-05-03 14:22:43 +0100 | [diff] [blame^] | 136 | #define RMI_FEATURE_REGISTER_0_INDEX UL(0) |
Yousuf A | a297b9b | 2022-10-13 13:54:21 +0100 | [diff] [blame] | 137 | |
Arunachalam Ganapathy | 807dda8 | 2024-05-03 14:22:43 +0100 | [diff] [blame^] | 138 | #define RMI_FEATURE_REGISTER_0_S2SZ_SHIFT UL(0) |
| 139 | #define RMI_FEATURE_REGISTER_0_S2SZ_WIDTH UL(8) |
Yousuf A | a297b9b | 2022-10-13 13:54:21 +0100 | [diff] [blame] | 140 | |
Arunachalam Ganapathy | 807dda8 | 2024-05-03 14:22:43 +0100 | [diff] [blame^] | 141 | #define RMI_FEATURE_REGISTER_0_LPA2_SHIFT UL(8) |
| 142 | #define RMI_FEATURE_REGISTER_0_LPA2_WIDTH UL(1) |
Yousuf A | a297b9b | 2022-10-13 13:54:21 +0100 | [diff] [blame] | 143 | |
Arunachalam Ganapathy | 807dda8 | 2024-05-03 14:22:43 +0100 | [diff] [blame^] | 144 | #define RMI_FEATURE_REGISTER_0_SVE_EN_SHIFT UL(9) |
| 145 | #define RMI_FEATURE_REGISTER_0_SVE_EN_WIDTH UL(1) |
Yousuf A | a297b9b | 2022-10-13 13:54:21 +0100 | [diff] [blame] | 146 | |
Arunachalam Ganapathy | 807dda8 | 2024-05-03 14:22:43 +0100 | [diff] [blame^] | 147 | #define RMI_FEATURE_REGISTER_0_SVE_VL_SHIFT UL(10) |
| 148 | #define RMI_FEATURE_REGISTER_0_SVE_VL_WIDTH UL(4) |
Yousuf A | a297b9b | 2022-10-13 13:54:21 +0100 | [diff] [blame] | 149 | |
Arunachalam Ganapathy | 807dda8 | 2024-05-03 14:22:43 +0100 | [diff] [blame^] | 150 | #define RMI_FEATURE_REGISTER_0_NUM_BPS_SHIFT UL(14) |
| 151 | #define RMI_FEATURE_REGISTER_0_NUM_BPS_WIDTH UL(4) |
AlexeiFedorov | 1800292 | 2023-04-06 10:19:51 +0100 | [diff] [blame] | 152 | |
Arunachalam Ganapathy | 807dda8 | 2024-05-03 14:22:43 +0100 | [diff] [blame^] | 153 | #define RMI_FEATURE_REGISTER_0_NUM_WPS_SHIFT UL(18) |
| 154 | #define RMI_FEATURE_REGISTER_0_NUM_WPS_WIDTH UL(4) |
AlexeiFedorov | 1800292 | 2023-04-06 10:19:51 +0100 | [diff] [blame] | 155 | |
Arunachalam Ganapathy | 807dda8 | 2024-05-03 14:22:43 +0100 | [diff] [blame^] | 156 | #define RMI_FEATURE_REGISTER_0_PMU_EN_SHIFT UL(22) |
| 157 | #define RMI_FEATURE_REGISTER_0_PMU_EN_WIDTH UL(1) |
AlexeiFedorov | 7bb7a70 | 2023-01-17 17:04:14 +0000 | [diff] [blame] | 158 | |
Arunachalam Ganapathy | 807dda8 | 2024-05-03 14:22:43 +0100 | [diff] [blame^] | 159 | #define RMI_FEATURE_REGISTER_0_PMU_NUM_CTRS_SHIFT UL(23) |
| 160 | #define RMI_FEATURE_REGISTER_0_PMU_NUM_CTRS_WIDTH UL(5) |
AlexeiFedorov | 7bb7a70 | 2023-01-17 17:04:14 +0000 | [diff] [blame] | 161 | |
Arunachalam Ganapathy | 807dda8 | 2024-05-03 14:22:43 +0100 | [diff] [blame^] | 162 | #define RMI_FEATURE_REGISTER_0_HASH_SHA_256_SHIFT UL(28) |
| 163 | #define RMI_FEATURE_REGISTER_0_HASH_SHA_256_WIDTH UL(1) |
AlexeiFedorov | 1800292 | 2023-04-06 10:19:51 +0100 | [diff] [blame] | 164 | |
Arunachalam Ganapathy | 807dda8 | 2024-05-03 14:22:43 +0100 | [diff] [blame^] | 165 | #define RMI_FEATURE_REGISTER_0_HASH_SHA_512_SHIFT UL(29) |
| 166 | #define RMI_FEATURE_REGISTER_0_HASH_SHA_512_WIDTH UL(1) |
Arunachalam Ganapathy | f649121 | 2023-02-23 16:04:34 +0000 | [diff] [blame] | 167 | |
AlexeiFedorov | c53b1f7 | 2023-07-04 15:37:03 +0100 | [diff] [blame] | 168 | /* The RmiRipas enumeration represents realm IPA state */ |
| 169 | |
| 170 | /* Address where no Realm resources are mapped */ |
| 171 | #define RMI_EMPTY UL(0) |
| 172 | |
| 173 | /* Address where private code or data owned by the Realm is mapped */ |
| 174 | #define RMI_RAM UL(1) |
| 175 | |
| 176 | /* Address which is inaccessible to the Realm due to an action taken by the Host */ |
| 177 | #define RMI_DESTROYED UL(2) |
Yousuf A | 6280815 | 2022-10-31 10:35:42 +0000 | [diff] [blame] | 178 | |
AlexeiFedorov | 4d4e734 | 2023-06-12 12:10:06 +0100 | [diff] [blame] | 179 | /* RmiPmuOverflowStatus enumeration representing PMU overflow status */ |
| 180 | #define RMI_PMU_OVERFLOW_NOT_ACTIVE U(0) |
| 181 | #define RMI_PMU_OVERFLOW_ACTIVE U(1) |
| 182 | |
AlexeiFedorov | 9b29c6b | 2023-09-12 17:09:50 +0100 | [diff] [blame] | 183 | /* |
| 184 | * RmiResponse enumeration represents whether the Host accepted |
| 185 | * or rejected a Realm request |
| 186 | */ |
AlexeiFedorov | 6a4314e | 2023-10-20 15:40:14 +0100 | [diff] [blame] | 187 | #define RMI_ACCEPT 0U |
| 188 | #define RMI_REJECT 1U |
AlexeiFedorov | 9b29c6b | 2023-09-12 17:09:50 +0100 | [diff] [blame] | 189 | |
AlexeiFedorov | 2cc6cee | 2023-10-09 16:19:05 +0100 | [diff] [blame] | 190 | /* |
| 191 | * arg0: Requested interface version |
| 192 | * |
| 193 | * ret0: Command return status |
| 194 | * ret1: Lower implemented interface revision |
| 195 | * ret2: Higher implemented interface revision |
| 196 | */ |
Arunachalam Ganapathy | 807dda8 | 2024-05-03 14:22:43 +0100 | [diff] [blame^] | 197 | #define SMC_RMI_VERSION SMC64_RMI_FID(U(0x0)) |
Soby Mathew | b4c6df4 | 2022-11-09 11:13:29 +0000 | [diff] [blame] | 198 | |
| 199 | /* |
| 200 | * arg0 == target granule address |
| 201 | */ |
Arunachalam Ganapathy | 807dda8 | 2024-05-03 14:22:43 +0100 | [diff] [blame^] | 202 | #define SMC_RMI_GRANULE_DELEGATE SMC64_RMI_FID(U(0x1)) |
Soby Mathew | b4c6df4 | 2022-11-09 11:13:29 +0000 | [diff] [blame] | 203 | |
| 204 | /* |
| 205 | * arg0 == target granule address |
| 206 | */ |
Arunachalam Ganapathy | 807dda8 | 2024-05-03 14:22:43 +0100 | [diff] [blame^] | 207 | #define SMC_RMI_GRANULE_UNDELEGATE SMC64_RMI_FID(U(0x2)) |
Soby Mathew | b4c6df4 | 2022-11-09 11:13:29 +0000 | [diff] [blame] | 208 | |
| 209 | /* RmiDataMeasureContent type */ |
AlexeiFedorov | 93f5ec5 | 2023-08-31 14:26:53 +0100 | [diff] [blame] | 210 | #define RMI_NO_MEASURE_CONTENT U(0) |
| 211 | #define RMI_MEASURE_CONTENT U(1) |
Soby Mathew | b4c6df4 | 2022-11-09 11:13:29 +0000 | [diff] [blame] | 212 | |
| 213 | /* |
AlexeiFedorov | ac923c8 | 2023-04-06 15:12:04 +0100 | [diff] [blame] | 214 | * arg0 == RD address |
| 215 | * arg1 == data address |
Soby Mathew | b4c6df4 | 2022-11-09 11:13:29 +0000 | [diff] [blame] | 216 | * arg2 == map address |
| 217 | * arg3 == SRC address |
| 218 | * arg4 == flags |
| 219 | */ |
Arunachalam Ganapathy | 807dda8 | 2024-05-03 14:22:43 +0100 | [diff] [blame^] | 220 | #define SMC_RMI_DATA_CREATE SMC64_RMI_FID(U(0x3)) |
Soby Mathew | b4c6df4 | 2022-11-09 11:13:29 +0000 | [diff] [blame] | 221 | |
| 222 | /* |
AlexeiFedorov | ac923c8 | 2023-04-06 15:12:04 +0100 | [diff] [blame] | 223 | * arg0 == RD address |
| 224 | * arg1 == data address |
Soby Mathew | b4c6df4 | 2022-11-09 11:13:29 +0000 | [diff] [blame] | 225 | * arg2 == map address |
| 226 | */ |
Arunachalam Ganapathy | 807dda8 | 2024-05-03 14:22:43 +0100 | [diff] [blame^] | 227 | #define SMC_RMI_DATA_CREATE_UNKNOWN SMC64_RMI_FID(U(0x4)) |
Soby Mathew | b4c6df4 | 2022-11-09 11:13:29 +0000 | [diff] [blame] | 228 | |
| 229 | /* |
| 230 | * arg0 == RD address |
| 231 | * arg1 == map address |
AlexeiFedorov | e2002be | 2023-04-19 17:20:12 +0100 | [diff] [blame] | 232 | * |
| 233 | * ret1 == Address(PA) of the DATA granule, if ret0 == RMI_SUCCESS. |
| 234 | * Otherwise, undefined. |
| 235 | * ret2 == Top of the non-live address region. Only valid |
AlexeiFedorov | 697445b | 2023-04-25 15:27:57 +0100 | [diff] [blame] | 236 | * if ret0 == RMI_SUCCESS or ret0 == (RMI_ERROR_RTT, x) |
Soby Mathew | b4c6df4 | 2022-11-09 11:13:29 +0000 | [diff] [blame] | 237 | */ |
Arunachalam Ganapathy | 807dda8 | 2024-05-03 14:22:43 +0100 | [diff] [blame^] | 238 | #define SMC_RMI_DATA_DESTROY SMC64_RMI_FID(U(0x5)) |
Soby Mathew | b4c6df4 | 2022-11-09 11:13:29 +0000 | [diff] [blame] | 239 | |
| 240 | /* |
| 241 | * arg0 == RD address |
| 242 | */ |
Arunachalam Ganapathy | 807dda8 | 2024-05-03 14:22:43 +0100 | [diff] [blame^] | 243 | #define SMC_RMI_REALM_ACTIVATE SMC64_RMI_FID(U(0x7)) |
Soby Mathew | b4c6df4 | 2022-11-09 11:13:29 +0000 | [diff] [blame] | 244 | |
| 245 | /* |
| 246 | * arg0 == RD address |
AlexeiFedorov | ac923c8 | 2023-04-06 15:12:04 +0100 | [diff] [blame] | 247 | * arg1 == struct rmi_realm_params address |
Soby Mathew | b4c6df4 | 2022-11-09 11:13:29 +0000 | [diff] [blame] | 248 | */ |
Arunachalam Ganapathy | 807dda8 | 2024-05-03 14:22:43 +0100 | [diff] [blame^] | 249 | #define SMC_RMI_REALM_CREATE SMC64_RMI_FID(U(0x8)) |
Soby Mathew | b4c6df4 | 2022-11-09 11:13:29 +0000 | [diff] [blame] | 250 | |
| 251 | /* |
| 252 | * arg0 == RD address |
| 253 | */ |
Arunachalam Ganapathy | 807dda8 | 2024-05-03 14:22:43 +0100 | [diff] [blame^] | 254 | #define SMC_RMI_REALM_DESTROY SMC64_RMI_FID(U(0x9)) |
Soby Mathew | b4c6df4 | 2022-11-09 11:13:29 +0000 | [diff] [blame] | 255 | |
| 256 | /* |
AlexeiFedorov | ac923c8 | 2023-04-06 15:12:04 +0100 | [diff] [blame] | 257 | * arg0 == RD address |
| 258 | * arg1 == REC address |
Soby Mathew | b4c6df4 | 2022-11-09 11:13:29 +0000 | [diff] [blame] | 259 | * arg2 == struct rmm_rec address |
| 260 | */ |
Arunachalam Ganapathy | 807dda8 | 2024-05-03 14:22:43 +0100 | [diff] [blame^] | 261 | #define SMC_RMI_REC_CREATE SMC64_RMI_FID(U(0xA)) |
Soby Mathew | b4c6df4 | 2022-11-09 11:13:29 +0000 | [diff] [blame] | 262 | |
| 263 | /* |
| 264 | * arg0 == REC address |
| 265 | */ |
Arunachalam Ganapathy | 807dda8 | 2024-05-03 14:22:43 +0100 | [diff] [blame^] | 266 | #define SMC_RMI_REC_DESTROY SMC64_RMI_FID(U(0xB)) |
Soby Mathew | b4c6df4 | 2022-11-09 11:13:29 +0000 | [diff] [blame] | 267 | |
| 268 | /* |
| 269 | * arg0 == rec address |
AlexeiFedorov | ac923c8 | 2023-04-06 15:12:04 +0100 | [diff] [blame] | 270 | * arg1 == struct rec_run address |
Soby Mathew | b4c6df4 | 2022-11-09 11:13:29 +0000 | [diff] [blame] | 271 | */ |
Arunachalam Ganapathy | 807dda8 | 2024-05-03 14:22:43 +0100 | [diff] [blame^] | 272 | #define SMC_RMI_REC_ENTER SMC64_RMI_FID(U(0xC)) |
Soby Mathew | b4c6df4 | 2022-11-09 11:13:29 +0000 | [diff] [blame] | 273 | |
| 274 | /* |
AlexeiFedorov | ac923c8 | 2023-04-06 15:12:04 +0100 | [diff] [blame] | 275 | * arg0 == RD address |
| 276 | * arg1 == RTT address |
Soby Mathew | b4c6df4 | 2022-11-09 11:13:29 +0000 | [diff] [blame] | 277 | * arg2 == map address |
| 278 | * arg3 == level |
| 279 | */ |
Arunachalam Ganapathy | 807dda8 | 2024-05-03 14:22:43 +0100 | [diff] [blame^] | 280 | #define SMC_RMI_RTT_CREATE SMC64_RMI_FID(U(0xD)) |
Soby Mathew | b4c6df4 | 2022-11-09 11:13:29 +0000 | [diff] [blame] | 281 | |
| 282 | /* |
AlexeiFedorov | e2002be | 2023-04-19 17:20:12 +0100 | [diff] [blame] | 283 | * arg0 == RD address |
| 284 | * arg1 == map address |
| 285 | * arg2 == level |
| 286 | * |
| 287 | * ret1 == Address (PA) of the RTT, if ret0 == RMI_SUCCESS |
| 288 | * Otherwise, undefined. |
| 289 | * ret2 == Top of the non-live address region. Only valid |
AlexeiFedorov | 697445b | 2023-04-25 15:27:57 +0100 | [diff] [blame] | 290 | * if ret0 == RMI_SUCCESS or ret0 == (RMI_ERROR_RTT, x) |
Soby Mathew | b4c6df4 | 2022-11-09 11:13:29 +0000 | [diff] [blame] | 291 | */ |
Arunachalam Ganapathy | 807dda8 | 2024-05-03 14:22:43 +0100 | [diff] [blame^] | 292 | #define SMC_RMI_RTT_DESTROY SMC64_RMI_FID(U(0xE)) |
Soby Mathew | b4c6df4 | 2022-11-09 11:13:29 +0000 | [diff] [blame] | 293 | |
| 294 | /* |
| 295 | * arg0 == RD address |
| 296 | * arg1 == map address |
| 297 | * arg2 == level |
| 298 | * arg3 == s2tte |
| 299 | */ |
Arunachalam Ganapathy | 807dda8 | 2024-05-03 14:22:43 +0100 | [diff] [blame^] | 300 | #define SMC_RMI_RTT_MAP_UNPROTECTED SMC64_RMI_FID(U(0xF)) |
Soby Mathew | b4c6df4 | 2022-11-09 11:13:29 +0000 | [diff] [blame] | 301 | |
| 302 | /* |
| 303 | * arg0 == RD address |
| 304 | * arg1 == map address |
| 305 | * arg2 == level |
AlexeiFedorov | 697445b | 2023-04-25 15:27:57 +0100 | [diff] [blame] | 306 | * |
Soby Mathew | b4c6df4 | 2022-11-09 11:13:29 +0000 | [diff] [blame] | 307 | * ret1 == level |
| 308 | * ret2 == s2tte type |
| 309 | * ret3 == s2tte |
| 310 | * ret4 == ripas |
AlexeiFedorov | 697445b | 2023-04-25 15:27:57 +0100 | [diff] [blame] | 311 | * if ret0 == RMI_SUCCESS, otherwise, undefined. |
Soby Mathew | b4c6df4 | 2022-11-09 11:13:29 +0000 | [diff] [blame] | 312 | */ |
Arunachalam Ganapathy | 807dda8 | 2024-05-03 14:22:43 +0100 | [diff] [blame^] | 313 | #define SMC_RMI_RTT_READ_ENTRY SMC64_RMI_FID(U(0x11)) |
Soby Mathew | b4c6df4 | 2022-11-09 11:13:29 +0000 | [diff] [blame] | 314 | |
| 315 | /* |
| 316 | * arg0 == RD address |
| 317 | * arg1 == map address |
| 318 | * arg2 == level |
| 319 | */ |
Arunachalam Ganapathy | 807dda8 | 2024-05-03 14:22:43 +0100 | [diff] [blame^] | 320 | #define SMC_RMI_RTT_UNMAP_UNPROTECTED SMC64_RMI_FID(U(0x12)) |
Soby Mathew | b4c6df4 | 2022-11-09 11:13:29 +0000 | [diff] [blame] | 321 | |
| 322 | /* |
| 323 | * arg0 == calling rec address |
| 324 | * arg1 == target rec address |
| 325 | */ |
Arunachalam Ganapathy | 807dda8 | 2024-05-03 14:22:43 +0100 | [diff] [blame^] | 326 | #define SMC_RMI_PSCI_COMPLETE SMC64_RMI_FID(U(0x14)) |
Soby Mathew | b4c6df4 | 2022-11-09 11:13:29 +0000 | [diff] [blame] | 327 | |
| 328 | /* |
| 329 | * arg0 == Feature register index |
| 330 | */ |
Arunachalam Ganapathy | 807dda8 | 2024-05-03 14:22:43 +0100 | [diff] [blame^] | 331 | #define SMC_RMI_FEATURES SMC64_RMI_FID(U(0x15)) |
Soby Mathew | b4c6df4 | 2022-11-09 11:13:29 +0000 | [diff] [blame] | 332 | |
| 333 | /* |
AlexeiFedorov | e2002be | 2023-04-19 17:20:12 +0100 | [diff] [blame] | 334 | * arg0 == RD address |
| 335 | * arg1 == map address |
| 336 | * arg2 == level |
| 337 | * |
| 338 | * ret1 == Address(PA) of the RTT folded, if ret0 == RMI_SUCCESS |
Soby Mathew | b4c6df4 | 2022-11-09 11:13:29 +0000 | [diff] [blame] | 339 | */ |
Arunachalam Ganapathy | 807dda8 | 2024-05-03 14:22:43 +0100 | [diff] [blame^] | 340 | #define SMC_RMI_RTT_FOLD SMC64_RMI_FID(U(0x16)) |
Soby Mathew | b4c6df4 | 2022-11-09 11:13:29 +0000 | [diff] [blame] | 341 | |
| 342 | /* |
| 343 | * arg0 == RD address |
| 344 | */ |
Arunachalam Ganapathy | 807dda8 | 2024-05-03 14:22:43 +0100 | [diff] [blame^] | 345 | #define SMC_RMI_REC_AUX_COUNT SMC64_RMI_FID(U(0x17)) |
Soby Mathew | b4c6df4 | 2022-11-09 11:13:29 +0000 | [diff] [blame] | 346 | |
| 347 | /* |
AlexeiFedorov | ac923c8 | 2023-04-06 15:12:04 +0100 | [diff] [blame] | 348 | * arg0 == RD address |
AlexeiFedorov | 960d161 | 2023-04-25 13:23:39 +0100 | [diff] [blame] | 349 | * arg1 == start address |
| 350 | * arg2 == end address |
| 351 | * |
| 352 | * ret1 == Top of the address range where the RIPAS was updated, |
| 353 | * if ret0 == RMI_SUCCESS |
Soby Mathew | b4c6df4 | 2022-11-09 11:13:29 +0000 | [diff] [blame] | 354 | */ |
Arunachalam Ganapathy | 807dda8 | 2024-05-03 14:22:43 +0100 | [diff] [blame^] | 355 | #define SMC_RMI_RTT_INIT_RIPAS SMC64_RMI_FID(U(0x18)) |
Soby Mathew | b4c6df4 | 2022-11-09 11:13:29 +0000 | [diff] [blame] | 356 | |
| 357 | /* |
| 358 | * arg0 == RD address |
| 359 | * arg1 == REC address |
AlexeiFedorov | 5cf35ba | 2023-04-25 10:02:20 +0100 | [diff] [blame] | 360 | * arg2 == start address |
| 361 | * arg3 == end address |
| 362 | * |
| 363 | * ret1 == Top of the address range where the RIPAS was updated, |
| 364 | * if ret0 == RMI_SUCCESS |
Soby Mathew | b4c6df4 | 2022-11-09 11:13:29 +0000 | [diff] [blame] | 365 | */ |
Arunachalam Ganapathy | 807dda8 | 2024-05-03 14:22:43 +0100 | [diff] [blame^] | 366 | #define SMC_RMI_RTT_SET_RIPAS SMC64_RMI_FID(U(0x19)) |
Soby Mathew | b4c6df4 | 2022-11-09 11:13:29 +0000 | [diff] [blame] | 367 | |
| 368 | /* Size of Realm Personalization Value */ |
Mate Toth-Pal | c751c0d | 2023-11-14 16:56:41 +0100 | [diff] [blame] | 369 | #ifndef CBMC |
Soby Mathew | b4c6df4 | 2022-11-09 11:13:29 +0000 | [diff] [blame] | 370 | #define RPV_SIZE 64 |
Mate Toth-Pal | c751c0d | 2023-11-14 16:56:41 +0100 | [diff] [blame] | 371 | #else |
| 372 | /* |
| 373 | * Small RPV size so that `struct rd` fits in the reduced sized granule defined |
| 374 | * for CBMC |
| 375 | */ |
| 376 | #define RPV_SIZE 1 |
| 377 | #endif |
Soby Mathew | b4c6df4 | 2022-11-09 11:13:29 +0000 | [diff] [blame] | 378 | |
AlexeiFedorov | 1800292 | 2023-04-06 10:19:51 +0100 | [diff] [blame] | 379 | /* RmiRealmFlags format */ |
| 380 | #define RMI_REALM_FLAGS_LPA2_SHIFT UL(0) |
| 381 | #define RMI_REALM_FLAGS_LPA2_WIDTH UL(1) |
| 382 | |
| 383 | #define RMI_REALM_FLAGS_SVE_SHIFT UL(1) |
| 384 | #define RMI_REALM_FLAGS_SVE_WIDTH UL(1) |
| 385 | |
| 386 | #define RMI_REALM_FLAGS_PMU_SHIFT UL(2) |
| 387 | #define RMI_REALM_FLAGS_PMU_WIDTH UL(1) |
| 388 | |
Soby Mathew | c9b6ecd | 2023-01-17 03:40:44 +0000 | [diff] [blame] | 389 | #ifndef __ASSEMBLER__ |
Soby Mathew | b4c6df4 | 2022-11-09 11:13:29 +0000 | [diff] [blame] | 390 | /* |
Soby Mathew | c414f2a | 2023-01-17 02:50:17 +0000 | [diff] [blame] | 391 | * Defines member of structure and reserves space |
| 392 | * for the next member with specified offset. |
| 393 | */ |
| 394 | #define SET_MEMBER_RMI SET_MEMBER |
| 395 | |
| 396 | /* |
Soby Mathew | b4c6df4 | 2022-11-09 11:13:29 +0000 | [diff] [blame] | 397 | * The Realm attribute parameters are shared by the Host via |
| 398 | * RMI_REALM_CREATE::params_ptr. The values can be observed or modified |
| 399 | * either by the Host or by the Realm. |
| 400 | */ |
| 401 | struct rmi_realm_params { |
AlexeiFedorov | 1800292 | 2023-04-06 10:19:51 +0100 | [diff] [blame] | 402 | /* Flags */ |
| 403 | SET_MEMBER_RMI(unsigned long flags, 0, 0x8); /* Offset 0 */ |
| 404 | /* Requested IPA width */ |
| 405 | SET_MEMBER_RMI(unsigned int s2sz, 0x8, 0x10); /* 0x8 */ |
| 406 | /* Requested SVE vector length */ |
| 407 | SET_MEMBER_RMI(unsigned int sve_vl, 0x10, 0x18); /* 0x10 */ |
| 408 | /* Requested number of breakpoints */ |
| 409 | SET_MEMBER_RMI(unsigned int num_bps, 0x18, 0x20); /* 0x18 */ |
| 410 | /* Requested number of watchpoints */ |
| 411 | SET_MEMBER_RMI(unsigned int num_wps, 0x20, 0x28); /* 0x20 */ |
| 412 | /* Requested number of PMU counters */ |
| 413 | SET_MEMBER_RMI(unsigned int pmu_num_ctrs, 0x28, 0x30); /* 0x28 */ |
Soby Mathew | b4c6df4 | 2022-11-09 11:13:29 +0000 | [diff] [blame] | 414 | /* Measurement algorithm */ |
AlexeiFedorov | 56e1a8e | 2023-09-01 17:06:13 +0100 | [diff] [blame] | 415 | SET_MEMBER_RMI(unsigned char algorithm, 0x30, 0x400); /* 0x30 */ |
Soby Mathew | b4c6df4 | 2022-11-09 11:13:29 +0000 | [diff] [blame] | 416 | /* Realm Personalization Value */ |
AlexeiFedorov | 1800292 | 2023-04-06 10:19:51 +0100 | [diff] [blame] | 417 | SET_MEMBER_RMI(unsigned char rpv[RPV_SIZE], 0x400, 0x800); /* 0x400 */ |
Soby Mathew | c414f2a | 2023-01-17 02:50:17 +0000 | [diff] [blame] | 418 | SET_MEMBER_RMI(struct { |
Soby Mathew | b4c6df4 | 2022-11-09 11:13:29 +0000 | [diff] [blame] | 419 | /* Virtual Machine Identifier */ |
| 420 | unsigned short vmid; /* 0x800 */ |
| 421 | /* Realm Translation Table base */ |
| 422 | unsigned long rtt_base; /* 0x808 */ |
| 423 | /* RTT starting level */ |
| 424 | long rtt_level_start; /* 0x810 */ |
| 425 | /* Number of starting level RTTs */ |
| 426 | unsigned int rtt_num_start; /* 0x818 */ |
| 427 | }, 0x800, 0x1000); |
| 428 | }; |
| 429 | |
Soby Mathew | b4c6df4 | 2022-11-09 11:13:29 +0000 | [diff] [blame] | 430 | /* |
| 431 | * The REC attribute parameters are shared by the Host via |
AlexeiFedorov | 7011513 | 2023-11-27 13:04:26 +0000 | [diff] [blame] | 432 | * RMI_REC_CREATE::params_ptr. The values can be observed or modified |
Soby Mathew | b4c6df4 | 2022-11-09 11:13:29 +0000 | [diff] [blame] | 433 | * either by the Host or by the Realm which owns the REC. |
| 434 | */ |
| 435 | struct rmi_rec_params { |
| 436 | /* Flags */ |
Soby Mathew | c414f2a | 2023-01-17 02:50:17 +0000 | [diff] [blame] | 437 | SET_MEMBER_RMI(unsigned long flags, 0, 0x100); /* Offset 0 */ |
Soby Mathew | b4c6df4 | 2022-11-09 11:13:29 +0000 | [diff] [blame] | 438 | /* MPIDR of the REC */ |
Soby Mathew | c414f2a | 2023-01-17 02:50:17 +0000 | [diff] [blame] | 439 | SET_MEMBER_RMI(unsigned long mpidr, 0x100, 0x200); /* 0x100 */ |
Soby Mathew | b4c6df4 | 2022-11-09 11:13:29 +0000 | [diff] [blame] | 440 | /* Program counter */ |
Soby Mathew | c414f2a | 2023-01-17 02:50:17 +0000 | [diff] [blame] | 441 | SET_MEMBER_RMI(unsigned long pc, 0x200, 0x300); /* 0x200 */ |
Soby Mathew | b4c6df4 | 2022-11-09 11:13:29 +0000 | [diff] [blame] | 442 | /* General-purpose registers */ |
Soby Mathew | c414f2a | 2023-01-17 02:50:17 +0000 | [diff] [blame] | 443 | SET_MEMBER_RMI(unsigned long gprs[REC_CREATE_NR_GPRS], 0x300, 0x800); /* 0x300 */ |
| 444 | SET_MEMBER_RMI(struct { |
Soby Mathew | b4c6df4 | 2022-11-09 11:13:29 +0000 | [diff] [blame] | 445 | /* Number of auxiliary Granules */ |
| 446 | unsigned long num_aux; /* 0x800 */ |
| 447 | /* Addresses of auxiliary Granules */ |
| 448 | unsigned long aux[MAX_REC_AUX_GRANULES];/* 0x808 */ |
| 449 | }, 0x800, 0x1000); |
| 450 | }; |
| 451 | |
Soby Mathew | b4c6df4 | 2022-11-09 11:13:29 +0000 | [diff] [blame] | 452 | /* |
| 453 | * Structure contains data passed from the Host to the RMM on REC entry |
| 454 | */ |
AlexeiFedorov | 52912a6 | 2023-07-24 12:28:47 +0100 | [diff] [blame] | 455 | struct rmi_rec_enter { |
Soby Mathew | b4c6df4 | 2022-11-09 11:13:29 +0000 | [diff] [blame] | 456 | /* Flags */ |
Soby Mathew | c414f2a | 2023-01-17 02:50:17 +0000 | [diff] [blame] | 457 | SET_MEMBER_RMI(unsigned long flags, 0, 0x200); /* Offset 0 */ |
Soby Mathew | b4c6df4 | 2022-11-09 11:13:29 +0000 | [diff] [blame] | 458 | /* General-purpose registers */ |
Soby Mathew | c414f2a | 2023-01-17 02:50:17 +0000 | [diff] [blame] | 459 | SET_MEMBER_RMI(unsigned long gprs[REC_EXIT_NR_GPRS], 0x200, 0x300); /* 0x200 */ |
| 460 | SET_MEMBER_RMI(struct { |
Soby Mathew | b4c6df4 | 2022-11-09 11:13:29 +0000 | [diff] [blame] | 461 | /* GICv3 Hypervisor Control Register */ |
| 462 | unsigned long gicv3_hcr; /* 0x300 */ |
| 463 | /* GICv3 List Registers */ |
| 464 | unsigned long gicv3_lrs[REC_GIC_NUM_LRS]; /* 0x308 */ |
| 465 | }, 0x300, 0x800); |
| 466 | }; |
| 467 | |
Soby Mathew | b4c6df4 | 2022-11-09 11:13:29 +0000 | [diff] [blame] | 468 | /* |
| 469 | * Structure contains data passed from the RMM to the Host on REC exit |
| 470 | */ |
| 471 | struct rmi_rec_exit { |
| 472 | /* Exit reason */ |
Soby Mathew | c414f2a | 2023-01-17 02:50:17 +0000 | [diff] [blame] | 473 | SET_MEMBER_RMI(unsigned long exit_reason, 0, 0x100);/* Offset 0 */ |
| 474 | SET_MEMBER_RMI(struct { |
Soby Mathew | b4c6df4 | 2022-11-09 11:13:29 +0000 | [diff] [blame] | 475 | /* Exception Syndrome Register */ |
| 476 | unsigned long esr; /* 0x100 */ |
| 477 | /* Fault Address Register */ |
| 478 | unsigned long far; /* 0x108 */ |
| 479 | /* Hypervisor IPA Fault Address register */ |
| 480 | unsigned long hpfar; /* 0x110 */ |
| 481 | }, 0x100, 0x200); |
| 482 | /* General-purpose registers */ |
Soby Mathew | c414f2a | 2023-01-17 02:50:17 +0000 | [diff] [blame] | 483 | SET_MEMBER_RMI(unsigned long gprs[REC_EXIT_NR_GPRS], 0x200, 0x300); /* 0x200 */ |
| 484 | SET_MEMBER_RMI(struct { |
Soby Mathew | b4c6df4 | 2022-11-09 11:13:29 +0000 | [diff] [blame] | 485 | /* GICv3 Hypervisor Control Register */ |
| 486 | unsigned long gicv3_hcr; /* 0x300 */ |
| 487 | /* GICv3 List Registers */ |
| 488 | unsigned long gicv3_lrs[REC_GIC_NUM_LRS]; /* 0x308 */ |
| 489 | /* GICv3 Maintenance Interrupt State Register */ |
| 490 | unsigned long gicv3_misr; /* 0x388 */ |
| 491 | /* GICv3 Virtual Machine Control Register */ |
| 492 | unsigned long gicv3_vmcr; /* 0x390 */ |
| 493 | }, 0x300, 0x400); |
Soby Mathew | c414f2a | 2023-01-17 02:50:17 +0000 | [diff] [blame] | 494 | SET_MEMBER_RMI(struct { |
Soby Mathew | b4c6df4 | 2022-11-09 11:13:29 +0000 | [diff] [blame] | 495 | /* Counter-timer Physical Timer Control Register */ |
| 496 | unsigned long cntp_ctl; /* 0x400 */ |
| 497 | /* Counter-timer Physical Timer CompareValue Register */ |
| 498 | unsigned long cntp_cval; /* 0x408 */ |
| 499 | /* Counter-timer Virtual Timer Control Register */ |
| 500 | unsigned long cntv_ctl; /* 0x410 */ |
| 501 | /* Counter-timer Virtual Timer CompareValue Register */ |
| 502 | unsigned long cntv_cval; /* 0x418 */ |
| 503 | }, 0x400, 0x500); |
Soby Mathew | c414f2a | 2023-01-17 02:50:17 +0000 | [diff] [blame] | 504 | SET_MEMBER_RMI(struct { |
Soby Mathew | b4c6df4 | 2022-11-09 11:13:29 +0000 | [diff] [blame] | 505 | /* Base address of pending RIPAS change */ |
| 506 | unsigned long ripas_base; /* 0x500 */ |
| 507 | /* Size of pending RIPAS change */ |
AlexeiFedorov | ccce3ad | 2023-04-28 18:29:47 +0100 | [diff] [blame] | 508 | unsigned long ripas_top; /* 0x508 */ |
Soby Mathew | b4c6df4 | 2022-11-09 11:13:29 +0000 | [diff] [blame] | 509 | /* RIPAS value of pending RIPAS change */ |
| 510 | unsigned char ripas_value; /* 0x510 */ |
| 511 | }, 0x500, 0x600); |
| 512 | /* Host call immediate value */ |
AlexeiFedorov | eaec0c4 | 2023-02-01 18:13:32 +0000 | [diff] [blame] | 513 | SET_MEMBER_RMI(unsigned int imm, 0x600, 0x700); /* 0x600 */ |
AlexeiFedorov | 4d4e734 | 2023-06-12 12:10:06 +0100 | [diff] [blame] | 514 | /* PMU overflow status */ |
| 515 | SET_MEMBER_RMI(unsigned long pmu_ovf_status, 0x700, 0x800); /* 0x700 */ |
Soby Mathew | b4c6df4 | 2022-11-09 11:13:29 +0000 | [diff] [blame] | 516 | }; |
| 517 | |
Soby Mathew | b4c6df4 | 2022-11-09 11:13:29 +0000 | [diff] [blame] | 518 | /* |
| 519 | * Structure contains shared information between RMM and Host |
| 520 | * during REC entry and REC exit. |
| 521 | */ |
| 522 | struct rmi_rec_run { |
| 523 | /* Entry information */ |
AlexeiFedorov | 52912a6 | 2023-07-24 12:28:47 +0100 | [diff] [blame] | 524 | SET_MEMBER_RMI(struct rmi_rec_enter enter, 0, 0x800); /* Offset 0 */ |
Soby Mathew | b4c6df4 | 2022-11-09 11:13:29 +0000 | [diff] [blame] | 525 | /* Exit information */ |
AlexeiFedorov | eaec0c4 | 2023-02-01 18:13:32 +0000 | [diff] [blame] | 526 | SET_MEMBER_RMI(struct rmi_rec_exit exit, 0x800, 0x1000);/* 0x800 */ |
Soby Mathew | b4c6df4 | 2022-11-09 11:13:29 +0000 | [diff] [blame] | 527 | }; |
| 528 | |
Soby Mathew | c9b6ecd | 2023-01-17 03:40:44 +0000 | [diff] [blame] | 529 | #endif /* __ASSEMBLER__ */ |
| 530 | |
Soby Mathew | b4c6df4 | 2022-11-09 11:13:29 +0000 | [diff] [blame] | 531 | #endif /* SMC_RMI_H */ |