mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
efiprot.h: add definitions for RISCV_EFI_BOOT_PROTOCOL
It seems like this file was vendored (sorta) originally, but we have not
kept it in sync with the original source, if it still exists. Follow the
precedent in commit acf82d2659, and just add the definition to the
bottom of the file, keeping its style conventions.
Defined here: https://github.com/riscv-non-isa/riscv-uefi
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D48885
This commit is contained in:
parent
e2a08ac9ce
commit
62c0997d43
1 changed files with 27 additions and 0 deletions
|
|
@ -632,4 +632,31 @@ typedef struct _EFI_COMPONENT_NAME2 {
|
|||
CHAR8 **SupportedLanguages;
|
||||
} EFI_COMPONENT_NAME2;
|
||||
|
||||
//
|
||||
// RISC-V EFI Boot Protocol
|
||||
//
|
||||
// https://github.com/riscv-non-isa/riscv-uefi
|
||||
//
|
||||
|
||||
#define RISCV_EFI_BOOT_PROTOCOL_GUID \
|
||||
{ 0xccd15fec, 0x6f73, 0x4eec, {0x83, 0x95, 0x3e, 0x69, 0xe4, 0xb9, 0x40, 0xbf} }
|
||||
|
||||
INTERFACE_DECL(_RISCV_EFI_BOOT_PROTOCOL);
|
||||
|
||||
#define RISCV_EFI_BOOT_PROTOCOL_REVISION 0x00010000
|
||||
#define RISCV_EFI_BOOT_PROTOCOL_LATEST_VERSION \
|
||||
RISCV_EFI_BOOT_PROTOCOL_REVISION
|
||||
|
||||
typedef
|
||||
EFI_STATUS
|
||||
(EFIAPI *EFI_GET_BOOT_HARTID) (
|
||||
IN struct _RISCV_EFI_BOOT_PROTOCOL *This,
|
||||
OUT UINTN *BootHartId
|
||||
);
|
||||
|
||||
typedef struct _RISCV_EFI_BOOT_PROTOCOL {
|
||||
UINT64 Revision;
|
||||
EFI_GET_BOOT_HARTID GetBootHartId;
|
||||
} RISCV_EFI_BOOT_PROTOCOL;
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Reference in a new issue