From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp-relay-internal-1.canonical.com (smtp-relay-internal-1.canonical.com [185.125.188.123]) by mx.groups.io with SMTP id smtpd.web10.2223.1670462686288338719 for ; Wed, 07 Dec 2022 17:24:46 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@canonical.com header.s=20210705 header.b=Poisfme2; spf=pass (domain: canonical.com, ip: 185.125.188.123, mailfrom: heinrich.schuchardt@canonical.com) Received: from mail-wm1-f69.google.com (mail-wm1-f69.google.com [209.85.128.69]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-1.canonical.com (Postfix) with ESMTPS id 0BB2D41558 for ; Thu, 8 Dec 2022 01:24:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1670462684; bh=RXeq6tiJ6oFjbRayBOeGwQ88fucenW9USXWPAMSe2SE=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=Poisfme2G6ziqOT/20SmHVPgRiSXfP2PrVRYtZXtsvx0jn/ggwEJ+XoZGU83dUoFa XFgU7/uj8ueZl5EI5STF+cf2kx4meByFEegaZlXWezekn/Pu5CeQTbUp+exfV91MXf JM71xRrOKDcNr0eXhei11FN0cokpoAI2cAOVM4nOjIvqdQ0hDxTz79Shwrnwsswx3h 4WxKilt8RIPmWGuFwGjXc6gb6KO/jnG8pxFGgWKkglzd5JScTJRsY8alZTtrmeewTp DY0iAv9j27SWWn5pofSyaMqwlczne0x0Lf3RzI+I93xfRLaTxRWohXZ7w6sboVQ3rr topCa8IZ+bMxQ== Received: by mail-wm1-f69.google.com with SMTP id h81-20020a1c2154000000b003d1c8e519fbso1622595wmh.2 for ; Wed, 07 Dec 2022 17:24:44 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=RXeq6tiJ6oFjbRayBOeGwQ88fucenW9USXWPAMSe2SE=; b=BNTKST0K024QT7+11XvQ8CxXLawydvQGomt3e3F7uNcRSpMgbsTlS0iyYlN/3cbXlJ EdsQx5kkrWtR9rmE9D04GJJZk9Q76RE+hmJXjiakXofGGLVs6y7kl86gySpEQ2LN468z 3xwsSOn7wdRhXtrCqfy+rU7MBrHIPN0R4wl4AFlmTre65LzmfxOFJcZpwj65XhnpaXhl UC+CPnvcuB6mpW26niPUtVbLFsgwq9luDisDe6M39aKZ1Jhp0alHZOqqwuTW5r7j8vzc Rvp6FSzUvv2ymdT8VsUnOH0ZzxAfQDpXdRHjTYrMYYm/Me8Yy4dLs+loMh55U+m9X7bV gNlg== X-Gm-Message-State: ANoB5pnA+rtUazR02ZB68kAbvbmfljrcVoCDuZNNriUAZVEM0uL3+AxJ 44KUQn75nZlFrm1JD+fQh0dG3mPqfOPpPdGIVufLgkYq/TXZ1xjIDcuhgneYghyZiGaC9eLCpWk ILEqtQhXbMIoToiGRfePqv9GEz4NwiZM= X-Received: by 2002:a1c:7208:0:b0:3d1:cfa2:e50e with SMTP id n8-20020a1c7208000000b003d1cfa2e50emr10098580wmc.171.1670462683760; Wed, 07 Dec 2022 17:24:43 -0800 (PST) X-Google-Smtp-Source: AA0mqf5CnUZinODJ3wf2lCWKDUjLfXE8NzPkPCq8xMo0UcRg2X8xQQKjn/uXWfMZqbyv1jWLe/jx5w== X-Received: by 2002:a1c:7208:0:b0:3d1:cfa2:e50e with SMTP id n8-20020a1c7208000000b003d1cfa2e50emr10098570wmc.171.1670462683542; Wed, 07 Dec 2022 17:24:43 -0800 (PST) Received: from [192.168.123.94] (ip-088-152-145-137.um26.pools.vodafone-ip.de. [88.152.145.137]) by smtp.gmail.com with ESMTPSA id m11-20020a7bcb8b000000b003d09150b339sm3128521wmi.20.2022.12.07.17.24.42 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 07 Dec 2022 17:24:43 -0800 (PST) Message-ID: Date: Thu, 8 Dec 2022 02:24:42 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.5.1 Subject: Re: [RFC PATCH V2 03/19] MdePkg/Protocol: Add RiscVBootProtocol.h To: Sunil V L , 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 , Anup Patel References: <20220907113626.540065-1-sunilvl@ventanamicro.com> <20220907113626.540065-4-sunilvl@ventanamicro.com> From: Heinrich Schuchardt In-Reply-To: <20220907113626.540065-4-sunilvl@ventanamicro.com> Content-Language: en-US Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 9/7/22 13:36, Sunil V L wrote: > 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 Reviewed-by: Heinrich Schuchardt > --- > 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