spmd_svc.h 897 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /*
  2. * Copyright (c) 2020-2022, ARM Limited and Contributors. All rights reserved.
  3. *
  4. * SPDX-License-Identifier: BSD-3-Clause
  5. */
  6. #ifndef SPMD_SVC_H
  7. #define SPMD_SVC_H
  8. #ifndef __ASSEMBLER__
  9. #include <services/ffa_svc.h>
  10. #include <stdint.h>
  11. int spmd_setup(void);
  12. uint64_t spmd_ffa_smc_handler(uint32_t smc_fid,
  13. uint64_t x1,
  14. uint64_t x2,
  15. uint64_t x3,
  16. uint64_t x4,
  17. void *cookie,
  18. void *handle,
  19. uint64_t flags);
  20. uint64_t spmd_smc_handler(uint32_t smc_fid,
  21. uint64_t x1,
  22. uint64_t x2,
  23. uint64_t x3,
  24. uint64_t x4,
  25. void *cookie,
  26. void *handle,
  27. uint64_t flags);
  28. uint64_t spmd_smc_switch_state(uint32_t smc_fid,
  29. bool secure_origin,
  30. uint64_t x1,
  31. uint64_t x2,
  32. uint64_t x3,
  33. uint64_t x4,
  34. void *handle);
  35. #endif /* __ASSEMBLER__ */
  36. #endif /* SPMD_SVC_H */