]> git.proxmox.com Git - mirror_edk2.git/blame - UefiCpuPkg/Include/Protocol/RiscVBootProtocol.h
UefiCpuPkg: Add RISCV_EFI_BOOT_PROTOCOL related definitions
[mirror_edk2.git] / UefiCpuPkg / Include / Protocol / RiscVBootProtocol.h
CommitLineData
d6017bca
S
1/** @file\r
2 RISC-V Boot Protocol mandatory for RISC-V UEFI platforms.\r
3\r
4 @par Revision Reference:\r
5 The protocol specification can be found at\r
6 https://github.com/riscv-non-isa/riscv-uefi\r
7\r
8 Copyright (c) 2022, Ventana Micro Systems Inc. All rights reserved.<BR>\r
9 SPDX-License-Identifier: BSD-2-Clause-Patent\r
10\r
11**/\r
12\r
13#ifndef RISCV_BOOT_PROTOCOL_H_\r
14#define RISCV_BOOT_PROTOCOL_H_\r
15\r
16typedef struct _RISCV_EFI_BOOT_PROTOCOL RISCV_EFI_BOOT_PROTOCOL;\r
17\r
18#define RISCV_EFI_BOOT_PROTOCOL_REVISION 0x00010000\r
19#define RISCV_EFI_BOOT_PROTOCOL_LATEST_VERSION \\r
20 RISCV_EFI_BOOT_PROTOCOL_REVISION\r
21\r
22typedef\r
23EFI_STATUS\r
24(EFIAPI *EFI_GET_BOOT_HARTID)(\r
25 IN RISCV_EFI_BOOT_PROTOCOL *This,\r
26 OUT UINTN *BootHartId\r
27 );\r
28\r
29typedef struct _RISCV_EFI_BOOT_PROTOCOL {\r
30 UINT64 Revision;\r
31 EFI_GET_BOOT_HARTID GetBootHartId;\r
32} RISCV_EFI_BOOT_PROTOCOL;\r
33\r
34#endif\r