From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: mx.groups.io; dkim=missing; spf=fail (domain: intel.com, ip: , mailfrom: zhichao.gao@intel.com) Received: from mga14.intel.com (mga14.intel.com []) by groups.io with SMTP; Sun, 05 May 2019 00:52:20 -0700 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 05 May 2019 00:52:20 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,433,1549958400"; d="scan'208";a="155041544" Received: from fieedk001.ccr.corp.intel.com ([10.239.33.119]) by FMSMGA003.fm.intel.com with ESMTP; 05 May 2019 00:52:19 -0700 From: "Gao, Zhichao" To: devel@edk2.groups.io Cc: Bret Barkelew , Jian J Wang , Hao Wu , Ray Ni , Star Zeng , Liming Gao , Sean Brogan , Michael Turner Subject: [PATCH 1/4] MdeModulePkg: Add reset data difinition and guid Date: Sun, 5 May 2019 15:50:43 +0800 Message-Id: <20190505075046.14464-2-zhichao.gao@intel.com> X-Mailer: git-send-email 2.21.0.windows.1 In-Reply-To: <20190505075046.14464-1-zhichao.gao@intel.com> References: <20190505075046.14464-1-zhichao.gao@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Bret Barkelew REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1772 Add a useful definition of reset data for capsule function. And add two guids gCapsuleArmedResetGuid and gCapsuleUpdateCompleteResetGuid. Cc: Jian J Wang Cc: Hao Wu Cc: Ray Ni Cc: Star Zeng Cc: Liming Gao Cc: Sean Brogan Cc: Michael Turner Cc: Bret Barkelew Signed-off-by: Zhichao Gao --- MdeModulePkg/Include/Guid/CapsuleResetData.h | 40 ++++++++++++++++++++ MdeModulePkg/MdeModulePkg.dec | 5 +++ 2 files changed, 45 insertions(+) create mode 100644 MdeModulePkg/Include/Guid/CapsuleResetData.h diff --git a/MdeModulePkg/Include/Guid/CapsuleResetData.h b/MdeModulePkg/Include/Guid/CapsuleResetData.h new file mode 100644 index 0000000000..b0666a0da2 --- /dev/null +++ b/MdeModulePkg/Include/Guid/CapsuleResetData.h @@ -0,0 +1,40 @@ +/** @file + The capsule reset data difinition and guids. + + Copyright (c) 2019, Intel Corporation. All rights reserved.
+ SPDX-License-Identifier: BSD-2-Clause-Patent + +**/ +#ifndef __CAPSULE_RESET_DATA_H__ +#define __CAPSULE_RESET_DATA_H__ + +#include + +// +// reset data started with a null string and followed by a guid data +// +#pragma pack(1) +typedef struct { + CHAR16 NullString; + EFI_GUID ResetGuid; +} RESET_DATA_WITH_NULL_STRING; +#pragma pack() + +VERIFY_SIZE_OF (RESET_DATA_WITH_NULL_STRING, 18); + +#define CAPSULE_ARMED_RESET_GUID \ + { \ + 0xc6b4eea7, 0xfce2, 0x4625, { 0x9c, 0x4f, 0xc4, 0xb0, 0x82, 0x37, 0xae, 0x23 } \ + } + +#define CAPSULE_UPDATE_COMPLETE_RESET_GUID \ + { \ + 0x5d512714, 0xa4df, 0x4e46, { 0xb6, 0xc7, 0xbc, 0x9f, 0x97, 0x9d, 0x59, 0xa0 } \ + } + +extern EFI_GUID gCapsuleArmedResetGuid; + +extern EFI_GUID gCapsuleUpdateCompleteResetGuid; + +#endif + diff --git a/MdeModulePkg/MdeModulePkg.dec b/MdeModulePkg/MdeModulePkg.dec index 2ef48f2c37..c12b836c24 100644 --- a/MdeModulePkg/MdeModulePkg.dec +++ b/MdeModulePkg/MdeModulePkg.dec @@ -423,6 +423,11 @@ ## Include/Guid/S3StorageDeviceInitList.h gS3StorageDeviceInitListGuid = { 0x310e9b8c, 0xcf90, 0x421e, { 0x8e, 0x9b, 0x9e, 0xef, 0xb6, 0x17, 0xc8, 0xef } } + ## Guid to use for gRT->ResetSystem() to indicate the type of reset that is being performed. + # Include/Guid/CapsuleResetData.h + gCapsuleArmedResetGuid = {0xc6b4eea7, 0xfce2, 0x4625, {0x9c, 0x4f, 0xc4, 0xb0, 0x82, 0x37, 0xae, 0x23}} + gCapsuleUpdateCompleteResetGuid = {0x5d512714, 0xa4df, 0x4e46, {0xb6, 0xc7, 0xbc, 0x9f, 0x97, 0x9d, 0x59, 0xa0}} + [Ppis] ## Include/Ppi/AtaController.h gPeiAtaControllerPpiGuid = { 0xa45e60d1, 0xc719, 0x44aa, { 0xb0, 0x7a, 0xaa, 0x77, 0x7f, 0x85, 0x90, 0x6d }} -- 2.21.0.windows.1