nvg_helpers.S 641 B

12345678910111213141516171819202122232425262728293031
  1. /*
  2. * Copyright (c) 2015-2016, ARM Limited and Contributors. All rights reserved.
  3. *
  4. * SPDX-License-Identifier: BSD-3-Clause
  5. */
  6. #include <arch.h>
  7. #include <asm_macros.S>
  8. .globl nvg_set_request_data
  9. .globl nvg_set_request
  10. .globl nvg_get_result
  11. /* void nvg_set_request_data(uint64_t req, uint64_t data) */
  12. func nvg_set_request_data
  13. msr s3_0_c15_c1_2, x0
  14. msr s3_0_c15_c1_3, x1
  15. ret
  16. endfunc nvg_set_request_data
  17. /* void nvg_set_request(uint64_t req) */
  18. func nvg_set_request
  19. msr s3_0_c15_c1_2, x0
  20. ret
  21. endfunc nvg_set_request
  22. /* uint64_t nvg_get_result(void) */
  23. func nvg_get_result
  24. mrs x0, s3_0_c15_c1_3
  25. ret
  26. endfunc nvg_get_result