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 RIPAS_H |
| 7 | #define RIPAS_H |
| 8 | |
Yousuf A | 6280815 | 2022-10-31 10:35:42 +0000 | [diff] [blame] | 9 | #include <smc-rmi.h> |
Soby Mathew | b4c6df4 | 2022-11-09 11:13:29 +0000 | [diff] [blame] | 10 | |
| 11 | /* |
AlexeiFedorov | c53b1f7 | 2023-07-04 15:37:03 +0100 | [diff] [blame] | 12 | * The RmmRipas enumeration represents realm IPA state. |
Soby Mathew | b4c6df4 | 2022-11-09 11:13:29 +0000 | [diff] [blame] | 13 | * |
| 14 | * Map RmmRipas to RmiRipas to simplify code/decode operations. |
| 15 | */ |
| 16 | enum ripas { |
Yousuf A | 6280815 | 2022-10-31 10:35:42 +0000 | [diff] [blame] | 17 | RIPAS_EMPTY = RMI_EMPTY, /* Unused IPA for Realm */ |
AlexeiFedorov | 20afb5c | 2023-04-18 11:44:19 +0100 | [diff] [blame] | 18 | RIPAS_RAM = RMI_RAM, /* IPA used for Code/Data by Realm */ |
AlexeiFedorov | c53b1f7 | 2023-07-04 15:37:03 +0100 | [diff] [blame] | 19 | RIPAS_DESTROYED = RMI_DESTROYED /* IPA is inaccessible to the Realm */ |
Soby Mathew | b4c6df4 | 2022-11-09 11:13:29 +0000 | [diff] [blame] | 20 | }; |
| 21 | |
| 22 | #endif /* RIPAS_H */ |