From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 82AAF1A1E24 for ; Wed, 28 Sep 2016 01:08:44 -0700 (PDT) Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga104.jf.intel.com with ESMTP; 28 Sep 2016 01:08:44 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.30,409,1470726000"; d="scan'208";a="14525389" Received: from fmsmsx107.amr.corp.intel.com ([10.18.124.205]) by orsmga004.jf.intel.com with ESMTP; 28 Sep 2016 01:08:43 -0700 Received: from fmsmsx154.amr.corp.intel.com (10.18.116.70) by fmsmsx107.amr.corp.intel.com (10.18.124.205) with Microsoft SMTP Server (TLS) id 14.3.248.2; Wed, 28 Sep 2016 01:08:42 -0700 Received: from shsmsx101.ccr.corp.intel.com (10.239.4.153) by FMSMSX154.amr.corp.intel.com (10.18.116.70) with Microsoft SMTP Server (TLS) id 14.3.248.2; Wed, 28 Sep 2016 01:08:42 -0700 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.15]) by SHSMSX101.ccr.corp.intel.com ([169.254.1.118]) with mapi id 14.03.0248.002; Wed, 28 Sep 2016 16:08:39 +0800 From: "Fan, Jeff" To: "Yao, Jiewen" , "edk2-devel@lists.01.org" CC: "Tian, Feng" , "Zeng, Star" , "Kinney, Michael D" , "Gao, Liming" , "Zhang, Chao B" Thread-Topic: [PATCH 19/45] IntelFrameworkModulePkg/DxeCapsuleLib: Add ProcessCapsules() interface. Thread-Index: AQHSE9PqaMnngQjmm0Kvr5QHHCWgsKCOlv0A Date: Wed, 28 Sep 2016 08:08:39 +0000 Message-ID: <542CF652F8836A4AB8DBFAAD40ED192A4A28D053@shsmsx102.ccr.corp.intel.com> References: <1474440326-9292-1-git-send-email-jiewen.yao@intel.com> <1474440326-9292-20-git-send-email-jiewen.yao@intel.com> In-Reply-To: <1474440326-9292-20-git-send-email-jiewen.yao@intel.com> Accept-Language: zh-CN, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiZWVmMjhhNDAtOGNkOC00NTg0LTk2MzktNGVkZTQzNzgwMDkxIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE1LjkuNi42IiwiVHJ1c3RlZExhYmVsSGFzaCI6IjhYdUU2Sk40V054cTZicXR3cVlzZytqZE9MT0hiUXdSUHpTMDdZWGVVNVU9In0= x-ctpclassification: CTP_IC x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Subject: Re: [PATCH 19/45] IntelFrameworkModulePkg/DxeCapsuleLib: Add ProcessCapsules() interface. X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Sep 2016 08:08:44 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: Jeff Fan -----Original Message----- From: Yao, Jiewen=20 Sent: Wednesday, September 21, 2016 2:45 PM To: edk2-devel@lists.01.org Cc: Fan, Jeff; Tian, Feng; Zeng, Star; Kinney, Michael D; Gao, Liming; Zhan= g, Chao B Subject: [PATCH 19/45] IntelFrameworkModulePkg/DxeCapsuleLib: Add ProcessCa= psules() interface. Add NULL ProcessCapsules() interface for DxeCapsuleLib. IntelFrameworkModulePkg is under maintenance phase. We stop adding new feature there. Just add NULL function to make it pass build. Cc: Jeff Fan Cc: Feng Tian Cc: Star Zeng Cc: Michael D Kinney Cc: Liming Gao Cc: Chao Zhang Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jiewen Yao --- IntelFrameworkModulePkg/Library/DxeCapsuleLib/DxeCapsuleLib.c | 39 +++++++= ++++++++++++- 1 file changed, 38 insertions(+), 1 deletion(-) diff --git a/IntelFrameworkModulePkg/Library/DxeCapsuleLib/DxeCapsuleLib.c = b/IntelFrameworkModulePkg/Library/DxeCapsuleLib/DxeCapsuleLib.c index fc9b533..c964b2d 100644 --- a/IntelFrameworkModulePkg/Library/DxeCapsuleLib/DxeCapsuleLib.c +++ b/IntelFrameworkModulePkg/Library/DxeCapsuleLib/DxeCapsuleLib.c @@ -1,7 +1,7 @@ /** @file Capsule Library instance to process capsule images. =20 - Copyright (c) 2007 - 2013, Intel Corporation. All rights reserved.
+ Copyright (c) 2007 - 2016, Intel Corporation. All rights=20 + reserved.
=20 This program and the accompanying materials are licensed and made available under the terms and conditions of the BS= D License @@ -515,4 +515,41 @@ ProcessCapsuleImage ( return Status; } =20 +/** + + This routine is called to process capsules. + + Caution: This function may receive untrusted input. + + If the current boot mode is NOT BOOT_ON_FLASH_UPDATE, this routine does = nothing. + If the current boot mode is BOOT_ON_FLASH_UPDATE, the capsules=20 + reported in EFI_HOB_UEFI_CAPSULE are processed. If there is no=20 + EFI_HOB_UEFI_CAPSULE, this routine does nothing. + + This routine should be called twice in BDS. + 1) The first call must be before EndOfDxe. The system capsules is proces= sed. + If device capsule FMP protocols are exposted at this time and device = FMP + capsule has zero EmbeddedDriverCount, the device capsules are process= ed. + Each individual capsule result is recorded in capsule record variable= . + System may reset in this function, if reset is required by capsule. + + 2) The second call must be after EndOfDxe and after ConnectAll, so that = all + device capsule FMP protocols are exposed. + The system capsules are skipped. If the device capsules are NOT proce= ssed + in first call, they are processed here. + Each individual capsule result is recorded in capsule record variable= . + System may reset in this function, if reset is required by capsule. + + @retval EFI_SUCCESS There is no error when processing capsul= es. + @retval EFI_OUT_OF_RESOURCES No enough resource to process capsules. + +**/ +EFI_STATUS +EFIAPI +ProcessCapsules( + VOID + ) +{ + return EFI_UNSUPPORTED; +} =20 -- 2.7.4.windows.1