From nobody Mon Nov 17 06:01:12 2025 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4d8xvD6WVqz6Gd9s; Mon, 17 Nov 2025 06:01:12 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R12" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4d8xvD5l1nz3R9Q; Mon, 17 Nov 2025 06:01:12 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1763359272; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=zvP8nPjpZA+WsOk2LXA3Tj4xc/19t2YDvGOtUksW5uo=; b=gfchi4qEgl3yhC9mcpJ89MQiFZU1WEegjzxHJrikKCrhYTjDJXLD5sp+rj1VZm9Eh/xoH1 enBAG+5/E7X3QN6g8G2Or3aPPUyhixJqJgfiX3TReLZ7/V/CybdL5J4x06w2fmoELEzrl9 KkwbNY96NvyO2bQaI7Szy4kD/wa/dGWM9JMjcju6v5t+lORa0JHheU1QPokzU65aG4RmwR dos2cvbIfjEI6b4oaW/VRGZl4VK5CqiCXeG7omeppo8iwX6BYpUdJzITKBFktpLAHRjmvH kObvDo8em5fDCbYluAWgIucJ+bz+mt+XW47XncB4DDIPoBV78tWcnm7QgeC7+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1763359272; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=zvP8nPjpZA+WsOk2LXA3Tj4xc/19t2YDvGOtUksW5uo=; b=SkWk0tueterU+gdukqMXJn779nwbTJAkdEJJPymvrvV+a/DFo+yXu61E5yThujQzIO8XwO gNGQFvAAwuxq7J6DUaS36Vp8+dug70WL9QJxLy4xHJXxjgqFXYtc1AFTdClaidKIXGIAz/ GdIjWt9/cVapJ/B364qK3nzl+qWtvsFCHvB+1QBbLQQK/FDkLsN7BGnN4OV4iD78K26PNh AIuizl4M2+bOsbhtWH/TXQHVInUnB/LLdZeyRBB8JEOcBdRwpF4apJJ728tsG4apwNLYlz 8kuYrvorIeBU8Lb9f6T/pLIcJ7nn5o/1+h2yC8+5mpAY/mzQ4qAPGO60nEVcPg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1763359272; a=rsa-sha256; cv=none; b=AUkes1QjEE/ULKM3lPjiMGPHlF3pbmT/Nx9cs2SIwdgrr/Wo6uFTjnOWvp9V9Vrg5KYwE/ exzgJLAlQnpzsoBkuPm6P6FwdrtM3Ao4CuQM6YaCu5cjmE2IKlr/Y/H22ac7+X5inneqIP E4CYGk0d7hFBNSjp1z3zls9Plwj60fPDdfFetBS5ueMqyCyUpTRVcoD+LpFB8k7iR0Onch 6HR+iDNFYLj3s8BRPLYX/HFdA5woEVx/FmGeP4kmlqIh+TtObygrCM8IbFY1uGQu5LoiRH gREKrDDvBjfE/YfN57JFYPF+Cy9ZERr6CiIAyOr2cjHjxqKcZVfHIpVK81b30g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4d8xvD5GRhz1BcW; Mon, 17 Nov 2025 06:01:12 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 5AH61C9U017788; Mon, 17 Nov 2025 06:01:12 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 5AH61CSe017775; Mon, 17 Nov 2025 06:01:12 GMT (envelope-from git) Date: Mon, 17 Nov 2025 06:01:12 GMT Message-Id: <202511170601.5AH61CSe017775@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Warner Losh Subject: git: c570deb1cc31 - main - edk2: Import UefiCpuPkg/Include/Protocol/RiscVBootProtocol.h List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: imp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: c570deb1cc3182b4643e56d7010a763cf6e0884d Auto-Submitted: auto-generated The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=c570deb1cc3182b4643e56d7010a763cf6e0884d commit c570deb1cc3182b4643e56d7010a763cf6e0884d Author: Warner Losh AuthorDate: 2025-11-17 05:08:22 +0000 Commit: Warner Losh 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.
+ 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