sbi_ecall.h 487 B

12345678910111213141516171819202122232425
  1. /*
  2. * SPDX-License-Identifier: BSD-2-Clause
  3. *
  4. * Copyright (c) 2019 Western Digital Corporation or its affiliates.
  5. *
  6. * Authors:
  7. * Anup Patel <anup.patel@wdc.com>
  8. */
  9. #ifndef __SBI_ECALL_H__
  10. #define __SBI_ECALL_H__
  11. #include <sbi/sbi_types.h>
  12. struct sbi_trap_regs;
  13. struct sbi_scratch;
  14. u16 sbi_ecall_version_major(void);
  15. u16 sbi_ecall_version_minor(void);
  16. int sbi_ecall_handler(u32 hartid, ulong mcause, struct sbi_trap_regs *regs,
  17. struct sbi_scratch *scratch);
  18. #endif