Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 Nov 2025 06:01:12 GMT
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: c570deb1cc31 - main - edk2: Import UefiCpuPkg/Include/Protocol/RiscVBootProtocol.h
Message-ID:  <202511170601.5AH61CSe017775@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by imp:

URL: https://cgit.FreeBSD.org/src/commit/?id=c570deb1cc3182b4643e56d7010a763cf6e0884d

commit c570deb1cc3182b4643e56d7010a763cf6e0884d
Author:     Warner Losh <imp@FreeBSD.org>
AuthorDate: 2025-11-17 05:08:22 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2025-11-17 05:08:22 +0000

    edk2: Import UefiCpuPkg/Include/Protocol/RiscVBootProtocol.h
    
    Import UefiCpuPkg/Include/Protocol/RiscVBootProtocol.h to
    Include/Protocol. This is another direct copy that needs to be carefully
    considered in future imports. For now, it's easier to add this
    incrementally here.
    
    Sponsored by:           Netflix
---
 .../edk2/Include/Protocol/RiscVBootProtocol.h      | 34 ++++++++++++++++++++++
 1 file changed, 34 insertions(+)

diff --git a/sys/contrib/edk2/Include/Protocol/RiscVBootProtocol.h b/sys/contrib/edk2/Include/Protocol/RiscVBootProtocol.h
new file mode 100644
index 000000000000..ed223b852d34
--- /dev/null
+++ b/sys/contrib/edk2/Include/Protocol/RiscVBootProtocol.h
@@ -0,0 +1,34 @@
+/** @file
+  RISC-V Boot Protocol mandatory for RISC-V UEFI platforms.
+
+  @par Revision Reference:
+  The protocol specification can be found at
+  https://github.com/riscv-non-isa/riscv-uefi
+
+  Copyright (c) 2022, Ventana Micro Systems Inc. All rights reserved.<BR>
+  SPDX-License-Identifier: BSD-2-Clause-Patent
+
+**/
+
+#ifndef RISCV_BOOT_PROTOCOL_H_
+#define RISCV_BOOT_PROTOCOL_H_
+
+typedef struct _RISCV_EFI_BOOT_PROTOCOL 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 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


help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202511170601.5AH61CSe017775>