From nobody Wed May 1 23:05:20 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) client-ip=66.175.222.12; envelope-from=bounce+27952+52489+1787277+3901457@groups.io; helo=web01.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+52489+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1577082888; cv=none; d=zohomail.com; s=zohoarc; b=aQvWcJZGAkHuAsSRsEgGC53BaJJwQ3VpbI2ABl5/kWvlHLTXbj+JMoUA05t5yAMbhmL/Zka/a5PKAU9lfw8/YxZkUoG1hxOHJbr+EaEYw4OpcwU1Qkx9vklW8ViDYSsniduf84jtRTcj/YY1a95WYN+7QycFszSCy+wRJTwyeOQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1577082888; h=Cc:Date:From:List-Id:List-Unsubscribe:Message-ID:Reply-To:Sender:Subject:To; bh=x1wTvh/Y2zC5WWEEami4S6s0iQSdoa0eLx31FMwPvOs=; b=BvmjafvgspWW5EIUKB6LvrfEodNeZsWkRYbEht6rUTOtBKCRSfu4BX2vAUfbvC6dQZGCbg/8tdcxflbTGTscQ0UL/O1KjtQ7lbfAGHX9pO1VWaqqVxUpy71+H9PleZ8gVp7WKUUQ6+sh49IhP75t+AC4ivqX68MmZ8S/AS6qm8I= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+52489+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) header.from= Received: from web01.groups.io (web01.groups.io [66.175.222.12]) by mx.zohomail.com with SMTPS id 1577082888560961.7574522768982; Sun, 22 Dec 2019 22:34:48 -0800 (PST) Return-Path: X-Received: by 127.0.0.2 with SMTP id nQ7AYY1788612xrVF2wqK8js; Sun, 22 Dec 2019 22:34:47 -0800 X-Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by mx.groups.io with SMTP id smtpd.web12.311.1577082887440408122 for ; Sun, 22 Dec 2019 22:34:47 -0800 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False X-Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 22 Dec 2019 22:34:46 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.69,346,1571727600"; d="scan'208";a="268071591" X-Received: from unknown (HELO ethantsa-MOBL1.gar.corp.intel.com) ([10.5.241.39]) by FMSMGA003.fm.intel.com with ESMTP; 22 Dec 2019 22:34:45 -0800 From: "Ethan Tsao" To: devel@edk2.groups.io Cc: Ray Ni , Sai Chaganty Subject: [edk2-devel] [PATCH] * IntelSiliconPkg/Include/Library:Add ConfigBlockLib.h Date: Mon, 23 Dec 2019 14:34:41 +0800 Message-Id: <20191223063441.18136-1-ethan.tsao@intel.com> Precedence: Bulk List-Unsubscribe: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,ethan.tsao@intel.com X-Gm-Message-State: pCw1PnEWDkOf5G8Qfr0UCLdTx1787277AA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1577082887; bh=hihDAvYFeqgs6mi9mDJLKfGVR/AjlJW18GMDjbAlJE8=; h=Cc:Date:From:Reply-To:Subject:To; b=btNiOBX7OrtEGRcAkcCjp9yckOZIhMnzLhJEZSrEBNM6q3MRK0NmQxy5BaWO7oQR0Jx 0RaFdhW31BkWGOM24Fm//jLQfVOQz8Pkgv9XVU8yVlAAnOUO9SzBOHbQlj3MUxg7T6As5 BgAVE6IG2gWvRTTHdpGMz+OKXvkFB4xLSL8= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" REF:https://bugzilla.tianocore.org/show_bug.cgi?id=3D2318 Create header for BaseConfigBlockLib Signed-off-by: Ethan Tsao Cc: Ray Ni Cc: Sai Chaganty Reviewed-by: Ray Ni --- Silicon/Intel/IntelSiliconPkg/Include/Library/ConfigBlockLib.h | 70 ++++++= ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) diff --git 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 reserved.
+This program and the accompanying materials are licensed and made availabl= e under=20 +the terms and conditions of the BSD License that accompanies this distribu= tion. =20 +The full text of the license may be found at +http://opensource.org/licenses/bsd-license.php. = =20 + +THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, = =20 +WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLI= ED. + +**/ + +#ifndef _CONFIG_BLOCK_LIB_H_ +#define _CONFIG_BLOCK_LIB_H_ + +/** + Create config block table + + @param[in] TotalSize - Max size to be allocated f= or the Config Block Table + @param[out] ConfigBlockTableAddress - On return, points to a poi= nter to the beginning of Config Block Table Address + + @retval EFI_INVALID_PARAMETER - Invalid Parameter + @retval EFI_OUT_OF_RESOURCES - Out of resources + @retval EFI_SUCCESS - Successfully created Config Block Table = 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 beginning= of Config Block Table Address + @param[out] ConfigBlockAddress - On return, points to a poi= nter to the beginning of Config Block Address + + @retval EFI_OUT_OF_RESOURCES - Config Block Table is full and cannot add= new Config Block or + Config Block Offset Table is full and can= not 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 beginnin= g of Config Block Table Address + @param[in] ConfigBlockGuid - A pointer to the GUID use= s to search specific Config Block + @param[out] ConfigBlockAddress - On return, points to a po= inter 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 --=20 2.16.2.windows.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#52489): https://edk2.groups.io/g/devel/message/52489 Mute This Topic: https://groups.io/mt/69225734/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-