1 /*
2  * SPDX-License-Identifier: BSD-3-Clause
3  * SPDX-FileCopyrightText: Copyright TF-RMM Contributors.
4  */
5 
6 #ifndef RSI_WALK_H
7 #define RSI_WALK_H
8 
9 struct smc_result;
10 
11 struct rsi_walk_result {
12 	/*
13 	 * If true, RTT walk failed due to missing PTE at level @rtt_level.
14 	 *
15 	 * If false, @smc_result contains GPR values to be returned to the
16 	 * Realm.
17 	 */
18 	bool abort;
19 	unsigned long rtt_level;
20 };
21 
22 struct rsi_walk_smc_result {
23 	/* Result of RTT walk performed by RSI command */
24 	struct rsi_walk_result walk_result;
25 
26 	/*
27 	 * If @walk_result.abort is false, @smc_res contains GPR values to be
28 	 * returned to the Realm.
29 	 */
30 	struct smc_result smc_res;
31 };
32 
33 #endif /* RSI_WALK_H */
34