Achin Gupta | 86f2353 | 2019-10-11 15:41:16 +0100 | [diff] [blame] | 1 | /* |
Marc Bonnici | da2c9e1 | 2021-11-29 18:02:45 +0000 | [diff] [blame] | 2 | * Copyright (c) 2020-2022, ARM Limited and Contributors. All rights reserved. |
Achin Gupta | 86f2353 | 2019-10-11 15:41:16 +0100 | [diff] [blame] | 3 | * |
| 4 | * SPDX-License-Identifier: BSD-3-Clause |
| 5 | */ |
| 6 | |
| 7 | #ifndef SPMD_SVC_H |
| 8 | #define SPMD_SVC_H |
| 9 | |
| 10 | #ifndef __ASSEMBLER__ |
J-Alves | 2672cde | 2020-05-07 18:42:25 +0100 | [diff] [blame] | 11 | #include <services/ffa_svc.h> |
Achin Gupta | 86f2353 | 2019-10-11 15:41:16 +0100 | [diff] [blame] | 12 | #include <stdint.h> |
| 13 | |
Max Shvetsov | 745889c | 2020-02-27 14:54:21 +0000 | [diff] [blame] | 14 | int spmd_setup(void); |
Marc Bonnici | da2c9e1 | 2021-11-29 18:02:45 +0000 | [diff] [blame] | 15 | uint64_t spmd_ffa_smc_handler(uint32_t smc_fid, |
| 16 | uint64_t x1, |
| 17 | uint64_t x2, |
| 18 | uint64_t x3, |
| 19 | uint64_t x4, |
| 20 | void *cookie, |
| 21 | void *handle, |
| 22 | uint64_t flags); |
Achin Gupta | 86f2353 | 2019-10-11 15:41:16 +0100 | [diff] [blame] | 23 | uint64_t spmd_smc_handler(uint32_t smc_fid, |
| 24 | uint64_t x1, |
| 25 | uint64_t x2, |
| 26 | uint64_t x3, |
| 27 | uint64_t x4, |
| 28 | void *cookie, |
| 29 | void *handle, |
| 30 | uint64_t flags); |
Marc Bonnici | da2c9e1 | 2021-11-29 18:02:45 +0000 | [diff] [blame] | 31 | uint64_t spmd_smc_switch_state(uint32_t smc_fid, |
| 32 | bool secure_origin, |
| 33 | uint64_t x1, |
| 34 | uint64_t x2, |
| 35 | uint64_t x3, |
| 36 | uint64_t x4, |
Olivier Deprez | dce23c0 | 2022-10-31 12:38:17 +0100 | [diff] [blame] | 37 | void *handle, |
| 38 | uint64_t flags); |
Achin Gupta | 86f2353 | 2019-10-11 15:41:16 +0100 | [diff] [blame] | 39 | #endif /* __ASSEMBLER__ */ |
| 40 | |
| 41 | #endif /* SPMD_SVC_H */ |