From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f176.google.com (mail-pf1-f176.google.com [209.85.210.176]) by mx.groups.io with SMTP id smtpd.web11.1850.1662484140909794611 for ; Tue, 06 Sep 2022 10:09:01 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@ventanamicro.com header.s=google header.b=IjilSOGI; spf=pass (domain: ventanamicro.com, ip: 209.85.210.176, mailfrom: sunilvl@ventanamicro.com) Received: by mail-pf1-f176.google.com with SMTP id q15so11993835pfn.11 for ; Tue, 06 Sep 2022 10:09:00 -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=FBge4W7NXdcC4x7gj0IeGs5YcYClEP0mDbVhRvQ/39I=; b=IjilSOGIWkkfkpfvkkJJI5qQLWAu1Tc1BuPoCLHyn0i11KymZo65Nmo3qxbol8kHR/ W9X4gKZzMjpd+o4eHGw+pvy/ESXytOWccoyAWVhz59pfNbn3voNGyx5Wa/7qvtt7dawe pliSyM0OpN6ruw+B3mcTXMF9P1/WuYqOzltdE38oo+l8GW0bq3vtlN83jWq4wopfR9+/ PLGfkhIM7jGDy3UE6IigeVQFNs4csiN/yo7OXtOMkm1tW5U/KR+IJCsEgmVKqW0fOarX Fvcad17kn30F9d0gGeXKXOTi18/NTfRjW5m3tSlT8HwQ/cfICoIJ+DARJzvPVt39T7CX fjRA== 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=FBge4W7NXdcC4x7gj0IeGs5YcYClEP0mDbVhRvQ/39I=; b=MozyiISdHDrSYq8titMqkaRr1oNmqSVCGVUoPURlFses/RttQeMrymdtDGSgFxrYMd Sua0wySUQYjt5p2E2kmWk5bOKqn9yLCiYGa9W7YPoC2Pl9pf96gs/bqJPxzPHo8guNsB acdJwpJiTKwAfzcVlJFjMy9TrZlfqbGgkZ2cK7uV85kFQpDgsYqt+qDlo9qg+I+aunQm 3XMnsbj6b33E4kYbtuSWMKfsUihKSzCZgejtQRfOBaaKSVtKhnq+qPAWi4HKXHfCNl7u V7KHbImRdrdBOdBVPeIKZ94dbuQf5oC4NMWPAGlSoGb5DVu6kHfRF3xEpreva6KDHC+l kM8g== X-Gm-Message-State: ACgBeo2FylwP2Xubv1qLT5fWv8dz1vxzcRqI5Kw3smZGdlVh4kh94zcH G9Q5RH/sFNh+jA5lI3S+kXHcbIF+0kMIximD X-Google-Smtp-Source: AA6agR5vOAaIj1M1TL8LdrqIkDwIBCbbnyCoO1omMKhMAJFu/qysNUcbW9qyuw31b1BdNRX008zfAA== X-Received: by 2002:a65:67d6:0:b0:430:5c6d:c089 with SMTP id b22-20020a6567d6000000b004305c6dc089mr24796835pgs.245.1662484140141; Tue, 06 Sep 2022 10:09:00 -0700 (PDT) Return-Path: Received: from localhost.localdomain ([49.206.11.92]) by smtp.gmail.com with ESMTPSA id b17-20020a170903229100b00176be258f41sm3806567plh.91.2022.09.06.10.08.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Sep 2022 10:08:59 -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 , Ard Biesheuvel , Heinrich Schuchardt , Anup Patel , Sunil V L Subject: [RFC PATCH 03/17] MdePkg/Protocol: Add RiscVBootProtocol.h Date: Tue, 6 Sep 2022 22:38:23 +0530 Message-Id: <20220906170837.491525-4-sunilvl@ventanamicro.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220906170837.491525-1-sunilvl@ventanamicro.com> References: <20220906170837.491525-1-sunilvl@ventanamicro.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable 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(+) create mode 100644 MdePkg/Include/Protocol/RiscVBootProtocol.h diff --git a/MdePkg/Include/Protocol/RiscVBootProtocol.h b/MdePkg/Include/P= rotocol/RiscVBootProtocol.h new file mode 100644 index 0000000000..7ceb7d8309 --- /dev/null +++ b/MdePkg/Include/Protocol/RiscVBootProtocol.h @@ -0,0 +1,35 @@ +=0D +/** @file=0D + RISC-V Boot Protocol mandatory for RISC-V UEFI platforms.=0D +=0D + Specification available at=0D + https://github.com/riscv-non-isa/riscv-uefi/releases/download/1.0.0/RIS= CV_UEFI_PROTOCOL-spec.pdf=0D +=0D + Copyright (c) 2022, Ventana Micro Systems Inc. All rights reserved.
= =0D + SPDX-License-Identifier: BSD-2-Clause-Patent=0D +=0D +**/=0D +=0D +#ifndef _RISCV_BOOT_PROTOCOL_H_=0D +#define _RISCV_BOOT_PROTOCOL_H_=0D +=0D +//extern EFI_GUID gRiscVEfiBootProtocolGuid;=0D +=0D +typedef struct _RISCV_EFI_BOOT_PROTOCOL RISCV_EFI_BOOT_PROTOCOL;=0D +=0D +#define RISCV_EFI_BOOT_PROTOCOL_REVISION 0x00010000=0D +#define RISCV_EFI_BOOT_PROTOCOL_LATEST_VERSION \=0D + RISCV_EFI_BOOT_PROTOCOL_REVISION=0D +=0D +typedef EFI_STATUS=0D +(EFIAPI *EFI_GET_BOOT_HARTID) (=0D + IN RISCV_EFI_BOOT_PROTOCOL *This,=0D + OUT UINTN *BootHartId=0D + );=0D +=0D +typedef struct _RISCV_EFI_BOOT_PROTOCOL {=0D + UINT64 Revision;=0D + EFI_GET_BOOT_HARTID GetBootHartId;=0D +} RISCV_EFI_BOOT_PROTOCOL;=0D +=0D +#endif=0D --=20 2.25.1