std_svc.h 837 B

123456789101112131415161718192021222324252627282930
  1. /*
  2. * Copyright (c) 2014-2016, ARM Limited and Contributors. All rights reserved.
  3. *
  4. * SPDX-License-Identifier: BSD-3-Clause
  5. */
  6. #ifndef STD_SVC_H
  7. #define STD_SVC_H
  8. /* SMC function IDs for Standard Service queries */
  9. #define ARM_STD_SVC_CALL_COUNT 0x8400ff00
  10. #define ARM_STD_SVC_UID 0x8400ff01
  11. /* 0x8400ff02 is reserved */
  12. #define ARM_STD_SVC_VERSION 0x8400ff03
  13. /* ARM Standard Service Calls version numbers */
  14. #define STD_SVC_VERSION_MAJOR 0x0
  15. #define STD_SVC_VERSION_MINOR 0x1
  16. /*
  17. * Get the ARM Standard Service argument from EL3 Runtime.
  18. * This function must be implemented by EL3 Runtime and the
  19. * `svc_mask` identifies the service. `svc_mask` is a bit
  20. * mask identifying the range of SMC function IDs available
  21. * to the service.
  22. */
  23. uintptr_t get_arm_std_svc_args(unsigned int svc_mask);
  24. #endif /* STD_SVC_H */