generic-arm64-smcall.h 707 B

12345678910111213141516171819202122232425262728
  1. /*
  2. * Copyright (c) 2016, ARM Limited and Contributors. All rights reserved.
  3. *
  4. * SPDX-License-Identifier: BSD-3-Clause
  5. */
  6. #include "smcall.h"
  7. #define SMC_ENTITY_PLATFORM_MONITOR 61
  8. /*
  9. * SMC calls implemented by EL3 monitor
  10. */
  11. /*
  12. * Write character in r1 to debug console
  13. */
  14. #define SMC_FC_DEBUG_PUTC SMC_FASTCALL_NR(SMC_ENTITY_PLATFORM_MONITOR, 0x0)
  15. /*
  16. * Get register base address
  17. * r1: SMC_GET_GIC_BASE_GICD or SMC_GET_GIC_BASE_GICC
  18. */
  19. #define SMC_GET_GIC_BASE_GICD 0
  20. #define SMC_GET_GIC_BASE_GICC 1
  21. #define SMC_GET_GIC_BASE_GICR 2
  22. #define SMC_FC_GET_REG_BASE SMC_FASTCALL_NR(SMC_ENTITY_PLATFORM_MONITOR, 0x1)
  23. #define SMC_FC64_GET_REG_BASE SMC_FASTCALL64_NR(SMC_ENTITY_PLATFORM_MONITOR, 0x1)