From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from atlmailgw2.ami.com (atlmailgw2.ami.com []) by mx.groups.io with SMTP id smtpd.web10.1804.1589409632386466326 for ; Wed, 13 May 2020 15:40:35 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=fail (domain: ami.com, ip: , mailfrom: oleksiyy@ami.com) X-AuditID: ac10606f-05fff70000001b62-a3-5ebc7762a369 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 atlmailgw2.ami.com (Symantec Messaging Gateway) with SMTP id EB.44.07010.2677CBE5; Wed, 13 May 2020 18:40:34 -0400 (EDT) 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; Wed, 13 May 2020 18:39:52 -0400 From: "Oleksiy Yakovlev" To: CC: , , , , , , , Subject: [PATCH V6 4/6] MdePkg: Add FMP Capsule Image Header extension Date: Wed, 13 May 2020 18:39:45 -0400 Message-ID: <20200513223947.56560-5-oleksiyy@ami.com> X-Mailer: git-send-email 2.9.0.windows.1 In-Reply-To: <20200513223947.56560-1-oleksiyy@ami.com> References: <20200513223947.56560-1-oleksiyy@ami.com> MIME-Version: 1.0 Return-Path: oleksiyy@ami.com X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrEIsWRmVeSWpSXmKPExsWyRiBhgm5S+Z44g+Of9S3mv622aJ8wm83i 6q1fTBbzvs1gtVj30cNixb0N7BYdHf+YHNg9tn+/wOixeM9LpgCmqAZGm8S8vPySxJJUhZTU 4mRbpYCizLLE5EolhcwUWyVDJYWCnMTk1NzUvBJbpcSCgtS8FCU7LgUMYANUlpmnkJqXnJ+S mZduq+QZ7K9rYWFqqWuoZBeSkaqQmZeWX5SbWJKZn6eQnJ9XAlSdmgIUVUjo5sy4vGUrY8Fj 7or5LU/ZGhh/c3YxcnJICJhIbO5rZeti5OIQEtjFJLHwZgcjhLOFUeLL3i4mkCo2AU2JA8em MILYIgJSElMOzASLMwscZpTo+AQWFxZwk7j0dw07iM0ioCpxbXMfK4jNK2Aq8WnxPjaIbRoS 09bcBevlFDCT2LSglwXEFgKq2friKDtEvaDEyZlPWCDmS0gcfPGCGaJGVqLt+HP2CYz8s5CU zUJStoCRaRWjUGJJTm5iZk56uZFeYm6mXnJ+7iZGSATm72D8+NH8ECMTB+MhRgkOZiURXr/1 u+OEeFMSK6tSi/Lji0pzUosPMToBPTCRWYobFILAKIk3NjCQEoVxDE3MTMyNzA0tTcyNjZXE eSetXRMnJJAOjNrs1NSC1CKYIUwcnFINjNuPtLd/7X/PP8PymOL0GZ4TRGreng1iYUk9myYW OPd7x5zZ35yVHsvu8Dny1X1Z2bfd7yTf1/6f+W+3zj3WW3c0K5ZdXdLLvOPh0Zb2fdotN469 6duRuvv6L172m8nlR2U5X8fJlhdtTThm8j0sJmJTlsIsn7e+AedKOYLMLN5tunv0hEvnzNtK LMUZiYZazEXFiQDp0QHW1QIAAA== Content-Type: text/plain Add bitmask to structure which gives a binary-inspectable mechanism to determine if a capsule contains an authentication section or depex section. (UEFI 2.8 errata a, mantis 2026) Signed-off-by: Oleksiy Yakovlev Reviewed-by: Liming Gao --- MdePkg/Include/Guid/FmpCapsule.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/MdePkg/Include/Guid/FmpCapsule.h b/MdePkg/Include/Guid/FmpCapsule.h index fb8c346..bd5cb77 100644 --- a/MdePkg/Include/Guid/FmpCapsule.h +++ b/MdePkg/Include/Guid/FmpCapsule.h @@ -79,13 +79,22 @@ typedef struct { /// therefore can be modified without changing the Auth data. /// UINT64 UpdateHardwareInstance; + + /// + /// A 64-bit bitmask that determines what sections are added to the payload. + /// #define CAPSULE_SUPPORT_AUTHENTICATION 0x0000000000000001 + /// #define CAPSULE_SUPPORT_DEPENDENCY 0x0000000000000002 + /// + UINT64 ImageCapsuleSupport; } EFI_FIRMWARE_MANAGEMENT_CAPSULE_IMAGE_HEADER; #pragma pack() #define EFI_FIRMWARE_MANAGEMENT_CAPSULE_HEADER_INIT_VERSION 0x00000001 -#define EFI_FIRMWARE_MANAGEMENT_CAPSULE_IMAGE_HEADER_INIT_VERSION 0x00000002 +#define EFI_FIRMWARE_MANAGEMENT_CAPSULE_IMAGE_HEADER_INIT_VERSION 0x00000003 +#define CAPSULE_SUPPORT_AUTHENTICATION 0x0000000000000001 +#define CAPSULE_SUPPORT_DEPENDENCY 0x0000000000000002 extern EFI_GUID gEfiFmpCapsuleGuid; -- 2.9.0.windows.1 Please consider the environment before printing this email. The information contained in this message may be confidential and proprietary 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 designee. If the reader of this message is not the intended recipient, you are on notice that any distribution of this message, in any form, is strictly prohibited. Please promptly notify the sender by reply e-mail or by telephone at 770-246-8600, and then delete or destroy all copies of the transmission.