efi_riscv.h 588 B

123456789101112131415161718192021222324
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * RISCV_EFI_BOOT_PROTOCOL
  4. *
  5. * Copyright (c) 2022 Ventana Micro Systems Inc
  6. */
  7. #include <efi_api.h>
  8. #define RISCV_EFI_BOOT_PROTOCOL_REVISION 0x00010000
  9. /**
  10. * struct riscv_efi_boot_protocol - RISCV_EFI_BOOT_PROTOCOL
  11. * @revision: Version of the protocol implemented
  12. * @get_boot_hartid: Get the boot hart ID
  13. */
  14. struct riscv_efi_boot_protocol {
  15. u64 revision;
  16. efi_status_t (EFIAPI * get_boot_hartid) (struct riscv_efi_boot_protocol *this,
  17. efi_uintn_t *boot_hartid);
  18. };
  19. extern struct riscv_efi_boot_protocol riscv_efi_boot_prot;