Soby Mathew | b4c6df4 | 2022-11-09 11:13:29 +0000 | [diff] [blame^] | 1 | /* |
| 2 | * SPDX-License-Identifier: BSD-3-Clause |
| 3 | * SPDX-FileCopyrightText: Copyright TF-RMM Contributors. |
| 4 | */ |
| 5 | |
| 6 | #ifndef RSI_CONFIG_H |
| 7 | #define RSI_CONFIG_H |
| 8 | |
| 9 | #include <rsi-walk.h> |
| 10 | #include <smc.h> |
| 11 | |
| 12 | struct rec; |
| 13 | |
| 14 | struct rsi_config_result { |
| 15 | /* |
| 16 | * Result of RTT walk performed by RSI command. |
| 17 | */ |
| 18 | struct rsi_walk_result walk_result; |
| 19 | |
| 20 | /* |
| 21 | * If @walk_result.abort is false, @smc_res contains GPR values to be |
| 22 | * returned to the Realm. |
| 23 | */ |
| 24 | struct smc_result smc_res; |
| 25 | }; |
| 26 | |
| 27 | struct rsi_config_result handle_rsi_realm_config(struct rec *rec); |
| 28 | |
| 29 | #endif /* RSI_CONFIG_H */ |