Antonio Nino Diaz | 652d20a | 2018-12-10 17:17:33 +0000 | [diff] [blame] | 1 | /* |
Olivier Deprez | 61be4c1 | 2019-12-06 17:45:07 +0100 | [diff] [blame] | 2 | * Copyright (c) 2018-2020, Arm Limited. All rights reserved. |
Antonio Nino Diaz | 652d20a | 2018-12-10 17:17:33 +0000 | [diff] [blame] | 3 | * |
| 4 | * SPDX-License-Identifier: BSD-3-Clause |
| 5 | */ |
| 6 | |
| 7 | #ifndef SPCI_HELPERS_H |
| 8 | #define SPCI_HELPERS_H |
| 9 | |
Olivier Deprez | 61be4c1 | 2019-12-06 17:45:07 +0100 | [diff] [blame] | 10 | #include <tftf_lib.h> |
Antonio Nino Diaz | 652d20a | 2018-12-10 17:17:33 +0000 | [diff] [blame] | 11 | #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 Diaz | 652d20a | 2018-12-10 17:17:33 +0000 | [diff] [blame] | 16 | #ifndef __ASSEMBLY__ |
| 17 | |
| 18 | #include <stdint.h> |
Antonio Nino Diaz | 652d20a | 2018-12-10 17:17:33 +0000 | [diff] [blame] | 19 | |
Olivier Deprez | 61be4c1 | 2019-12-06 17:45:07 +0100 | [diff] [blame] | 20 | smc_ret_values spci_msg_send_direct_req(uint32_t source_id, uint32_t dest_id, uint32_t message); |
| 21 | smc_ret_values spci_msg_send_direct_req64(uint32_t source_id, uint32_t dest_id, uint64_t message); |
| 22 | smc_ret_values spci_run(uint32_t dest_id, uint32_t vcpu_id); |
Antonio Nino Diaz | ad8fcee | 2018-12-18 10:51:36 +0000 | [diff] [blame] | 23 | |
Antonio Nino Diaz | 652d20a | 2018-12-10 17:17:33 +0000 | [diff] [blame] | 24 | #endif /* __ASSEMBLY__ */ |
| 25 | |
| 26 | #endif /* SPCI_HELPERS_H */ |