RiscVBootProtocol.h 913 B

12345678910111213141516171819202122232425262728293031323334
  1. /** @file
  2. RISC-V Boot Protocol mandatory for RISC-V UEFI platforms.
  3. @par Revision Reference:
  4. The protocol specification can be found at
  5. https://github.com/riscv-non-isa/riscv-uefi
  6. Copyright (c) 2022, Ventana Micro Systems Inc. All rights reserved.<BR>
  7. SPDX-License-Identifier: BSD-2-Clause-Patent
  8. **/
  9. #ifndef RISCV_BOOT_PROTOCOL_H_
  10. #define RISCV_BOOT_PROTOCOL_H_
  11. typedef struct _RISCV_EFI_BOOT_PROTOCOL RISCV_EFI_BOOT_PROTOCOL;
  12. #define RISCV_EFI_BOOT_PROTOCOL_REVISION 0x00010000
  13. #define RISCV_EFI_BOOT_PROTOCOL_LATEST_VERSION \
  14. RISCV_EFI_BOOT_PROTOCOL_REVISION
  15. typedef
  16. EFI_STATUS
  17. (EFIAPI *EFI_GET_BOOT_HARTID)(
  18. IN RISCV_EFI_BOOT_PROTOCOL *This,
  19. OUT UINTN *BootHartId
  20. );
  21. typedef struct _RISCV_EFI_BOOT_PROTOCOL {
  22. UINT64 Revision;
  23. EFI_GET_BOOT_HARTID GetBootHartId;
  24. } RISCV_EFI_BOOT_PROTOCOL;
  25. #endif