From nobody Sat Feb 7 06:45:02 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+57231+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+57231+1787277+3901457@groups.io ARC-Seal: i=1; a=rsa-sha256; t=1586548748; cv=none; d=zohomail.com; s=zohoarc; b=lnB9A9Chdf9a8yPoY+k/fkf+BuX3bO2HXZffGX/FNUxPGqngATOg4JuYNVBIYP6rt2w9RSYqN1zjRyu5Zl1m2nyd1NaTL8efzEyAf1JI6rfTU7/HMRnP02MUhmbg5/f8q4ScJpl+w8QbLXLoQ/+CjCaGb7MACeXZ8UEDf4BtyLE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1586548748; h=Content-Type:Cc:Date:From:In-Reply-To:List-Id:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=JVZ58yuauKJsrP5fdZ7cRhDIyBZcgr8lT9BqBTeIu/A=; b=ln1o+E+CTwi4Q5PTirqB8oJI7VKrA44QByp+E1jCbiv/tTs24odHogdKgapwyqoPeudIlbUc21hnM730ZKNV/oi/MzCC1vSsXfSx0lwG8caho5OVU64Ku46OjWdUUbob45mW8svRD8I8uRADknySwGEwp8U5Ss5PNM/rTQ2GaXY= 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+57231+1787277+3901457@groups.io Received: from web01.groups.io (web01.groups.io [66.175.222.12]) by mx.zohomail.com with SMTPS id 1586548748419228.45866460329205; Fri, 10 Apr 2020 12:59:08 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id 2b7wYY1788612xVlQNJ7a247; Fri, 10 Apr 2020 12:59:08 -0700 X-Received: from atlmailgw1.ami.com (atlmailgw1.ami.com []) by mx.groups.io with SMTP id smtpd.web11.4762.1586548746457454550 for ; Fri, 10 Apr 2020 12:59:07 -0700 X-AuditID: ac1060b2-0e1ff700000018d4-c2-5e90d00a93a8 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 7A.1C.06356.B00D09E5; Fri, 10 Apr 2020 15:59:07 -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; Fri, 10 Apr 2020 15:58:09 -0400 From: "Oleksiy Yakovlev" To: CC: , , , Subject: [edk2-devel] [PATCH 3/4] MdePkg: Add EFI_PROPERTIES_TABLE Date: Fri, 10 Apr 2020 15:58:02 -0400 Message-ID: <20200410195803.19972-4-oleksiyy@ami.com> In-Reply-To: <20200410195803.19972-1-oleksiyy@ami.com> References: <20200410195803.19972-1-oleksiyy@ami.com> MIME-Version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrDIsWRmVeSWpSXmKPExsWyRiBhgi73hQlxButW8Vq0T5jNZrHi3gZ2 i46Of0wOzB7bv19g9Fi85yVTAFNUA6NNYl5efkliSapCSmpxsq1SQFFmWWJypZJCZoqtkqGS QkFOYnJqbmpeia1SYkFBal6Kkh2XAgawASrLzFNIzUvOT8nMS7dV8gz217WwMLXUNVSyC8lI VcjMS8svyk0syczPU0jOzysBqk5NAYoqJHRzZlw7vYit4IhcxaMvXUwNjB/Euxg5OSQETCS+ Lf/G1MXIxSEksItJ4uKC9VDOFkaJCQ9OM4FUsQloShw4NoURxBYRkJKYcmAmWJxZIEHi7o17 bF2MHBzCAqYSd2aYgZgsAqoSx3aXgFTwAkV/HH/LDrFLQ2LamrtMICWcAmYSO6fZg5hCQCWT 1wRDVAtKnJz5hAVitoTEwRcvmEFsIQFZibbjz9knMPLPQlI2C0nZAkamVYxCiSU5uYmZOenl hnqJuZl6yfm5mxghUbVpB2PLRfNDjEwcjIcYJTiYlUR4vZt644R4UxIrq1KL8uOLSnNSiw8x OgFdP5FZihsUesDoiDc2MJAShXEMTcxMzI3MDS1NzI2NlcR5a/R94oQE0oHRmp2aWpBaBDOE iYNTqoGxbk5/nuCX9h9XLB23Hvf1bluh5bns7CXuA3tKcuKl1k5pXKnwVnf/Zzvt25wb/11b 73sg5lNTspfQZJMnLgwLpoUp73E7WCH4L3Jids2xD1sW+Zr9Cg2pVLixW7nfqjba8J1TYIZ3 O8vKtPjqP/vnPM7gj/6adilkuVDBzqqKbIuQ3Rdv1e9QYinOSDTUYi4qTgQAXPpLob8CAAA= 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: 4j68iQNc0NPuT6EwYIX9he3Ix1787277AA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1586548748; bh=FE3aslGaxtihflx9DQW9kSFhmEp7TbiMyY0lr2Q/AtY=; h=CC:Content-Type:Date:From:Reply-To:Subject:To; b=poT6iCA/bFdUb1RQqV1r31w4pmpnt+OZ7Z/24gIQ1mR2+W4aLaQcsR+DA47AfS7xcXo td02mMqcwqWpZVzhLiyo7HDHWYAvensTxnjNDSuiv7cJsL1DHJrR7MBKTd1S1x9uZrmyZ yYLv/1R1eonK9k70XdZ1QyURoV3gsjN5Zr4= 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 p= ublished by a platform if it no longer supports all EFI runtime services once ExitBootSe= rvices() has been called by the OS. (UEFI 2.8 errata a, mantis 2049) Signed-off-by: Oleksiy Yakovlev --- MdePkg/Include/Guid/RtPropertiesTable.h | 71 +++++++++++++++++++++++++++++= ++++ MdePkg/MdePkg.dec | 6 +++ 2 files changed, 77 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 publish= ed by a=20 +platform if it no longer supports all EFI runtime services once ExitBootS= ervices()=20 +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=20 +// services once ExitBootServices() has been called by the OS. Note that t= his is merely a hint=20 +// to the OS, which it is free to ignore, and so the platform is still req= uired to provide callable=20 +// 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 }} +=09 +=09 + + +#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; + + /// + /// The length of the JSON payload immediately following this header, in= bytes. + /// + UINT32 RuntimeServicesSupported; + =20 + /// + /// 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. + /// +} EFI_RT_PROPERTIES_TABLE; + +#pragma pack() + +#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 (#57231): https://edk2.groups.io/g/devel/message/57231 Mute This Topic: https://groups.io/mt/72930097/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-