From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from atlmailgw1.ami.com (atlmailgw1.ami.com []) by mx.groups.io with SMTP id smtpd.web11.809.1589489553710474823 for ; Thu, 14 May 2020 13:52:37 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=fail (domain: ami.com, ip: , mailfrom: oleksiyy@ami.com) X-AuditID: ac1060b2-0f7ff700000018d4-cf-5ebdaf94b708 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 C0.77.06356.49FADBE5; Thu, 14 May 2020 16:52:36 -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; Thu, 14 May 2020 16:51:50 -0400 From: "Oleksiy Yakovlev" To: CC: , , , , , , , Subject: [PATCH V7 4/6] MdePkg: Add FMP Capsule Image Header extension Date: Thu, 14 May 2020 16:51:43 -0400 Message-ID: <20200514205145.36956-5-oleksiyy@ami.com> X-Mailer: git-send-email 2.9.0.windows.1 In-Reply-To: <20200514205145.36956-1-oleksiyy@ami.com> References: <20200514205145.36956-1-oleksiyy@ami.com> MIME-Version: 1.0 Return-Path: oleksiyy@ami.com X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrPIsWRmVeSWpSXmKPExsWyRiBhgu6U9XvjDJoeqVnMf1tt0T5hNpvF 1Vu/mCzmfZvBarHuo4fFinsb2C06Ov4xObB7bP9+gdFj8Z6XTAFMUQ2MNol5efkliSWpCimp xcm2SgFFmWWJyZVKCpkptkqGSgoFOYnJqbmpeSW2SokFBal5KUp2XAoYwAaoLDNPITUvOT8l My/dVskz2F/XwsLUUtdQyS4kI1UhMy8tvyg3sSQzP08hOT+vBKg6NQUoqpDQzZlxectWxoLH 3BXzW56yNTD+5uxi5OSQEDCR6Fx7ir2LkYtDSGAXk8Shz/ehnC2MEs2tt5lAqtgENCUOHJvC CGKLCEhJTDkwEyzOLHCYUaLjE1Ccg0NYwE3izWtnEJNFQFVi3aQ4kApeAVOJeYv2MkHs0pCY tuYumM0pYCYx+/8RJpByIaCarxOUIMoFJU7OfMICMVxC4uCLF8wgtpCArETb8efsExj5ZyEp m4WkbAEj0ypGocSSnNzEzJz0ckO9xNxMveT83E2MkNjbtIOx5aL5IUYmDsZDjBIczEoivH7r d8cJ8aYkVlalFuXHF5XmpBYfYnQCOn8isxQ3KPiA8RFvbGAgJQrjGJqYmZgbmRtampgbGyuJ 805euyZOSCAdGK/ZqakFqUUwQ5g4OKUaGHffydPW57rp/vnKJ86138uPVbod61L68M3uQfm1 EudP15bWS6o6L3G5u1DctmPCHm4hs/ad3rUHfG8yLyy++/9d0EHD4KUM0nYn7C6efOfOnKVn lpT/Tuxry64G61wll/dB9dLNE+7wqy4Q+yiw8Zz76lPV1oyzDMNtDGbO2VW/ZO4Mf4M5PUos xRmJhlrMRcWJACfrfLjSAgAA 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.