]> git.proxmox.com Git - mirror_edk2.git/commit - MdeModulePkg/Include/Guid/VariableFlashInfo.h
MdeModulePkg: Add Variable Flash Info HOB
authorMichael Kubacki <michael.kubacki@microsoft.com>
Wed, 6 Apr 2022 01:17:59 +0000 (21:17 -0400)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Thu, 19 May 2022 06:11:20 +0000 (06:11 +0000)
commit0903042b6601c7dd2162a5bb2d42ee119878e9f0
tree3c31ac30af466a998fe07f9f5dc52f5fa75fe4c5
parent2189c71026cba9dab768776a2f8ebf689b484c56
MdeModulePkg: Add Variable Flash Info HOB

REF:https://bugzilla.tianocore.org/show_bug.cgi?id=3479

Adds a new GUID that is used to identify a HOB that passes variable
flash information to UEFI variable drivers in HOB consumption phases
such as DXE, Traditional MM, and Standalone MM.

This information was previously passed directly with PCDs such
as EfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase
and gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize.

However, the Standalone MM variable driver instance does not have
direct access to the PCD database. Therefore, this HOB will first
be considered as the source for variable flash information and
if platforms do not produce the HOB, reading the information from
the PCDs directly will be a backup to provide backward
compatibility.

Cc: Jian J Wang <jian.j.wang@intel.com>
Cc: Hao A Wu <hao.a.wu@intel.com>
Cc: Liming Gao <gaoliming@byosoft.com.cn>
Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com>
Acked-by: Ard Biesheuvel <ardb@kernel.org>
Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
Reviewed-by: Sami Mujawar <sami.mujawar@arm.com>
MdeModulePkg/Include/Guid/VariableFlashInfo.h [new file with mode: 0644]
MdeModulePkg/MdeModulePkg.dec