From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail05.groups.io (mail05.groups.io [45.79.224.7]) by spool.mail.gandi.net (Postfix) with ESMTPS id E4521941952 for ; Tue, 23 Apr 2024 14:55:57 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=/AIvUFY6qCteat42jQpUBCeP8TnEMoD7uO+vhwWG1Vo=; c=relaxed/simple; d=groups.io; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Resent-Date:Resent-From:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding; s=20240206; t=1713884156; v=1; b=aHlUbHwkzuLLzI/ik1D03kaBOMxfqS7HmINnkSZFQ4zK9X687BfoFpqHWjBwEoSjykBHpP3P 4VtXWsB8yt2e0+fU0BAHw+zL0VfTfPqBEvLwyoedxFZXH6pm/WbBoR3Dr2kSsC1Dp8UU04tU73x rxy1xTquhfK1YA+lfPwqQP4cNbqG2kWhvadntgKpiAcgOjT4RJAGQMca3D4adTXobcEdWf338p4 eDeduwsEIxvgXItImL4jbexkqaY8VYsQQDIxygVgLC6ZUpbl1gAbQITg98Gg4UipGJwvSu3/unm z03eMXGmsVFmDUwBEW2pOcEvmqju+s8SgojYfndSuPZCQ== X-Received: by 127.0.0.2 with SMTP id skDzYY7687511xj7YXYnOn85; Tue, 23 Apr 2024 07:55:56 -0700 X-Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.web11.11902.1713851817258022879 for ; Mon, 22 Apr 2024 22:56:57 -0700 X-Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id F18771477; Mon, 22 Apr 2024 22:57:24 -0700 (PDT) X-Received: from usa.arm.com (a077434.arm.com [10.162.46.143]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 09A563F7BD; Mon, 22 Apr 2024 22:56:54 -0700 (PDT) From: "Sahil Kaushal" To: devel@edk2.groups.io Cc: Ard Biesheuvel , =?UTF-8?q?Leif=20Lindholm=20=C2=A0?= , Sami Mujawar , =?UTF-8?q?sahil=20=C2=A0?= Subject: [edk2-devel] [PATCH RESEND edk2-platforms][PATCH V2 03/14] Platform/ARM/NorFlashDxe: Add NorFlashCommon.h header file Date: Tue, 23 Apr 2024 11:26:27 +0530 Message-Id: <20240423055638.1271531-4-Sahil.Kaushal@arm.com> In-Reply-To: <20240423055638.1271531-1-Sahil.Kaushal@arm.com> References: <20240423055638.1271531-1-Sahil.Kaushal@arm.com> MIME-Version: 1.0 Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Resent-Date: Tue, 23 Apr 2024 07:55:50 -0700 Resent-From: sahil.kaushal@arm.com Reply-To: devel@edk2.groups.io,sahil.kaushal@arm.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: R5bppxqSQoaTgNr6E4OJPBbDx7686176AA= Content-Transfer-Encoding: quoted-printable X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20240206 header.b=aHlUbHwk; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=arm.com (policy=none); spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 45.79.224.7 as permitted sender) smtp.mailfrom=bounce@groups.io From: sahil This patch splits NorFlash.h and adds NorFlashCommon.h which will have all the flash independent functions and macros. Whereas all the flash specific functions will be in NorFlash.h header file. Signed-off-by: sahil --- Platform/ARM/Drivers/NorFlashDxe/NorFlashDxe.inf | 1 + Platform/ARM/Drivers/NorFlashDxe/NorFlashStandaloneMm.inf | 1 + Platform/ARM/Drivers/NorFlashDxe/NorFlash.h | 199 ----------= -------- Platform/ARM/Drivers/NorFlashDxe/NorFlashCommon.h | 221 ++++++++++= ++++++++++ Platform/ARM/Drivers/NorFlashDxe/NorFlash.c | 1 + Platform/ARM/Drivers/NorFlashDxe/NorFlashBlockIoDxe.c | 1 + Platform/ARM/Drivers/NorFlashDxe/NorFlashDxe.c | 1 + Platform/ARM/Drivers/NorFlashDxe/NorFlashFvb.c | 1 + Platform/ARM/Drivers/NorFlashDxe/NorFlashStandaloneMm.c | 1 + 9 files changed, 228 insertions(+), 199 deletions(-) diff --git a/Platform/ARM/Drivers/NorFlashDxe/NorFlashDxe.inf b/Platform/AR= M/Drivers/NorFlashDxe/NorFlashDxe.inf index cdf1f5c27f35..18e99bac8888 100644 --- a/Platform/ARM/Drivers/NorFlashDxe/NorFlashDxe.inf +++ b/Platform/ARM/Drivers/NorFlashDxe/NorFlashDxe.inf @@ -21,6 +21,7 @@ NorFlash.h=0D NorFlashBlockIoDxe.c=0D NorFlashDxe.c=0D + NorFlashCommon.h=0D NorFlashFvb.c=0D =0D [Packages]=0D diff --git a/Platform/ARM/Drivers/NorFlashDxe/NorFlashStandaloneMm.inf b/Pl= atform/ARM/Drivers/NorFlashDxe/NorFlashStandaloneMm.inf index 001f281220f2..69c40ccf9c27 100644 --- a/Platform/ARM/Drivers/NorFlashDxe/NorFlashStandaloneMm.inf +++ b/Platform/ARM/Drivers/NorFlashDxe/NorFlashStandaloneMm.inf @@ -22,6 +22,7 @@ NorFlash.c=0D NorFlash.h=0D NorFlashFvb.c=0D + NorFlashCommon.h=0D NorFlashStandaloneMm.c=0D =0D [Packages]=0D diff --git a/Platform/ARM/Drivers/NorFlashDxe/NorFlash.h b/Platform/ARM/Dri= vers/NorFlashDxe/NorFlash.h index d4d97bd22cc5..e0ebb1e2fd35 100644 --- a/Platform/ARM/Drivers/NorFlashDxe/NorFlash.h +++ b/Platform/ARM/Drivers/NorFlashDxe/NorFlash.h @@ -20,9 +20,6 @@ =0D #include =0D #include =0D -#include =0D -#include =0D -#include =0D =0D #define NOR_FLASH_ERASE_RETRY 10=0D =0D @@ -108,11 +105,6 @@ #define P30_CMD_READ_CONFIGURATION_REGISTER_SETUP 0x0060=0D #define P30_CMD_READ_CONFIGURATION_REGISTER 0x0003=0D =0D -#define NOR_FLASH_SIGNATURE SIGNATURE_32('n', 'o', 'r', '0')=0D -#define INSTANCE_FROM_FVB_THIS(a) CR(a, NOR_FLASH_INSTANCE, FvbProtoco= l, NOR_FLASH_SIGNATURE)=0D -#define INSTANCE_FROM_BLKIO_THIS(a) CR(a, NOR_FLASH_INSTANCE, BlockIoPro= tocol, NOR_FLASH_SIGNATURE)=0D -#define INSTANCE_FROM_DISKIO_THIS(a) CR(a, NOR_FLASH_INSTANCE, DiskIoProt= ocol, NOR_FLASH_SIGNATURE)=0D -=0D typedef struct _NOR_FLASH_INSTANCE NOR_FLASH_INSTANCE;=0D =0D #pragma pack (1)=0D @@ -158,197 +150,6 @@ NorFlashWriteBuffer ( IN UINT32 *Buffer=0D );=0D =0D -//=0D -// BlockIO Protocol function EFI_BLOCK_IO_PROTOCOL.Reset=0D -//=0D -EFI_STATUS=0D -EFIAPI=0D -NorFlashBlockIoReset (=0D - IN EFI_BLOCK_IO_PROTOCOL *This,=0D - IN BOOLEAN ExtendedVerification=0D - );=0D -=0D -//=0D -// BlockIO Protocol function EFI_BLOCK_IO_PROTOCOL.ReadBlocks=0D -//=0D -EFI_STATUS=0D -EFIAPI=0D -NorFlashBlockIoReadBlocks (=0D - IN EFI_BLOCK_IO_PROTOCOL *This,=0D - IN UINT32 MediaId,=0D - IN EFI_LBA Lba,=0D - IN UINTN BufferSizeInBytes,=0D - OUT VOID *Buffer=0D - );=0D -=0D -//=0D -// BlockIO Protocol function EFI_BLOCK_IO_PROTOCOL.WriteBlocks=0D -//=0D -EFI_STATUS=0D -EFIAPI=0D -NorFlashBlockIoWriteBlocks (=0D - IN EFI_BLOCK_IO_PROTOCOL *This,=0D - IN UINT32 MediaId,=0D - IN EFI_LBA Lba,=0D - IN UINTN BufferSizeInBytes,=0D - IN VOID *Buffer=0D - );=0D -=0D -//=0D -// BlockIO Protocol function EFI_BLOCK_IO_PROTOCOL.FlushBlocks=0D -//=0D -EFI_STATUS=0D -EFIAPI=0D -NorFlashBlockIoFlushBlocks (=0D - IN EFI_BLOCK_IO_PROTOCOL *This=0D - );=0D -=0D -//=0D -// DiskIO Protocol function EFI_DISK_IO_PROTOCOL.ReadDisk=0D -//=0D -EFI_STATUS=0D -EFIAPI=0D -NorFlashDiskIoReadDisk (=0D - IN EFI_DISK_IO_PROTOCOL *This,=0D - IN UINT32 MediaId,=0D - IN UINT64 Offset,=0D - IN UINTN BufferSize,=0D - OUT VOID *Buffer=0D - );=0D -=0D -//=0D -// DiskIO Protocol function EFI_DISK_IO_PROTOCOL.WriteDisk=0D -//=0D -EFI_STATUS=0D -EFIAPI=0D -NorFlashDiskIoWriteDisk (=0D - IN EFI_DISK_IO_PROTOCOL *This,=0D - IN UINT32 MediaId,=0D - IN UINT64 Offset,=0D - IN UINTN BufferSize,=0D - IN VOID *Buffer=0D - );=0D -=0D -//=0D -// NorFlashFvbDxe.c=0D -//=0D -=0D -EFI_STATUS=0D -EFIAPI=0D -FvbGetAttributes (=0D - IN CONST EFI_FIRMWARE_VOLUME_BLOCK2_PROTOCOL *This,=0D - OUT EFI_FVB_ATTRIBUTES_2 *Attributes=0D - );=0D -=0D -EFI_STATUS=0D -EFIAPI=0D -FvbSetAttributes (=0D - IN CONST EFI_FIRMWARE_VOLUME_BLOCK2_PROTOCOL *This,=0D - IN OUT EFI_FVB_ATTRIBUTES_2 *Attributes=0D - );=0D -=0D -EFI_STATUS=0D -EFIAPI=0D -FvbGetPhysicalAddress (=0D - IN CONST EFI_FIRMWARE_VOLUME_BLOCK2_PROTOCOL *This,=0D - OUT EFI_PHYSICAL_ADDRESS *Address=0D - );=0D -=0D -EFI_STATUS=0D -EFIAPI=0D -FvbGetBlockSize (=0D - IN CONST EFI_FIRMWARE_VOLUME_BLOCK2_PROTOCOL *This,=0D - IN EFI_LBA Lba,=0D - OUT UINTN *BlockSize,=0D - OUT UINTN *NumberOfBlocks=0D - );=0D -=0D -EFI_STATUS=0D -EFIAPI=0D -FvbRead (=0D - IN CONST EFI_FIRMWARE_VOLUME_BLOCK2_PROTOCOL *This,=0D - IN EFI_LBA Lba,=0D - IN UINTN Offset,=0D - IN OUT UINTN *NumBytes,=0D - IN OUT UINT8 *Buffer=0D - );=0D -=0D -EFI_STATUS=0D -EFIAPI=0D -FvbWrite (=0D - IN CONST EFI_FIRMWARE_VOLUME_BLOCK2_PROTOCOL *This,=0D - IN EFI_LBA Lba,=0D - IN UINTN Offset,=0D - IN OUT UINTN *NumBytes,=0D - IN UINT8 *Buffer=0D - );=0D -=0D -EFI_STATUS=0D -EFIAPI=0D -FvbEraseBlocks (=0D - IN CONST EFI_FIRMWARE_VOLUME_BLOCK2_PROTOCOL *This,=0D - ...=0D - );=0D -=0D -EFI_STATUS=0D -ValidateFvHeader (=0D - IN NOR_FLASH_INSTANCE *Instance=0D - );=0D -=0D -EFI_STATUS=0D -InitializeFvAndVariableStoreHeaders (=0D - IN NOR_FLASH_INSTANCE *Instance=0D - );=0D -=0D -VOID=0D -EFIAPI=0D -FvbVirtualNotifyEvent (=0D - IN EFI_EVENT Event,=0D - IN VOID *Context=0D - );=0D -=0D -//=0D -// NorFlashDxe.c=0D -//=0D -=0D -EFI_STATUS=0D -NorFlashWriteFullBlock (=0D - IN NOR_FLASH_INSTANCE *Instance,=0D - IN EFI_LBA Lba,=0D - IN UINT32 *DataBuffer,=0D - IN UINT32 BlockSizeInWords=0D - );=0D -=0D -EFI_STATUS=0D -NorFlashUnlockAndEraseSingleBlock (=0D - IN NOR_FLASH_INSTANCE *Instance,=0D - IN UINTN BlockAddress=0D - );=0D -=0D -EFI_STATUS=0D -NorFlashCreateInstance (=0D - IN UINTN NorFlashDeviceBase,=0D - IN UINTN NorFlashRegionBase,=0D - IN UINTN NorFlashSize,=0D - IN UINT32 Index,=0D - IN UINT32 BlockSize,=0D - IN BOOLEAN SupportFvb,=0D - OUT NOR_FLASH_INSTANCE **NorFlashInstance=0D - );=0D -=0D -EFI_STATUS=0D -EFIAPI=0D -NorFlashFvbInitialize (=0D - IN NOR_FLASH_INSTANCE *Instance=0D - );=0D -=0D -VOID=0D -EFIAPI=0D -NorFlashVirtualNotifyEvent (=0D - IN EFI_EVENT Event,=0D - IN VOID *Context=0D - );=0D -=0D //=0D // NorFlash.c=0D //=0D diff --git a/Platform/ARM/Drivers/NorFlashDxe/NorFlashCommon.h b/Platform/A= RM/Drivers/NorFlashDxe/NorFlashCommon.h new file mode 100644 index 000000000000..e329e0727617 --- /dev/null +++ b/Platform/ARM/Drivers/NorFlashDxe/NorFlashCommon.h @@ -0,0 +1,221 @@ +/** @file=0D +=0D + Copyright (c) 2011-2024, Arm Limited. All rights reserved.
=0D +=0D + SPDX-License-Identifier: BSD-2-Clause-Patent=0D +=0D +**/=0D +=0D +#ifndef NOR_FLASH_COMMON_H_=0D +#define NOR_FLASH_COMMON_H_=0D +=0D +#include =0D +#include =0D +=0D +#include =0D +=0D +#include =0D +#include =0D +#include =0D +=0D +#include =0D +#include =0D +#include =0D +#include =0D +=0D +#define NOR_FLASH_SIGNATURE SIGNATURE_32('n', 'o', 'r', '0')=0D +#define INSTANCE_FROM_FVB_THIS(a) CR(a, NOR_FLASH_INSTANCE, FvbProtoco= l, NOR_FLASH_SIGNATURE)=0D +#define INSTANCE_FROM_BLKIO_THIS(a) CR(a, NOR_FLASH_INSTANCE, BlockIoPro= tocol, NOR_FLASH_SIGNATURE)=0D +#define INSTANCE_FROM_DISKIO_THIS(a) CR(a, NOR_FLASH_INSTANCE, DiskIoProt= ocol, NOR_FLASH_SIGNATURE)=0D +=0D +//=0D +// NorFlashDxe.c=0D +//=0D +EFI_STATUS=0D +NorFlashWriteFullBlock (=0D + IN NOR_FLASH_INSTANCE *Instance,=0D + IN EFI_LBA Lba,=0D + IN UINT32 *DataBuffer,=0D + IN UINT32 BlockSizeInWords=0D + );=0D +=0D +EFI_STATUS=0D +NorFlashUnlockAndEraseSingleBlock (=0D + IN NOR_FLASH_INSTANCE *Instance,=0D + IN UINTN BlockAddress=0D + );=0D +=0D +EFI_STATUS=0D +NorFlashCreateInstance (=0D + IN UINTN NorFlashDeviceBase,=0D + IN UINTN NorFlashRegionBase,=0D + IN UINTN NorFlashSize,=0D + IN UINT32 Index,=0D + IN UINT32 BlockSize,=0D + IN BOOLEAN SupportFvb,=0D + OUT NOR_FLASH_INSTANCE **NorFlashInstance=0D + );=0D +=0D +EFI_STATUS=0D +EFIAPI=0D +NorFlashFvbInitialize (=0D + IN NOR_FLASH_INSTANCE *Instance=0D + );=0D +=0D +VOID=0D +EFIAPI=0D +NorFlashVirtualNotifyEvent (=0D + IN EFI_EVENT Event,=0D + IN VOID *Context=0D + );=0D +=0D +//=0D +// BlockIO Protocol function EFI_BLOCK_IO_PROTOCOL.Reset=0D +//=0D +EFI_STATUS=0D +EFIAPI=0D +NorFlashBlockIoReset (=0D + IN EFI_BLOCK_IO_PROTOCOL *This,=0D + IN BOOLEAN ExtendedVerification=0D + );=0D +=0D +//=0D +// BlockIO Protocol function EFI_BLOCK_IO_PROTOCOL.ReadBlocks=0D +//=0D +EFI_STATUS=0D +EFIAPI=0D +NorFlashBlockIoReadBlocks (=0D + IN EFI_BLOCK_IO_PROTOCOL *This,=0D + IN UINT32 MediaId,=0D + IN EFI_LBA Lba,=0D + IN UINTN BufferSizeInBytes,=0D + OUT VOID *Buffer=0D + );=0D +=0D +//=0D +// BlockIO Protocol function EFI_BLOCK_IO_PROTOCOL.WriteBlocks=0D +//=0D +EFI_STATUS=0D +EFIAPI=0D +NorFlashBlockIoWriteBlocks (=0D + IN EFI_BLOCK_IO_PROTOCOL *This,=0D + IN UINT32 MediaId,=0D + IN EFI_LBA Lba,=0D + IN UINTN BufferSizeInBytes,=0D + IN VOID *Buffer=0D + );=0D +=0D +//=0D +// BlockIO Protocol function EFI_BLOCK_IO_PROTOCOL.FlushBlocks=0D +//=0D +EFI_STATUS=0D +EFIAPI=0D +NorFlashBlockIoFlushBlocks (=0D + IN EFI_BLOCK_IO_PROTOCOL *This=0D + );=0D +=0D +//=0D +// DiskIO Protocol function EFI_DISK_IO_PROTOCOL.ReadDisk=0D +//=0D +EFI_STATUS=0D +EFIAPI=0D +NorFlashDiskIoReadDisk (=0D + IN EFI_DISK_IO_PROTOCOL *This,=0D + IN UINT32 MediaId,=0D + IN UINT64 Offset,=0D + IN UINTN BufferSize,=0D + OUT VOID *Buffer=0D + );=0D +=0D +//=0D +// DiskIO Protocol function EFI_DISK_IO_PROTOCOL.WriteDisk=0D +//=0D +EFI_STATUS=0D +EFIAPI=0D +NorFlashDiskIoWriteDisk (=0D + IN EFI_DISK_IO_PROTOCOL *This,=0D + IN UINT32 MediaId,=0D + IN UINT64 Offset,=0D + IN UINTN BufferSize,=0D + IN VOID *Buffer=0D + );=0D +=0D +//=0D +// NorFlashFvbDxe.c=0D +//=0D +=0D +EFI_STATUS=0D +EFIAPI=0D +FvbGetAttributes (=0D + IN CONST EFI_FIRMWARE_VOLUME_BLOCK2_PROTOCOL *This,=0D + OUT EFI_FVB_ATTRIBUTES_2 *Attributes=0D + );=0D +=0D +EFI_STATUS=0D +EFIAPI=0D +FvbSetAttributes (=0D + IN CONST EFI_FIRMWARE_VOLUME_BLOCK2_PROTOCOL *This,=0D + IN OUT EFI_FVB_ATTRIBUTES_2 *Attributes=0D + );=0D +=0D +EFI_STATUS=0D +EFIAPI=0D +FvbGetPhysicalAddress (=0D + IN CONST EFI_FIRMWARE_VOLUME_BLOCK2_PROTOCOL *This,=0D + OUT EFI_PHYSICAL_ADDRESS *Address=0D + );=0D +=0D +EFI_STATUS=0D +EFIAPI=0D +FvbGetBlockSize (=0D + IN CONST EFI_FIRMWARE_VOLUME_BLOCK2_PROTOCOL *This,=0D + IN EFI_LBA Lba,=0D + OUT UINTN *BlockSize,=0D + OUT UINTN *NumberOfBlocks=0D + );=0D +=0D +EFI_STATUS=0D +EFIAPI=0D +FvbRead (=0D + IN CONST EFI_FIRMWARE_VOLUME_BLOCK2_PROTOCOL *This,=0D + IN EFI_LBA Lba,=0D + IN UINTN Offset,=0D + IN OUT UINTN *NumBytes,=0D + IN OUT UINT8 *Buffer=0D + );=0D +=0D +EFI_STATUS=0D +EFIAPI=0D +FvbWrite (=0D + IN CONST EFI_FIRMWARE_VOLUME_BLOCK2_PROTOCOL *This,=0D + IN EFI_LBA Lba,=0D + IN UINTN Offset,=0D + IN OUT UINTN *NumBytes,=0D + IN UINT8 *Buffer=0D + );=0D +=0D +EFI_STATUS=0D +EFIAPI=0D +FvbEraseBlocks (=0D + IN CONST EFI_FIRMWARE_VOLUME_BLOCK2_PROTOCOL *This,=0D + ...=0D + );=0D +=0D +EFI_STATUS=0D +ValidateFvHeader (=0D + IN NOR_FLASH_INSTANCE *Instance=0D + );=0D +=0D +EFI_STATUS=0D +InitializeFvAndVariableStoreHeaders (=0D + IN NOR_FLASH_INSTANCE *Instance=0D + );=0D +=0D +VOID=0D +EFIAPI=0D +FvbVirtualNotifyEvent (=0D + IN EFI_EVENT Event,=0D + IN VOID *Context=0D + );=0D +=0D +#endif /* NOR_FLASH_COMMON_H_ */=0D diff --git a/Platform/ARM/Drivers/NorFlashDxe/NorFlash.c b/Platform/ARM/Dri= vers/NorFlashDxe/NorFlash.c index 55f6abd0eef3..4e5a97c83c7b 100644 --- a/Platform/ARM/Drivers/NorFlashDxe/NorFlash.c +++ b/Platform/ARM/Drivers/NorFlashDxe/NorFlash.c @@ -10,6 +10,7 @@ #include =0D =0D #include "NorFlash.h"=0D +#include "NorFlashCommon.h"=0D =0D //=0D // Global variable declarations=0D diff --git a/Platform/ARM/Drivers/NorFlashDxe/NorFlashBlockIoDxe.c b/Platfo= rm/ARM/Drivers/NorFlashDxe/NorFlashBlockIoDxe.c index 9b8c76a171d4..a6c73312c596 100644 --- a/Platform/ARM/Drivers/NorFlashDxe/NorFlashBlockIoDxe.c +++ b/Platform/ARM/Drivers/NorFlashDxe/NorFlashBlockIoDxe.c @@ -10,6 +10,7 @@ #include =0D =0D #include "NorFlash.h"=0D +#include "NorFlashCommon.h"=0D =0D //=0D // BlockIO Protocol function EFI_BLOCK_IO_PROTOCOL.Reset=0D diff --git a/Platform/ARM/Drivers/NorFlashDxe/NorFlashDxe.c b/Platform/ARM/= Drivers/NorFlashDxe/NorFlashDxe.c index 963af7dcf435..b1e01169c24e 100644 --- a/Platform/ARM/Drivers/NorFlashDxe/NorFlashDxe.c +++ b/Platform/ARM/Drivers/NorFlashDxe/NorFlashDxe.c @@ -15,6 +15,7 @@ #include =0D =0D #include "NorFlash.h"=0D +#include "NorFlashCommon.h"=0D =0D STATIC EFI_EVENT mNorFlashVirtualAddrChangeEvent;=0D =0D diff --git a/Platform/ARM/Drivers/NorFlashDxe/NorFlashFvb.c b/Platform/ARM/= Drivers/NorFlashDxe/NorFlashFvb.c index 0767581308d2..f9f2856e0c81 100644 --- a/Platform/ARM/Drivers/NorFlashDxe/NorFlashFvb.c +++ b/Platform/ARM/Drivers/NorFlashDxe/NorFlashFvb.c @@ -19,6 +19,7 @@ #include =0D =0D #include "NorFlash.h"=0D +#include "NorFlashCommon.h"=0D =0D extern UINTN mFlashNvStorageVariableBase;=0D ///=0D diff --git a/Platform/ARM/Drivers/NorFlashDxe/NorFlashStandaloneMm.c b/Plat= form/ARM/Drivers/NorFlashDxe/NorFlashStandaloneMm.c index b72ad97b0b55..f2919265139b 100644 --- a/Platform/ARM/Drivers/NorFlashDxe/NorFlashStandaloneMm.c +++ b/Platform/ARM/Drivers/NorFlashDxe/NorFlashStandaloneMm.c @@ -12,6 +12,7 @@ #include =0D =0D #include "NorFlash.h"=0D +#include "NorFlashCommon.h"=0D =0D //=0D // Global variable declarations=0D --=20 2.25.1 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#118153): https://edk2.groups.io/g/devel/message/118153 Mute This Topic: https://groups.io/mt/105690938/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-