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.web11.8840.1621414113077386428 for ; Wed, 19 May 2021 01:48:33 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@intel.onmicrosoft.com header.s=selector2-intel-onmicrosoft-com header.b=WzejQq9F; spf=pass (domain: intel.com, ip: 134.134.136.65, mailfrom: chasel.chiu@intel.com) IronPort-SDR: vnXTuV0HMhl3Zj9g0KoE4jaZ+N0QBwSyReYfQXnkMWCRhQUPNbvhM0qrlZTCptIcct2dkxYCx9 1ImxJzJ2vFpQ== X-IronPort-AV: E=McAfee;i="6200,9189,9988"; a="200985863" X-IronPort-AV: E=Sophos;i="5.82,312,1613462400"; d="scan'208";a="200985863" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 May 2021 01:48:31 -0700 IronPort-SDR: oZwBQ9zdVvKYHJ2yvgLsXA0iNtPX5LqLBqVEZczwIe2a+J81ZOU8yaYoHxZ6wLEa3cetuBi8js 8w5U9hDTFyAw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.82,312,1613462400"; d="scan'208";a="544469614" Received: from fmsmsx604.amr.corp.intel.com ([10.18.126.84]) by orsmga004.jf.intel.com with ESMTP; 19 May 2021 01:48:31 -0700 Received: from fmsmsx601.amr.corp.intel.com (10.18.126.81) by fmsmsx604.amr.corp.intel.com (10.18.126.84) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.4; Wed, 19 May 2021 01:48:30 -0700 Received: from FMSEDG603.ED.cps.intel.com (10.1.192.133) by fmsmsx601.amr.corp.intel.com (10.18.126.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.4 via Frontend Transport; Wed, 19 May 2021 01:48:30 -0700 Received: from NAM02-BN1-obe.outbound.protection.outlook.com (104.47.51.40) by edgegateway.intel.com (192.55.55.68) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2106.2; Wed, 19 May 2021 01:48:30 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CNNdzWJNwb0fn97lrRHq82SRX7a5Ewx0wfQi9sfzJg/DQuk5kSlKTGo7PbZudw5f+ifknouU02I9c2YbfzAUpYjapcx/C9QrZXgEWBUwucao33cMs1lvnamDHRAZp8U6fclm8cF5b3LdjW9tVFPi5OHCdHPyEp8gcoQvAk1mkfeTggz02/cJC0/92hpYtT9Ti376WU+icXeT9nkltQqNaMbYOGzlizKmdXmQG2N81SY2Yz+ca8BqFPsqCjNO0Y5rzVVeFXEHJDj+McU6+ymh34OIcFH33IJFQ2nXynfLjdvKVlVAAtnBfB2zb2Lzu2J8m4rJRjrvIiEwTTFZ/vraTg== 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=FcHGWbGt2zW5r8MrbL1I+lToPadszhGaSBIrUHMl2dI=; b=gKIAjkpOU7sLKqPHv6xVuUiqH/QCKwA8r1CzDsg+7aY80PatsZNxcQRlQVWEiX1O9EckLHadEGyEqGFXFHq3zYodvsNNijDKlULC5bW4LkGIwMNVm7yYx7s4f5DvkXtqCGDF6a54/tFOs7Js1x4AkM552/o68TObw4jD8otyOzLQFmCBUVZKKNDIhEK6Nw26LUxPe+N5zm6PvYvmJ+ykHX0fxdtl8dZv7QJarQDUYJcfj45cH6fw4ioqCwPA+cmRkVoKC4lDkXMlrEAM4BEodiKkHeHKOizyXXWB6mfGGQ4/ov4auKE81uVcPqV+CIq7HkwX8CxZfqAbMGcBqeLVVg== 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=FcHGWbGt2zW5r8MrbL1I+lToPadszhGaSBIrUHMl2dI=; b=WzejQq9F2+weEfsoEn9LCpHwgce+uzRqGxDZkPzLjUJbviPoV7trt2Gx7Ae+LIg/HJ9xwjFzXZRab/RPuUaNNB6HV2KUSAfvu/d3V/y8nXRsXDKSNE79vsCkqVIGLj1efCuZu3zbUzc/5SnPy79LnNpVJcVCnC/eIPp5yXdKXKM= Received: from SN6PR11MB2814.namprd11.prod.outlook.com (2603:10b6:805:55::15) by SA0PR11MB4640.namprd11.prod.outlook.com (2603:10b6:806:9b::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4129.25; Wed, 19 May 2021 08:48:29 +0000 Received: from SN6PR11MB2814.namprd11.prod.outlook.com ([fe80::6157:b65c:53b6:a320]) by SN6PR11MB2814.namprd11.prod.outlook.com ([fe80::6157:b65c:53b6:a320%6]) with mapi id 15.20.4129.033; Wed, 19 May 2021 08:48:29 +0000 From: "Chiu, Chasel" To: "mikuback@linux.microsoft.com" , "devel@edk2.groups.io" CC: "Desimone, Nathaniel L" , Liming Gao , "Dong, Eric" Subject: Re: [edk2-platforms][PATCH v2 30/35] MinPlatformPkg: Remove SpiFlashCommonLibNull Thread-Topic: [edk2-platforms][PATCH v2 30/35] MinPlatformPkg: Remove SpiFlashCommonLibNull Thread-Index: AQHXTGOe08bDY+jFCU+KgRlm9/gYQqrqfqSw Date: Wed, 19 May 2021 08:48:29 +0000 Message-ID: References: <20210519035947.1234-1-mikuback@linux.microsoft.com> <20210519035947.1234-31-mikuback@linux.microsoft.com> In-Reply-To: <20210519035947.1234-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: linux.microsoft.com; dkim=none (message not signed) header.d=none;linux.microsoft.com; dmarc=none action=none header.from=intel.com; x-originating-ip: [114.43.45.8] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: c38158e5-0b17-4703-2122-08d91aa2dfd9 x-ms-traffictypediagnostic: SA0PR11MB4640: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:9508; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: hazWSR5rh36FSBrAnfsRcXPfoxdRLHntN9rVryThIhII2igneaUTHI6x+jIsbvyjIe5pn3NbVQYvfeXF38vt23aMgq8uCHIs251BRFXUt2POd8eP5Wnz8CRkd0H0o/+r1ldS3XICokXYmnKvpfnc4EqNpvZ0E+uO300vK+2VIQ9joDc1dopXA8hT9P4X0m6nnAcbt0qQQ22Zmae06tq4ewdqLLpzsuV83V/BPMO+iGbIpm4jE2K+ARQFFbz7bBKtO9kMhQQS7WyHMFPnnrIPpFBLP3Vn6kY/Qqe2j3X0cqNKbr1YhClJsL/Cj85qe+TpI9OpU96ifv1LKa+zfVt+BqXseb78KLYznfQVSEvpLV7+imFMGtFKjK5V+ivVyLjPtNFOxlIhYGU4HOHOW2udaUlLg456tUt55zQW9L3Y+tQRQyhFH3CkDUHFddO3y23LY/1J2g5RoweiH41F92cChbnaX49KRS52cPKfxST+R1EiLng1C3gYBczlf6J5s9pmLLLw+iEYPMAuYCIdLCwwXWzBCjKH7Q/j52vnTBuslQ5euttfwPmt/+FW8vdqlN3CamjmS0zlgu754CCcy98gOLJd5Q23Wt3QX5lbSPmqs2R8rb/fSsarsuyG45dOFMlynZVnVDnSo+tY2HfsFMiwlj1NEKz1/V1m2TiCWJ9vLaKOVB8mfuN4N48C8CvAgwEwMZhefX1xd6QA5hox1FYemsbIxxsc1573u3Je0OyCo9p1hGkDsnFMCExfR+a1kApY5WYiuFS+ThtgUG5m2gt9UqGFF3ii8+jbvxCBnHWrmBk= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SN6PR11MB2814.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(366004)(136003)(376002)(346002)(396003)(39850400004)(54906003)(76116006)(8936002)(38100700002)(110136005)(186003)(71200400001)(8676002)(6506007)(86362001)(33656002)(2906002)(122000001)(7696005)(66476007)(316002)(83380400001)(55016002)(66946007)(30864003)(9686003)(66446008)(26005)(478600001)(52536014)(53546011)(66556008)(107886003)(64756008)(4326008)(5660300002)(11716005)(213903007);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?hGcNykf4bUFbi3fe/XqqHB3ywen1c8R4vq1f1ZL8BuJ+MnBZNqMBOm+OGpWM?= =?us-ascii?Q?AvfYLtnAflJbBH6C1/1/B9gQrE5FM5W+z4i+YCCayhl+82Fm02vvSbxJXtNz?= =?us-ascii?Q?rmbreagF2RYrKTL4xNTga+TQtJ8ASrkXpI850f7WxtA5BZ8UMEUQ2a0chfkD?= =?us-ascii?Q?VEiOYPxZLXCGdv7ptD4fJVJB7flNgYyV9PH+AkBNOkoV0eI3VbB5rhaK4AzH?= =?us-ascii?Q?XgfUS9Dif9s4omgUoBNHCHPMfkuQ98H8g1UgRe3SuD3kcWMXTsCrK/tLw856?= =?us-ascii?Q?ojt90WKmrof94uwPQWW64f+mKT1r5V4DL8RKC9dSAuGotKu4wo2FFJijtHTn?= =?us-ascii?Q?7/cToL73k9AJrAiVSnyRW/ELOUihaeeMZMwUzjgq6BS4VQHWBgomHiDzFGbl?= =?us-ascii?Q?cTFbsA6ia7Q1BCrFBkSaT14TLBMadDX0I9cieMU6taRUU51dIDsjDamC5lcp?= =?us-ascii?Q?FiXCviLW6zcu+/Fy8fVQ+AKeSA8Hi3bQ/1R4ZuglWucnyKhyh+magFhkPM4w?= =?us-ascii?Q?vWgk2mTUQpxk/cDep28L5iYcISTT9s/wzh1yYGDZRdHtJIUcbq/FIn6QKe4X?= =?us-ascii?Q?JRWy7KCrDrKPhX3WPmvz4d/9OAu7MKo0xVGZ/1zZ8zzEjMYDgdqajIp/1Fi2?= =?us-ascii?Q?1XJ25Ddbz9v+3ExAJrD1xxfxphCxyl158y7U4EIkfwAr9n1SipmVJ+UHOV1y?= =?us-ascii?Q?GBsrExvGOB9FIWHOkl5cQ9piwTfSVVNAFnla0xMfeoS5hf0x46qrQWFWhGdW?= =?us-ascii?Q?f5uTNa8dR3wRI9EISR9R+wcevHJzRCHmNYCbBkSRb+GnQdnuEErsEVM2OjBO?= =?us-ascii?Q?y2NfbDMerRqYZ3zB1Tdu8cR0JNu59gROiUKBhwf9OxzYDmMGXnsFUAzU5Iyi?= =?us-ascii?Q?6LJRn2WEpVBOBZqSvFwNzmTvF917MpOVr+q7tdE2/K8EISifnezeIB1ECvR1?= =?us-ascii?Q?Do2qNccPK9tLUB3TiC4FA1WOHxdMkOUONQ/zF8kF+cgC+pUhNlaE8AgN4Ejs?= =?us-ascii?Q?phXJAyJ9lEsaMkyLwnQh/jX7H6RBQIi8cbSKVB0NRX7RFrvyExyZse7tVvMw?= =?us-ascii?Q?nLrV7JKbLlTz+LNlLgV1IKCS6+MU/bNYKHANAsC2EvlLIVaNJqPhHHifl4Ci?= =?us-ascii?Q?yET9EhPijFE7bsVph610SKV8jZJve/3vz0DJqBqV6lvSLslIeSKT/HMDh1M0?= =?us-ascii?Q?bvWu5tsbvvy9ROcNQ9dBDankMmzk1CXtV5GqQXwMcyEuHQZobemJ0vOb6n1v?= =?us-ascii?Q?iz9f1kfP5+csX9wxumCwjytt1g8JOKeRo+lOGaE1ot8orwTEwaJ6LmQ1jE05?= =?us-ascii?Q?hzI=3D?= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SN6PR11MB2814.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: c38158e5-0b17-4703-2122-08d91aa2dfd9 X-MS-Exchange-CrossTenant-originalarrivaltime: 19 May 2021 08:48:29.0809 (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: 9kgPWJ5a6Fq8Jv1yKJmC6asMmD2a/BngsazJsy0AU6/kshcW5EgkXJrqDdL5tVXntTYR+uez5V1xObiv+ZaJEw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA0PR11MB4640 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: mikuback@linux.microsoft.com > Sent: Wednesday, May 19, 2021 12:00 PM > To: devel@edk2.groups.io > Cc: Chiu, Chasel ; Desimone, Nathaniel L > ; Liming Gao ; > Dong, Eric > Subject: [edk2-platforms][PATCH v2 30/35] 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 > --- >=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