Mate Toth-Pal | 2611c55 | 2023-02-28 10:28:32 +0100 | [diff] [blame] | 1 | /* |
| 2 | * SPDX-License-Identifier: BSD-3-Clause |
| 3 | * SPDX-FileCopyrightText: Copyright TF-RMM Contributors. |
| 4 | */ |
| 5 | |
| 6 | #ifndef HOST_RMI_WRAPPERS_H |
| 7 | #define HOST_RMI_WRAPPERS_H |
| 8 | |
| 9 | #include <smc-rmi.h> |
| 10 | |
| 11 | void host_rmi_granule_delegate(void *granule_address, struct smc_result *ret); |
| 12 | void host_rmi_granule_undelegate(void *granule_address, struct smc_result *ret); |
| 13 | void host_rmi_realm_create(void *rd, void *params_ptr, struct smc_result *ret); |
| 14 | void host_rmi_realm_destroy(void *rd, struct smc_result *ret); |
AlexeiFedorov | ac923c8 | 2023-04-06 15:12:04 +0100 | [diff] [blame] | 15 | void host_rmi_rtt_create(void *rd, void *rtt, void *ipa, |
Mate Toth-Pal | 2611c55 | 2023-02-28 10:28:32 +0100 | [diff] [blame] | 16 | unsigned int level, struct smc_result *ret); |
AlexeiFedorov | e2002be | 2023-04-19 17:20:12 +0100 | [diff] [blame] | 17 | void host_rmi_rtt_destroy(void *rd, void *ipa, unsigned int level, |
| 18 | struct smc_result *ret); |
Mate Toth-Pal | 2611c55 | 2023-02-28 10:28:32 +0100 | [diff] [blame] | 19 | void host_rmi_rec_aux_count(void *rd, struct smc_result *ret); |
AlexeiFedorov | ac923c8 | 2023-04-06 15:12:04 +0100 | [diff] [blame] | 20 | void host_rmi_rec_create(void *rd, void *rec, void *params_ptr, |
Mate Toth-Pal | 2611c55 | 2023-02-28 10:28:32 +0100 | [diff] [blame] | 21 | struct smc_result *ret); |
| 22 | void host_rmi_rec_destroy(void *rec, struct smc_result *ret); |
| 23 | void host_rmi_realm_activate(void *rd, struct smc_result *ret); |
| 24 | void host_rmi_rec_enter(void *rec, void *run_ptr, struct smc_result *ret); |
Soby Mathew | 76e9b45 | 2023-05-16 15:11:34 +0100 | [diff] [blame] | 25 | void host_rmi_data_create(uintptr_t data, void *rd, uintptr_t ipa, |
| 26 | uintptr_t src, struct smc_result *ret); |
AlexeiFedorov | ac923c8 | 2023-04-06 15:12:04 +0100 | [diff] [blame] | 27 | void host_rmi_data_create_unknown(void *rd, uintptr_t data, uintptr_t ipa, |
Soby Mathew | 76e9b45 | 2023-05-16 15:11:34 +0100 | [diff] [blame] | 28 | struct smc_result *ret); |
AlexeiFedorov | 960d161 | 2023-04-25 13:23:39 +0100 | [diff] [blame] | 29 | void host_rmi_rtt_init_ripas(void *rd, uintptr_t base, uintptr_t top, |
Soby Mathew | 76e9b45 | 2023-05-16 15:11:34 +0100 | [diff] [blame] | 30 | struct smc_result *ret); |
| 31 | void host_rmi_data_destroy(void *rd, uintptr_t ipa, struct smc_result *ret); |
Mate Toth-Pal | 2611c55 | 2023-02-28 10:28:32 +0100 | [diff] [blame] | 32 | |
| 33 | #endif /* HOST_RMI_WRAPPERS_H */ |