From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mx.groups.io with SMTP id smtpd.web09.782.1577088673003688586 for ; Mon, 23 Dec 2019 00:11:13 -0800 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: intel.com, ip: 134.134.136.24, mailfrom: rangasai.v.chaganty@intel.com) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 23 Dec 2019 00:11:12 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.69,346,1571727600"; d="scan'208";a="417184606" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by fmsmga005.fm.intel.com with ESMTP; 23 Dec 2019 00:11:12 -0800 Received: from fmsmsx112.amr.corp.intel.com (10.18.116.6) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 23 Dec 2019 00:11:10 -0800 Received: from fmsmsx104.amr.corp.intel.com ([169.254.3.117]) by FMSMSX112.amr.corp.intel.com ([169.254.5.60]) with mapi id 14.03.0439.000; Mon, 23 Dec 2019 00:11:10 -0800 From: "Chaganty, Rangasai V" To: "Ni, Ray" , "Tsao, Ethan" , "devel@edk2.groups.io" Subject: Re: [PATCH] * IntelSiliconPkg/Include/Library:Add ConfigBlockLib.h Thread-Topic: [PATCH] * IntelSiliconPkg/Include/Library:Add ConfigBlockLib.h Thread-Index: AQHVuVsShph99YlU10aUq2QsHKIqDafH3oeA//9935A= Date: Mon, 23 Dec 2019 08:11:10 +0000 Message-ID: References: <20191223063441.18136-1-ethan.tsao@intel.com> <734D49CCEBEEF84792F5B80ED585239D5C3A8E4A@SHSMSX104.ccr.corp.intel.com> In-Reply-To: <734D49CCEBEEF84792F5B80ED585239D5C3A8E4A@SHSMSX104.ccr.corp.intel.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.2.0.6 dlp-reaction: no-action x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiMGI2ODViZjMtNzA0Zi00NjczLWJhN2UtNGZjZTNjMjk2OWViIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiNUxPN2JYY2tFNEZlblpqdFdOOVBcL1F2TmRwQjVMRkpuSDBqXC9ZeWFUUkEzUmVHWHJUMEFFU0dcLytKSHhzME1LaiJ9 x-ctpclassification: CTP_NT x-originating-ip: [10.1.200.108] MIME-Version: 1.0 Return-Path: rangasai.v.chaganty@intel.com Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Please update the copyright text to "BSD-2-Clause-Patent" format and start = the year with the year of this file creation. =20 Thanks, Sai -----Original Message----- From: Ni, Ray=20 Sent: Sunday, December 22, 2019 11:50 PM To: Tsao, Ethan ; devel@edk2.groups.io Cc: Chaganty, Rangasai V Subject: RE: [PATCH] * IntelSiliconPkg/Include/Library:Add ConfigBlockLib.h Reviewed-by: Ray Ni > -----Original Message----- > From: Tsao, Ethan > Sent: Monday, December 23, 2019 2:35 PM > To: devel@edk2.groups.io > Cc: Ni, Ray ; Chaganty, Rangasai V=20 > > Subject: [PATCH] * IntelSiliconPkg/Include/Library:Add=20 > ConfigBlockLib.h >=20 > REF:https://bugzilla.tianocore.org/show_bug.cgi?id=3D2318 >=20 > Create header for BaseConfigBlockLib >=20 > Signed-off-by: Ethan Tsao > Cc: Ray Ni > Cc: Sai Chaganty > --- > Silicon/Intel/IntelSiliconPkg/Include/Library/ConfigBlockLib.h | 70 > ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > ++++++++++++ > 1 file changed, 70 insertions(+) >=20 > diff --git=20 > a/Silicon/Intel/IntelSiliconPkg/Include/Library/ConfigBlockLib.h > b/Silicon/Intel/IntelSiliconPkg/Include/Library/ConfigBlockLib.h > new file mode 100644 > index 0000000000..110298f088 > --- /dev/null > +++ b/Silicon/Intel/IntelSiliconPkg/Include/Library/ConfigBlockLib.h > @@ -0,0 +1,70 @@ > +/** @file > + Header file for Config Block Lib implementation > + > +Copyright (c) 2015 - 2016, Intel Corporation. All rights=20 > +reserved.
This program and the accompanying materials are=20 > +licensed and made > available under > +the terms and conditions of the BSD License that accompanies this > distribution. > +The full text of the license may be found at=20 > +http://opensource.org/licenses/bsd-license.php. > + > +THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" > BASIS, > +WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER > EXPRESS OR IMPLIED. > + > +**/ > + > +#ifndef _CONFIG_BLOCK_LIB_H_ > +#define _CONFIG_BLOCK_LIB_H_ > + > +/** > + Create config block table > + > + @param[in] TotalSize - Max size to be allocated= for the Config > Block Table > + @param[out] ConfigBlockTableAddress - On return, points to a p= ointer > to the beginning of Config Block Table Address > + > + @retval EFI_INVALID_PARAMETER - Invalid Parameter @retval=20 > + EFI_OUT_OF_RESOURCES - Out of resources > + @retval EFI_SUCCESS - Successfully created Config Block Tabl= e at > ConfigBlockTableAddress > +**/ > +EFI_STATUS > +EFIAPI > +CreateConfigBlockTable ( > + IN UINT16 TotalSize, > + OUT VOID **ConfigBlockTableAddress > + ); > + > +/** > + Add config block into config block table structure > + > + @param[in] ConfigBlockTableAddress - A pointer to the beginni= ng of > Config Block Table Address > + @param[out] ConfigBlockAddress - On return, points to a p= ointer to > the beginning of Config Block Address > + > + @retval EFI_OUT_OF_RESOURCES - Config Block Table is full and=20 > + cannot > add new Config Block or > + Config Block Offset Table is full=20 > + and cannot add new Config > Block. > + @retval EFI_SUCCESS - Successfully added Config Block > +**/ > +EFI_STATUS > +EFIAPI > +AddConfigBlock ( > + IN VOID *ConfigBlockTableAddress, > + OUT VOID **ConfigBlockAddress > + ); > + > +/** > + Retrieve a specific Config Block data by GUID > + > + @param[in] ConfigBlockTableAddress - A pointer to the beginn= ing of > Config Block Table Address > + @param[in] ConfigBlockGuid - A pointer to the GUID u= ses to > search specific Config Block > + @param[out] ConfigBlockAddress - On return, points to a = pointer to > the beginning of Config Block Address > + > + @retval EFI_NOT_FOUND - Could not find the Config Block > + @retval EFI_SUCCESS - Config Block found and return > +**/ > +EFI_STATUS > +EFIAPI > +GetConfigBlock ( > + IN VOID *ConfigBlockTableAddress, > + IN EFI_GUID *ConfigBlockGuid, > + OUT VOID **ConfigBlockAddress > + ); > + > +#endif // _CONFIG_BLOCK_LIB_H_ > \ No newline at end of file > -- > 2.16.2.windows.1