blob: f95d3073bc9eade41a89a5a277fd2da61bcf1e8c [file] [log] [blame]
Mate Toth-Pal2611c552023-02-28 10:28:32 +01001/*
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
11void host_rmi_granule_delegate(void *granule_address, struct smc_result *ret);
12void host_rmi_granule_undelegate(void *granule_address, struct smc_result *ret);
13void host_rmi_realm_create(void *rd, void *params_ptr, struct smc_result *ret);
14void host_rmi_realm_destroy(void *rd, struct smc_result *ret);
AlexeiFedorovac923c82023-04-06 15:12:04 +010015void host_rmi_rtt_create(void *rd, void *rtt, void *ipa,
Mate Toth-Pal2611c552023-02-28 10:28:32 +010016 unsigned int level, struct smc_result *ret);
AlexeiFedorove2002be2023-04-19 17:20:12 +010017void host_rmi_rtt_destroy(void *rd, void *ipa, unsigned int level,
18 struct smc_result *ret);
Mate Toth-Pal2611c552023-02-28 10:28:32 +010019void host_rmi_rec_aux_count(void *rd, struct smc_result *ret);
AlexeiFedorovac923c82023-04-06 15:12:04 +010020void host_rmi_rec_create(void *rd, void *rec, void *params_ptr,
Mate Toth-Pal2611c552023-02-28 10:28:32 +010021 struct smc_result *ret);
22void host_rmi_rec_destroy(void *rec, struct smc_result *ret);
23void host_rmi_realm_activate(void *rd, struct smc_result *ret);
24void host_rmi_rec_enter(void *rec, void *run_ptr, struct smc_result *ret);
Soby Mathew76e9b452023-05-16 15:11:34 +010025void host_rmi_data_create(uintptr_t data, void *rd, uintptr_t ipa,
26 uintptr_t src, struct smc_result *ret);
AlexeiFedorovac923c82023-04-06 15:12:04 +010027void host_rmi_data_create_unknown(void *rd, uintptr_t data, uintptr_t ipa,
Soby Mathew76e9b452023-05-16 15:11:34 +010028 struct smc_result *ret);
AlexeiFedorov960d1612023-04-25 13:23:39 +010029void host_rmi_rtt_init_ripas(void *rd, uintptr_t base, uintptr_t top,
Soby Mathew76e9b452023-05-16 15:11:34 +010030 struct smc_result *ret);
31void host_rmi_data_destroy(void *rd, uintptr_t ipa, struct smc_result *ret);
Mate Toth-Pal2611c552023-02-28 10:28:32 +010032
33#endif /* HOST_RMI_WRAPPERS_H */