From nobody Tue Feb 10 04:17:42 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) client-ip=66.175.222.12; envelope-from=bounce+27952+58818+1787277+3901457@groups.io; helo=web01.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+58818+1787277+3901457@groups.io ARC-Seal: i=1; a=rsa-sha256; t=1588880173; cv=none; d=zohomail.com; s=zohoarc; b=l/BADMWt82/R+RibvQYxjBkTlPnkoe5ev3LJ/B3RzaqoTfZUdoE/+NVJrPdb60+L9A4ALoa7Fd24nkHB+Ysz5cCOwUx90A8O2ubqkLE10F1pVdMbiG7lG/EN1S/H37LHP46MWnWkAfwbUr73UYg2WPjOWOLFqIFSQHe18n8fhFY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1588880173; h=Content-Type:Cc:Date:From:In-Reply-To:List-Id:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=DlO+YjrMimGGM7AviTkdXQNFG+4L45c6QEayC5BkBMo=; b=UNYiVKqYx66aTfBENoTwh5dfhS2LSQW2g9FO5eWJIo0L509B41BSBa3wugPcZFwxwTjYxoBOx3yVg+rc9hdpH+nY699Fwq+FKVopueiwOX0BLvqjI9Nn7/8IoLRnFwCid7B8nDTBLnHfitlCQi046pXzggvZNrm+r9N/O4g38XY= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+58818+1787277+3901457@groups.io Received: from web01.groups.io (web01.groups.io [66.175.222.12]) by mx.zohomail.com with SMTPS id 1588880173096933.55204318215; Thu, 7 May 2020 12:36:13 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id hxpyYY1788612xYOJNU1bgYH; Thu, 07 May 2020 12:36:12 -0700 X-Received: from atlmailgw1.ami.com (atlmailgw1.ami.com []) by mx.groups.io with SMTP id smtpd.web10.2413.1588880170827410181 for ; Thu, 07 May 2020 12:36:12 -0700 X-AuditID: ac1060b2-0f7ff700000018d4-bf-5eb4632bfe7f X-Received: from atlms1.us.megatrends.com (atlms1.us.megatrends.com [172.16.96.144]) (using TLS with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client did not present a certificate) by atlmailgw1.ami.com (Symantec Messaging Gateway) with SMTP id 78.EB.06356.B2364BE5; Thu, 7 May 2020 15:36:12 -0400 (EDT) X-Received: from Oleksiy77.us.megatrends.com (172.16.97.158) by atlms1.us.megatrends.com (172.16.96.144) with Microsoft SMTP Server id 14.3.468.0; Thu, 7 May 2020 15:34:47 -0400 From: "Oleksiy Yakovlev" To: CC: , , , Subject: [edk2-devel] [PATCH v2 3/4] MdePkg: Add EFI_PROPERTIES_TABLE Date: Thu, 7 May 2020 15:34:42 -0400 Message-ID: <20200507193443.76728-4-oleksiyy@ami.com> In-Reply-To: <20200507193443.76728-1-oleksiyy@ami.com> References: <20200507193443.76728-1-oleksiyy@ami.com> MIME-Version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrPIsWRmVeSWpSXmKPExsWyRiBhgq5O8pY4g61HWSzaJ8xms1hxbwO7 RUfHPyYHZo/t3y8weize85IpgCmqgdEmMS8vvySxJFUhJbU42VYpoCizLDG5UkkhM8VWyVBJ oSAnMTk1NzWvxFYpsaAgNS9FyY5LAQPYAJVl5imk5iXnp2TmpdsqeQb761pYmFrqGirZhWSk KmTmpeUX5SaWZObnKSTn55UAVaemAEUVEro5M9q/z2Av+C1b8b+hn6WB8bR4FyMnh4SAiUTP 3z2sXYxcHEICu5gk9r3ZwwjhbGaUWP9iAhNIFZuApsSBY1MYQWwRASmJKQdmgsWZBRIk7t64 xwZiCwtYSBzv3gpmswioSFw/eIIdxOYVMJU4+v0KO8Q2DYlpa+6C9XIKmEkc+PYQKM4BtMxU 4uJeD4hyQYmTM5+wQIyXkDj44gUziC0kICvRdvw5+wRG/llIymYhKVvAyLSKUSixJCc3MTMn vdxQLzE3Uy85P3cTIyS2Nu1gbLlofoiRiYPxEKMEB7OSCC/Pj41xQrwpiZVVqUX58UWlOanF hxidgO6fyCzFDQpAYIzEGxsYSInCOIYmZibmRuaGlibmxsZK4ryT166JExJIB8ZsdmpqQWoR zBAmDk6pBkbXiYlhaxcmzmeZf9tZ43++6okv/Iosp8X6d9llmEXs573R9MqdL5zVUY2D89Hs xz0XbVgWiK6+dnZDbSzfat3TcSESLs6rJD3OJHeZncuLZUjq47TdwMNuzD6bqZ+BfeaMqwoT Jv69FbdE5/b/KScYlr3rudUr3MQvpXiypCHV2u1pVZdwlxJLcUaioRZzUXEiADRIclLCAgAA Precedence: Bulk List-Unsubscribe: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,oleksiyy@ami.com X-Gm-Message-State: 4XCpIX57W09kk3i0GdAvp91jx1787277AA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1588880172; bh=tzJYxmbL7ieA4c526FVRO1gnM63LUmuvVqMwlojUATE=; h=CC:Content-Type:Date:From:Reply-To:Subject:To; b=f5qSg/xxqj3EnHiCrH3Tu3yvvqvy6sx9v94Z9SynCVwab5kv0fGMYXE6r5H3GrTAN3/ dw1SWHAh3844fUe7Np6dGcr4I2bjnzsrSxSQP3EtJ/JYhQP8aTx+0c0KVFWgmMSpiWg1/ SncbbJkYgColcaqfWgDx1yrp3gYiQH2A844= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Define Guid & data structure for EFI_RT_PROPERTIES_TABLE, designed to be pu= blished by a platform if it no longer supports all EFI runtime services once ExitBootSer= vices() has been called by the OS. (UEFI 2.8 errata a, mantis 2049) Signed-off-by: Oleksiy Yakovlev --- MdePkg/Include/Guid/RtPropertiesTable.h | 68 +++++++++++++++++++++++++++++= ++ MdePkg/MdePkg.dec | 6 +++ 2 files changed, 74 insertions(+) create mode 100644 MdePkg/Include/Guid/RtPropertiesTable.h diff --git a/MdePkg/Include/Guid/RtPropertiesTable.h b/MdePkg/Include/Guid/= RtPropertiesTable.h new file mode 100644 index 0000000..a5b6c14 --- /dev/null +++ b/MdePkg/Include/Guid/RtPropertiesTable.h @@ -0,0 +1,71 @@ +/** @file +Guid & data structure for EFI_RT_PROPERTIES_TABLE, designed to be publishe= d by a +platform if it no longer supports all EFI runtime services once ExitBootS= ervices() +has been called by the OS. + + +Copyright (c) 2020, American Megatrends International LLC. All rights rese= rved.
+SPDX-License-Identifier: BSD-2-Clause-Patent + +**/ + +#ifndef _RT_PROPERTIES_TABLE_GUID_H__ +#define _RT_PROPERTIES_TABLE_GUID_H__ + +// +// Table, defined here, should be published by a platform if it no longer = supports all EFI runtime +// services once ExitBootServices() has been called by the OS. Note that t= his is merely a hint +// to the OS, which it is free to ignore, and so the platform is still req= uired to provide callable +// implementations of unsupported runtime services that simply return EFI_= UNSUPPORTED. +// +#define EFI_RT_PROPERTIES_TABLE_GUID \ + { 0xeb66918a, 0x7eef, 0x402a, \ + { 0x84, 0x2e, 0x93, 0x1d, 0x21, 0xc3, 0x8a, 0xe9 }} + + + +#pragma pack(1) + +typedef struct { + /// + /// Version of the structure, must be 0x1. + /// + UINT16 Version; + + /// + /// Size in bytes of the entire EFI_RT_PROPERTIES_TABLE, must be 8. + /// + UINT16 Length; + + /// + /// Bitmask of which calls are or are not supported, where a bit set to = 1 indicates + /// that the call is supported, and 0 indicates that it is not. + /// + UINT32 RuntimeServicesSupported; +} EFI_RT_PROPERTIES_TABLE; + +#pragma pack() + +#define EFI_RT_PROPERTIES_TABLE_VERSION 0x1 + +#define EFI_RT_SUPPORTED_GET_TIME 0x0001 +#define EFI_RT_SUPPORTED_SET_TIME 0x0002 +#define EFI_RT_SUPPORTED_GET_WAKEUP_TIME 0x0004 +#define EFI_RT_SUPPORTED_SET_WAKEUP_TIME 0x0008 +#define EFI_RT_SUPPORTED_GET_VARIABLE 0x0010 +#define EFI_RT_SUPPORTED_GET_NEXT_VARIABLE_NAME 0x0020 +#define EFI_RT_SUPPORTED_SET_VARIABLE 0x0040 +#define EFI_RT_SUPPORTED_SET_VIRTUAL_ADDRESS_MAP 0x0080 +#define EFI_RT_SUPPORTED_CONVERT_POINTER 0x0100 +#define EFI_RT_SUPPORTED_GET_NEXT_HIGH_MONOTONIC_COUNT 0x0200 +#define EFI_RT_SUPPORTED_RESET_SYSTEM 0x0400 +#define EFI_RT_SUPPORTED_UPDATE_CAPSULE 0x0800 +#define EFI_RT_SUPPORTED_QUERY_CAPSULE_CAPABILITIES 0x1000 +#define EFI_RT_SUPPORTED_QUERY_VARIABLE_INFO 0x2000 + +extern EFI_GUID gEfiRtPropertiesTableGuid; + +#endif diff --git a/MdePkg/MdePkg.dec b/MdePkg/MdePkg.dec index 99e75f7..d5340c5 100644 --- a/MdePkg/MdePkg.dec +++ b/MdePkg/MdePkg.dec @@ -655,6 +655,12 @@ gEfiBttAbstractionGuid =3D { 0x18633bfc, 0x1735, 0x4217, { 0x8a,= 0xc9, 0x17, 0x23, 0x92, 0x82, 0xd3, 0xf8 }} =20 # + # GUIDs defined in UEFI2.8a + # + ## Include/Guid/RtPropertiesTable.h + gEfiRtPropertiesTableGuid =3D { 0xeb66918a, 0x7eef, 0x402a, { 0x84,= 0x2e, 0x93, 0x1d, 0x21, 0xc3, 0x8a, 0xe9 }} + + # # GUID defined in PI1.0 # ## Include/Guid/AprioriFileName.h --=20 2.9.0.windows.1 Please consider the environment before printing this email. The information contained in this message may be confidential and proprieta= ry to American Megatrends (AMI). This communication is intended to be read= only by the individual or entity to whom it is addressed or by their desig= nee. If the reader of this message is not the intended recipient, you are o= n notice that any distribution of this message, in any form, is strictly pr= ohibited. Please promptly notify the sender by reply e-mail or by telephon= e at 770-246-8600, and then delete or destroy all copies of the transmissio= n. -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#58818): https://edk2.groups.io/g/devel/message/58818 Mute This Topic: https://groups.io/mt/74058373/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-