blob: cfc3a5ff4f1f7d0cfa84fea225f3b4e7b90561ea [file] [log] [blame]
Antonio Nino Diaz652d20a2018-12-10 17:17:33 +00001/*
Olivier Deprez61be4c12019-12-06 17:45:07 +01002 * Copyright (c) 2018-2020, Arm Limited. All rights reserved.
Antonio Nino Diaz652d20a2018-12-10 17:17:33 +00003 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
7#ifndef SPCI_HELPERS_H
8#define SPCI_HELPERS_H
9
Olivier Deprez61be4c12019-12-06 17:45:07 +010010#include <tftf_lib.h>
Antonio Nino Diaz652d20a2018-12-10 17:17:33 +000011#include <utils_def.h>
12
13/* This error code must be different to the ones used by SPCI */
14#define SPCI_TFTF_ERROR -42
15
Antonio Nino Diaz652d20a2018-12-10 17:17:33 +000016#ifndef __ASSEMBLY__
17
18#include <stdint.h>
Antonio Nino Diaz652d20a2018-12-10 17:17:33 +000019
Olivier Deprez61be4c12019-12-06 17:45:07 +010020smc_ret_values spci_msg_send_direct_req(uint32_t source_id, uint32_t dest_id, uint32_t message);
21smc_ret_values spci_msg_send_direct_req64(uint32_t source_id, uint32_t dest_id, uint64_t message);
22smc_ret_values spci_run(uint32_t dest_id, uint32_t vcpu_id);
Antonio Nino Diazad8fcee2018-12-18 10:51:36 +000023
Antonio Nino Diaz652d20a2018-12-10 17:17:33 +000024#endif /* __ASSEMBLY__ */
25
26#endif /* SPCI_HELPERS_H */