pnc.h 700 B

1234567891011121314151617181920212223242526272829
  1. /*
  2. * Copyright (c) 2021-2022, ProvenRun S.A.S. All rights reserved.
  3. *
  4. * SPDX-License-Identifier: BSD-3-Clause
  5. */
  6. #ifndef __PNC_H__
  7. #define __PNC_H__
  8. #define SMC_YIELD 0xbf000000
  9. #define SMC_ACTION_FROM_S 0xbf000001
  10. #define SMC_GET_SHAREDMEM 0xbf000002
  11. #define SMC_CONFIG_SHAREDMEM 0xbf000003
  12. #define SMC_ACTION_FROM_NS 0xbf000004
  13. #ifndef __ASSEMBLER__
  14. #include <stdint.h>
  15. void *pncd_context_switch_to(unsigned long security_state);
  16. int plat_pncd_setup(void);
  17. uintptr_t plat_pncd_smc_handler(uint32_t smc_fid, u_register_t x1,
  18. u_register_t x2, u_register_t x3,
  19. u_register_t x4, void *cookie, void *handle,
  20. u_register_t flags);
  21. #endif /* __ASSEMBLER__ */
  22. #endif /* __PNC_H__ */