From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by mx.groups.io with SMTP id smtpd.web08.5638.1624844312655175435 for ; Sun, 27 Jun 2021 18:38:32 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@intel.onmicrosoft.com header.s=selector2-intel-onmicrosoft-com header.b=ilWGmvl4; spf=pass (domain: intel.com, ip: 134.134.136.65, mailfrom: chasel.chiu@intel.com) X-IronPort-AV: E=McAfee;i="6200,9189,10028"; a="207910395" X-IronPort-AV: E=Sophos;i="5.83,304,1616482800"; d="scan'208";a="207910395" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Jun 2021 18:38:32 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.83,304,1616482800"; d="scan'208";a="407910755" Received: from orsmsx602.amr.corp.intel.com ([10.22.229.15]) by orsmga003.jf.intel.com with ESMTP; 27 Jun 2021 18:38:32 -0700 Received: from orsmsx607.amr.corp.intel.com (10.22.229.20) by ORSMSX602.amr.corp.intel.com (10.22.229.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.4; Sun, 27 Jun 2021 18:38:31 -0700 Received: from orsmsx607.amr.corp.intel.com (10.22.229.20) by ORSMSX607.amr.corp.intel.com (10.22.229.20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.4; Sun, 27 Jun 2021 18:38:31 -0700 Received: from ORSEDG601.ED.cps.intel.com (10.7.248.6) by orsmsx607.amr.corp.intel.com (10.22.229.20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.4 via Frontend Transport; Sun, 27 Jun 2021 18:38:31 -0700 Received: from NAM12-DM6-obe.outbound.protection.outlook.com (104.47.59.171) by edgegateway.intel.com (134.134.137.102) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2242.4; Sun, 27 Jun 2021 18:38:31 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=cNx6e3cMt+DspF30vX29oOQKNso0iHMoQpX34Hk+kEgfciG/DFtIwJSY57Q6yKW4p3qSxMMwjvQBY4qYsxHMFytc/yOZNp7iK7i1G3oBkFyofeOPl/BBBNxFhTSrvWr38kwE5mMlsFX1MU6QGZaWiquxjAz4AHkv1pGQxT+xKSa6jb2oWpVgFoKAP7EBfJxpiw4EgHtD3Qr1vuSfjMFjCUng2Cf87QhF4b7gmBKYaYqbYXD92DsMXGN1Ig38RxjPvoMpg1PCorV0+1d7llJZt/pvjEa3utkWZFMEftisz+LhN486+AX8k8ks3XeNo/vmVvsXPnbrq5//tJLWRA4mcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=TYHhhCVkwYf9wZFb6MjrALuNAOinwVJzrbkcOOYmKr4=; b=WuS5N6ascFJKGQ3wOvG3eT6eivzgTNwp4slN+6qPBt0UxQcFnAUyyj7F3Q/cp2b/gBIpzBPJIZ2uE/IH3+deICp71CWgvjAHyPvzxglIIH3SOtjo3EcujzrbzDBZ/yhhfG3TZtzQo+P/YmY/thqFcJvsFKy0ngDQZl0a8pl/ypShbTbl/OaXcAUJsJxivqAzUCJlnOGSEN8HapGIht1ntBOn6ojtXNWMDf/LAd0w/LR/RN7vNTYQYAdy9JGoCkGTRjz/OzaP3EELXc/iKWTifcIF6dY4+92Qhdbatf392W4x/Cy88dduFR2lU2AlVHVJDhZJZ9l7ZIkq47Kolm1KhA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=TYHhhCVkwYf9wZFb6MjrALuNAOinwVJzrbkcOOYmKr4=; b=ilWGmvl4Hz0x65zZ9wMGpJlsBldSAzR4BmXHCjMLIaYBPJzIyTwmXHAI00bhuUkAiiTgTTT9Iw9PWsIQt1zAxDGbJIWyBiBOATZzCr0FQVnoI6Ry7zT3awsHGa+R39muFbdsccWqBs8SaTendBkFBk0b/H0eTeql+8TZmEwgcB0= Received: from BN9PR11MB5483.namprd11.prod.outlook.com (2603:10b6:408:104::10) by BN8PR11MB3572.namprd11.prod.outlook.com (2603:10b6:408:82::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4264.23; Mon, 28 Jun 2021 01:38:24 +0000 Received: from BN9PR11MB5483.namprd11.prod.outlook.com ([fe80::2162:be61:a479:4168]) by BN9PR11MB5483.namprd11.prod.outlook.com ([fe80::2162:be61:a479:4168%7]) with mapi id 15.20.4264.026; Mon, 28 Jun 2021 01:38:24 +0000 From: "Chiu, Chasel" To: "devel@edk2.groups.io" , "mikuback@linux.microsoft.com" CC: "Desimone, Nathaniel L" , Liming Gao , "Dong, Eric" Subject: Re: [edk2-devel] [edk2-platforms][PATCH v4 30/41] MinPlatformPkg: Remove SpiFlashCommonLibNull Thread-Topic: [edk2-devel] [edk2-platforms][PATCH v4 30/41] MinPlatformPkg: Remove SpiFlashCommonLibNull Thread-Index: AQHXaghKI71eTHnJVk6cJLx1e4HLCKsoqHqQ Date: Mon, 28 Jun 2021 01:38:24 +0000 Message-ID: References: <20210625212120.235-1-mikuback@linux.microsoft.com> <20210625212120.235-31-mikuback@linux.microsoft.com> In-Reply-To: <20210625212120.235-31-mikuback@linux.microsoft.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-reaction: no-action dlp-version: 11.5.1.3 authentication-results: edk2.groups.io; dkim=none (message not signed) header.d=none;edk2.groups.io; dmarc=none action=none header.from=intel.com; x-originating-ip: [114.43.34.211] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: a96d90ad-cc7f-43ff-fd1a-08d939d56b83 x-ms-traffictypediagnostic: BN8PR11MB3572: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:6790; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 2D7Muy7qNtB2+Kl9c0UeHiI7enWt5tFdgbu6AwoQKYxSQ8PNGFEzuUs/xXKsdn5Rgx5zvYsB7d2V4+NnW8MNF/cPyIaUZAGDboIuo17WRsfr8kpie9lv3RPAob+Tp7poO8DfhtxmqIdm/dSma85CBQAegAKgIGswn8tVgqwZqUfKuBIqwOCwnBq+jAP46J/iJa0HDupOvCDwwSiVYpDsqxKhTTfdPmrOV/bxBs3sQniNI5Loe5lZ9cYIF+MwRdWGZjz+fKttLbn7cpu+ldu2AGtHa9Y8uwJc++k4kr2YBLMIPthhtCAUuiQPYxEQJKfAr3wBU2naR2aSLWcHkV3UQHaBQ5CIH3RKQwLysSvTi+p01M5LjnphU7HKF1s6ukR5eV8X8deL9NLBfWjuOjRsLaA6F99qxnmGrZ60VXJHoUbn4W2aL76hoQqrhyuFfu/kYNA82kIb/vW0hCz1a5XUJfFPSLby1k+ZcIsmka4fVYWYUwbJpHaSwDjPNFJtbqr81ys0hQgl7twANq6Prqo14u3j1yDiBSllJEOMWOa/MlJtoDGsuc3IpSZ4n3vAny7q/dwXp/1P98jJs9mMp1oX5PmBFi74mCWtkk2xvl6eO37aFGXflQlpyKy+kftOiQTBuTqe5ngCmx3MN4iCzVhlM4Z1u4mm+HW5zuED4kpH7mwExqElDvLK+oa7+3U3t7TEb/taMVUqJ1wOkGpsbTRnPkvbPHgfc49kvUzlqwRT51ehBzDwN3G8nuaSV6tPkkvwmMLFXFMzkbUotx+5BEvmlVNQ1rANQ6Ds5CjQPX5dlSmXM7jkUzqe706iw+CqGRkCN0r+4LQpsxBPENlqKaCRl5uWsle4wFXi8LHDh4kHY1VR0z8boSjdzR2fmOtx/SDO x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BN9PR11MB5483.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(366004)(39860400002)(346002)(376002)(136003)(396003)(316002)(7696005)(33656002)(5660300002)(478600001)(66556008)(107886003)(54906003)(64756008)(66476007)(66446008)(83380400001)(52536014)(186003)(66946007)(4326008)(76116006)(26005)(2906002)(53546011)(122000001)(38100700002)(8936002)(8676002)(71200400001)(86362001)(110136005)(55016002)(6506007)(30864003)(966005)(9686003)(11716005)(213903007);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?uioXAedt4VfTl77aFsU79DwrVuQzU1lm6hZRdIUVitKQlec+3FHuehdjom9L?= =?us-ascii?Q?Vf4cqAra4y8VurxFZKjs6BlyRKIIaNjrowPT4HLTfyKFI/fYtjaUF+1mwsN4?= =?us-ascii?Q?46lhSW0w7Phjpq/CKZv74WNtFmdn0BoKexBPSL+2P06yNJgpDl/8VhAIhLKX?= =?us-ascii?Q?Eqch66WbkGMxphHQDKe3k173PlFz/5XKmWqZQO/1JfudC7TnHtmGuJvLz0sC?= =?us-ascii?Q?z99sA8eodqCAJSxc1r4mia/siANzIoDEmCMLW434feIwY/gcvwm4I198gtxl?= =?us-ascii?Q?Z7ke2A1dgO2568yqcxGfHz8uk7My8c6VCwnWggSVbUq5RzRBQ9GzM8sk2YTs?= =?us-ascii?Q?t+qaTo+dyHvphNgVQQCplQ2EVcJbrc4IeT3TRAsdRo6Go1oDY2DbM4LRm8Pi?= =?us-ascii?Q?L158QOhfKOPXMTUetoiqFWW0+Lik/NGR/eYUQIa7mc6DeCPqqN4djVI7RWId?= =?us-ascii?Q?xDCoybc0t/ZGMG3giGqnG9cNTh4yUJOsQPbm70gsSzGvHKs+Uo5SFs3aL2ak?= =?us-ascii?Q?qFK/ig9giTbAohdClQBs4hI3kLvTEaiAmQXwAAQB/c0JcOm/K4qGmO8hfSHn?= =?us-ascii?Q?FTrZz6+WGGlRaPYfhw7XSG0pDlyFh6M3Yz10hYd1m4drNEWlbt+ML/cEdVPQ?= =?us-ascii?Q?hvSYAFUCXXnPm6GpWQXvIZcbm2DAmTM+uOmBrJT46eGDJqsQLlMd2dYl/Thl?= =?us-ascii?Q?dgmev2wBwZny4yUMPINj77kBiPg5f9m87tNDApRSRZxkpk5EejJchRfbwRqJ?= =?us-ascii?Q?eoLCfR92gc8X/hYkEK/P/JZUoPv+amPzzLlQHnS/cI/FTPzwOrLtpf3myL9c?= =?us-ascii?Q?kC/nty4wgFIGldPa+I7HmgSm8j73ig5kU9Q3pvstiHtdja0ZT8tC0/scGwJW?= =?us-ascii?Q?CyEjZkXF+d3dp0MHzUzoSaLhChMYbThy7PMD0jDJLugYdDD2LoP1ty89b0dR?= =?us-ascii?Q?Wge7VVRZgjupptF9xkIBBfRtB/m3RVRSjI9Atk9lwWbEtTGjOFNjm7sRxixC?= =?us-ascii?Q?MM7LBQiQeWkExzHeEQM33BMyLw5454m7vCKHPhcBDJrVLyYo/cFWFuzOPIWs?= =?us-ascii?Q?98r9CatNwOP0Fg8tP795a9QYDe6qBuGIUZ+nKC5XvLnHXRlPpO+URUE0W9g/?= =?us-ascii?Q?qlLBK4wHibCFsGQB9rfV9i3BdRfLG1E4oo+wi1ur2nmc0fD3cjTI/hwOIb6l?= =?us-ascii?Q?2QxnKDqoEDgSrFKvJSZeWwQbwMVfElWITIifVimsk/5Zd7qkTg2dh/pVGgZH?= =?us-ascii?Q?2Xdw0MLh77/2W4GRohYMjGJ3XqYKZ0dqT8NwN/whjYy5lpnJ2lpvJSe5JD6E?= =?us-ascii?Q?4aSQ0we5ditGb76YSXTd1yby?= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BN9PR11MB5483.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: a96d90ad-cc7f-43ff-fd1a-08d939d56b83 X-MS-Exchange-CrossTenant-originalarrivaltime: 28 Jun 2021 01:38:24.2731 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 3A6kMATEP9Du2dBEioo/PE69V2rPc8PgCq9zlaBOTmHYfZMaxQhEcLp8hZRZaKAv8Gx+CAX6iFxLLEKCMAJ7Hg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN8PR11MB3572 Return-Path: chasel.chiu@intel.com X-OriginatorOrg: intel.com Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: Chasel Chiu > -----Original Message----- > From: devel@edk2.groups.io On Behalf Of Michael > Kubacki > Sent: Saturday, June 26, 2021 5:21 AM > To: devel@edk2.groups.io > Cc: Chiu, Chasel ; Desimone, Nathaniel L > ; Liming Gao ; > Dong, Eric > Subject: [edk2-devel] [edk2-platforms][PATCH v4 30/41] MinPlatformPkg: > Remove SpiFlashCommonLibNull >=20 > From: Michael Kubacki >=20 > REF:https://bugzilla.tianocore.org/show_bug.cgi?id=3D3307 >=20 > The library instance has moved to IntelSiliconPkg. >=20 > Cc: Chasel Chiu > Cc: Nate DeSimone > Cc: Liming Gao > Cc: Eric Dong > Signed-off-by: Michael Kubacki > Reviewed-by: Nate DeSimone > Reviewed-by: Chasel Chiu > --- >=20 > Platform/Intel/MinPlatformPkg/Flash/Library/SpiFlashCommonLibNull/SpiFlas= hC > ommonLibNull.c | 101 -------------------- >=20 > Platform/Intel/MinPlatformPkg/Flash/Library/SpiFlashCommonLibNull/SpiFlas= hC > ommonLibNull.inf | 29 ------ > Platform/Intel/MinPlatformPkg/Include/Library/SpiFlashCommonLib.h > | 98 ------------------- > Platform/Intel/MinPlatformPkg/MinPlatformPkg.dec = | > 2 - > Platform/Intel/MinPlatformPkg/MinPlatformPkg.dsc = | > 4 - > 5 files changed, 234 deletions(-) >=20 > diff --git > a/Platform/Intel/MinPlatformPkg/Flash/Library/SpiFlashCommonLibNull/SpiFl= as > hCommonLibNull.c > b/Platform/Intel/MinPlatformPkg/Flash/Library/SpiFlashCommonLibNull/SpiFl= as > hCommonLibNull.c > deleted file mode 100644 > index 403b16a1b421..000000000000 > --- > a/Platform/Intel/MinPlatformPkg/Flash/Library/SpiFlashCommonLibNull/SpiFl= as > hCommonLibNull.c > +++ /dev/null > @@ -1,101 +0,0 @@ > -/** @file > - Null Library instance of SPI Flash Common Library Class > - > -Copyright (c) 2017, Intel Corporation. All rights reserved.
> -SPDX-License-Identifier: BSD-2-Clause-Patent > - > -**/ > - > -#include > -#include > - > -/** > - Enable block protection on the Serial Flash device. > - > - @retval EFI_SUCCESS Opertion is successful. > - @retval EFI_DEVICE_ERROR If there is any device errors. > - > -**/ > -EFI_STATUS > -EFIAPI > -SpiFlashLock ( > - VOID > - ) > -{ > - return EFI_SUCCESS; > -} > - > -/** > - Read NumBytes bytes of data from the address specified by > - PAddress into Buffer. > - > - @param[in] Address The starting physical address of the rea= d. > - @param[in,out] NumBytes On input, the number of bytes to read. O= n > output, the number > - of bytes actually read. > - @param[out] Buffer The destination data buffer for the read= . > - > - @retval EFI_SUCCESS Opertion is successful. > - @retval EFI_DEVICE_ERROR If there is any device errors. > - > -**/ > -EFI_STATUS > -EFIAPI > -SpiFlashRead ( > - IN UINTN Address, > - IN OUT UINT32 *NumBytes, > - OUT UINT8 *Buffer > - ) > -{ > - ASSERT(FALSE); > - return EFI_SUCCESS; > -} > - > -/** > - Write NumBytes bytes of data from Buffer to the address specified by > - PAddresss. > - > - @param[in] Address The starting physical address of the w= rite. > - @param[in,out] NumBytes On input, the number of bytes to write= . On > output, > - the actual number of bytes written. > - @param[in] Buffer The source data buffer for the write. > - > - @retval EFI_SUCCESS Opertion is successful. > - @retval EFI_DEVICE_ERROR If there is any device errors. > - > -**/ > -EFI_STATUS > -EFIAPI > -SpiFlashWrite ( > - IN UINTN Address, > - IN OUT UINT32 *NumBytes, > - IN UINT8 *Buffer > - ) > -{ > - ASSERT(FALSE); > - return EFI_SUCCESS; > -} > - > -/** > - Erase the block starting at Address. > - > - @param[in] Address The starting physical address of the block= to be > erased. > - This library assume that caller garantee t= hat the PAddress > - is at the starting address of this block. > - @param[in] NumBytes On input, the number of bytes of the logic= al block > to be erased. > - On output, the actual number of bytes eras= ed. > - > - @retval EFI_SUCCESS. Opertion is successful. > - @retval EFI_DEVICE_ERROR If there is any device errors. > - > -**/ > -EFI_STATUS > -EFIAPI > -SpiFlashBlockErase ( > - IN UINTN Address, > - IN UINTN *NumBytes > - ) > -{ > - ASSERT(FALSE); > - return EFI_SUCCESS; > -} > - > diff --git > a/Platform/Intel/MinPlatformPkg/Flash/Library/SpiFlashCommonLibNull/SpiFl= as > hCommonLibNull.inf > b/Platform/Intel/MinPlatformPkg/Flash/Library/SpiFlashCommonLibNull/SpiFl= as > hCommonLibNull.inf > deleted file mode 100644 > index 75ef1cb921df..000000000000 > --- > a/Platform/Intel/MinPlatformPkg/Flash/Library/SpiFlashCommonLibNull/SpiFl= as > hCommonLibNull.inf > +++ /dev/null > @@ -1,29 +0,0 @@ > -### @file > -# NULL instance of Spi Flash Common Library Class -# -# Copyright (c) 20= 17, > Intel Corporation. All rights reserved.
-# -# SPDX-License-Identifier= : BSD-2- > Clause-Patent -# -### > - > -[Defines] > - INF_VERSION =3D 0x00010017 > - BASE_NAME =3D SpiFlashCommonLibNull > - FILE_GUID =3D F35BBEE7-A681-443E-BB15-07AF9FABBDE= D > - VERSION_STRING =3D 1.0 > - MODULE_TYPE =3D BASE > - LIBRARY_CLASS =3D SpiFlashCommonLib > -# > -# The following information is for reference only and not required by th= e build > tools. > -# > -# VALID_ARCHITECTURES =3D IA32 X64 > -# > - > -[LibraryClasses] > - > -[Packages] > - MdePkg/MdePkg.dec > - > -[Sources] > - SpiFlashCommonLibNull.c > diff --git > a/Platform/Intel/MinPlatformPkg/Include/Library/SpiFlashCommonLib.h > b/Platform/Intel/MinPlatformPkg/Include/Library/SpiFlashCommonLib.h > deleted file mode 100644 > index 0c5e72258c2d..000000000000 > --- a/Platform/Intel/MinPlatformPkg/Include/Library/SpiFlashCommonLib.h > +++ /dev/null > @@ -1,98 +0,0 @@ > -/** @file > - The header file includes the common header files, defines > - internal structure and functions used by SpiFlashCommonLib. > - > -Copyright (c) 2017, Intel Corporation. All rights reserved.
> -SPDX-License-Identifier: BSD-2-Clause-Patent > - > -**/ > - > -#ifndef __SPI_FLASH_COMMON_LIB_H__ > -#define __SPI_FLASH_COMMON_LIB_H__ > - > -#include > -#include > -#include > -#include > -#include > -#include -#include > -#include > > - > -#define SECTOR_SIZE_4KB 0x1000 // Common 4kBytes sector size > -/** > - Enable block protection on the Serial Flash device. > - > - @retval EFI_SUCCESS Opertion is successful. > - @retval EFI_DEVICE_ERROR If there is any device errors. > - > -**/ > -EFI_STATUS > -EFIAPI > -SpiFlashLock ( > - VOID > - ); > - > -/** > - Read NumBytes bytes of data from the address specified by > - PAddress into Buffer. > - > - @param[in] Address The starting physical address of the rea= d. > - @param[in,out] NumBytes On input, the number of bytes to read. O= n > output, the number > - of bytes actually read. > - @param[out] Buffer The destination data buffer for the read= . > - > - @retval EFI_SUCCESS Opertion is successful. > - @retval EFI_DEVICE_ERROR If there is any device errors. > - > -**/ > -EFI_STATUS > -EFIAPI > -SpiFlashRead ( > - IN UINTN Address, > - IN OUT UINT32 *NumBytes, > - OUT UINT8 *Buffer > - ); > - > -/** > - Write NumBytes bytes of data from Buffer to the address specified by > - PAddresss. > - > - @param[in] Address The starting physical address of the w= rite. > - @param[in,out] NumBytes On input, the number of bytes to write= . On > output, > - the actual number of bytes written. > - @param[in] Buffer The source data buffer for the write. > - > - @retval EFI_SUCCESS Opertion is successful. > - @retval EFI_DEVICE_ERROR If there is any device errors. > - > -**/ > -EFI_STATUS > -EFIAPI > -SpiFlashWrite ( > - IN UINTN Address, > - IN OUT UINT32 *NumBytes, > - IN UINT8 *Buffer > - ); > - > -/** > - Erase the block starting at Address. > - > - @param[in] Address The starting physical address of the block= to be > erased. > - This library assume that caller garantee t= hat the PAddress > - is at the starting address of this block. > - @param[in] NumBytes On input, the number of bytes of the logic= al block > to be erased. > - On output, the actual number of bytes eras= ed. > - > - @retval EFI_SUCCESS. Opertion is successful. > - @retval EFI_DEVICE_ERROR If there is any device errors. > - > -**/ > -EFI_STATUS > -EFIAPI > -SpiFlashBlockErase ( > - IN UINTN Address, > - IN UINTN *NumBytes > - ); > - > -#endif > diff --git a/Platform/Intel/MinPlatformPkg/MinPlatformPkg.dec > b/Platform/Intel/MinPlatformPkg/MinPlatformPkg.dec > index 947431470a1f..8c6154099bf7 100644 > --- a/Platform/Intel/MinPlatformPkg/MinPlatformPkg.dec > +++ b/Platform/Intel/MinPlatformPkg/MinPlatformPkg.dec > @@ -62,8 +62,6 @@ [LibraryClasses] > SiliconPolicyInitLib|Include/Library/SiliconPolicyInitLib.h > SiliconPolicyUpdateLib|Include/Library/SiliconPolicyUpdateLib.h >=20 > - SpiFlashCommonLib|Include/Library/SpiFlashCommonLib.h > - > BoardInitLib|Include/Library/BoardInitLib.h > MultiBoardInitSupportLib|Include/Library/MultiBoardInitSupportLib.h > SecBoardInitLib|Include/Library/SecBoardInitLib.h > diff --git a/Platform/Intel/MinPlatformPkg/MinPlatformPkg.dsc > b/Platform/Intel/MinPlatformPkg/MinPlatformPkg.dsc > index 15867eee4e61..d58ed0ee7eae 100644 > --- a/Platform/Intel/MinPlatformPkg/MinPlatformPkg.dsc > +++ b/Platform/Intel/MinPlatformPkg/MinPlatformPkg.dsc > @@ -109,7 +109,6 @@ [LibraryClasses.common.DXE_DRIVER] >=20 > TpmPlatformHierarchyLib|MinPlatformPkg/Tcg/Library/TpmPlatformHierarchyLi > b/TpmPlatformHierarchyLib.inf >=20 > [LibraryClasses.common.DXE_SMM_DRIVER] > - > SpiFlashCommonLib|MinPlatformPkg/Flash/Library/SpiFlashCommonLibNull/Spi > FlashCommonLibNull.inf >=20 > TestPointCheckLib|MinPlatformPkg/Test/Library/TestPointCheckLib/SmmTestP > ointCheckLib.inf > TestPointLib|MinPlatformPkg/Test/Library/TestPointLib/SmmTestPointLib.= inf >=20 > @@ -118,7 +117,6 @@ [LibraryClasses.common.MM_STANDALONE] >=20 > MemoryAllocationLib|StandaloneMmPkg/Library/StandaloneMmMemoryAlloca > tionLib/StandaloneMmMemoryAllocationLib.inf >=20 > MmServicesTableLib|MdePkg/Library/StandaloneMmServicesTableLib/Standalo > neMmServicesTableLib.inf > PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf > - > SpiFlashCommonLib|MinPlatformPkg/Flash/Library/SpiFlashCommonLibNull/Spi > FlashCommonLibNull.inf >=20 > StandaloneMmDriverEntryPoint|MdePkg/Library/StandaloneMmDriverEntryPoin > t/StandaloneMmDriverEntryPoint.inf >=20 > VariableReadLib|MinPlatformPkg/Library/SmmVariableReadLib/StandaloneMm > VariableReadLib.inf >=20 > VariableWriteLib|MinPlatformPkg/Library/SmmVariableWriteLib/StandaloneMm > VariableWriteLib.inf > @@ -159,8 +157,6 @@ [Components] >=20 >=20 > MinPlatformPkg/Bds/Library/DxePlatformBootManagerLib/DxePlatformBootM > anagerLib.inf >=20 > - > MinPlatformPkg/Flash/Library/SpiFlashCommonLibNull/SpiFlashCommonLibNull. > inf > - > MinPlatformPkg/FspWrapper/SaveMemoryConfig/SaveMemoryConfig.inf >=20 > MinPlatformPkg/FspWrapper/Library/PeiFspWrapperHobProcessLib/PeiFspWrap > perHobProcessLib.inf >=20 > MinPlatformPkg/FspWrapper/Library/SecFspWrapperPlatformSecLib/SecFspWra > pperPlatformSecLib.inf > -- > 2.28.0.windows.1 >=20 >=20 >=20 > -=3D-=3D-=3D-=3D-=3D-=3D > Groups.io Links: You receive all messages sent to this group. > View/Reply Online (#77127): https://edk2.groups.io/g/devel/message/77127 > Mute This Topic: https://groups.io/mt/83794819/1777047 > Group Owner: devel+owner@edk2.groups.io > Unsubscribe: https://edk2.groups.io/g/devel/unsub [chasel.chiu@intel.com] > -=3D-=3D-=3D-=3D-=3D-=3D >=20