From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f181.google.com (mail-pl1-f181.google.com [209.85.214.181]) by mx.groups.io with SMTP id smtpd.web12.6595.1662550612591787946 for ; Wed, 07 Sep 2022 04:36:52 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@ventanamicro.com header.s=google header.b=VRw7msko; spf=pass (domain: ventanamicro.com, ip: 209.85.214.181, mailfrom: sunilvl@ventanamicro.com) Received: by mail-pl1-f181.google.com with SMTP id x1so9875954plv.5 for ; Wed, 07 Sep 2022 04:36:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=HJZyT7ukcJKWGNQCV2ZfEIBJsPTu8sbZKpFLfQTDmc8=; b=VRw7mskoyFn7Du5qYYFpnAs7fvEOTfHAQwWOn1fpd2K1FtgRBSdnCaEDYYFJeqPbxQ cxWG2Tuh2u6rH0RNGp07rGuzeFTmjDr/GBvn5NZu4E40WOT2TCmgf4JflbVyNHVm4V+g +GXrrW6nMj02ff08MrXbOOAjqq35Xjqx2LMrVOwZRK6OwRZFf4NPJUFd43stP2I+LNN2 vSpLc+Lw4ZfrY1DTqOW5tYN74W5PSk6EPt9nQUCoaSuInAmb03GCh4fAOFioj0BFaQ8r SI27LkLJuKREucftoPTrZsEi6wVCzgDyFs4ROEtcTUYGxwAgjFodxh3TEighCoH+qtFf cvVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=HJZyT7ukcJKWGNQCV2ZfEIBJsPTu8sbZKpFLfQTDmc8=; b=IRKEpkNnEn2STucunwNrX7Wj/kI5tuFYvZ+cHsAZjJpMc2ZJ/NOLer13YBlSDYecIz OtWQouvLsIWwjGV69VlC59VC44Wii2pfWNlf1IhGYFXplAjjOsyaB6xX2/zf6GpwDygb O/Usd3opof4F8foHtwIJbzb2c6YKDFYKTnHslRGcClpt7KUvVHMKMSvZq4zoPq3xSg1Y nDHCKK4tNU/KPJc/eaZse68sAu+g3wgtpDz011NH2QSMp4FufOSUfbA43KRx6VMeVRoq qISXLJHBE9Oj8qsw8mG4NsZnAptlr/y6PwSY+GW42HxZdXw6dewS7A/XdZkivFJ9M25S O8sg== X-Gm-Message-State: ACgBeo20EdEWksRgmguoDS5dMK+P4PMXe1FtplTmMD6WNUP0YvTDcAF5 EXmhn8kKZZwrG75cEM19ooK7oSN3+VBMKTDA X-Google-Smtp-Source: AA6agR7kl2jdYtk8PosTW72bY/uLVkkiYQPRcIjYqYvmuNeStHFD1QhwsfSnn2qwCKK28eVHKRbk9g== X-Received: by 2002:a17:90b:4b48:b0:1fd:d2cd:896c with SMTP id mi8-20020a17090b4b4800b001fdd2cd896cmr29877650pjb.120.1662550611812; Wed, 07 Sep 2022 04:36:51 -0700 (PDT) Return-Path: Received: from localhost.localdomain ([49.206.11.92]) by smtp.gmail.com with ESMTPSA id 8-20020a17090a000800b001fd77933fb3sm10797230pja.17.2022.09.07.04.36.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Sep 2022 04:36:51 -0700 (PDT) From: "Sunil V L" To: devel@edk2.groups.io Cc: Jian J Wang , Liming Gao , Eric Dong , Ray Ni , Rahul Kumar , Debkumar De , Catharine West , Daniel Schaefer , Abner Chang , Leif Lindholm , Andrew Fish , Ard Biesheuvel , Heinrich Schuchardt , Anup Patel , Sunil V L Subject: [RFC PATCH V2 03/19] MdePkg/Protocol: Add RiscVBootProtocol.h Date: Wed, 7 Sep 2022 17:06:10 +0530 Message-Id: <20220907113626.540065-4-sunilvl@ventanamicro.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220907113626.540065-1-sunilvl@ventanamicro.com> References: <20220907113626.540065-1-sunilvl@ventanamicro.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit RISC-V UEFI platforms need to implement RISCV_EFI_BOOT_PROTOCOL. Add header file with the definitions of this protocol. Signed-off-by: Sunil V L --- MdePkg/Include/Protocol/RiscVBootProtocol.h | 35 ++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/MdePkg/Include/Protocol/RiscVBootProtocol.h b/MdePkg/Include/Protocol/RiscVBootProtocol.h new file mode 100644 index 000000000000..7ceb7d830924 --- /dev/null +++ b/MdePkg/Include/Protocol/RiscVBootProtocol.h @@ -0,0 +1,35 @@ + +/** @file + RISC-V Boot Protocol mandatory for RISC-V UEFI platforms. + + Specification available at + https://github.com/riscv-non-isa/riscv-uefi/releases/download/1.0.0/RISCV_UEFI_PROTOCOL-spec.pdf + + 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_ + +//extern EFI_GUID gRiscVEfiBootProtocolGuid; + +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 -- 2.25.1