The RamDiskDxe now will report RAM disks with reserved memory type to NFIT in the ACPI table. This commit will also make sure that an NVDIMM root device exists in the \SB scope before reporting any RAM disk to NFIT. To properly report the NVDIMM root device, one will need to append the following content in the [Rule.Common.DXE_DRIVER] field in platform FDF files: RAW ACPI Optional |.acpi RAW ASL Optional |.aml Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hao Wu <hao.a.wu@intel.com> Reviewed-by: Feng Tian <feng.tian@intel.com> Reviewed-by: Samer El-Haj-Mahmoud <elhaj@hpe.com>
92 lines
3.1 KiB
INI
92 lines
3.1 KiB
INI
## @file
|
|
# Produces EFI_RAM_DISK_PROTOCOL and provides the capability to
|
|
# create/remove RAM disks in a setup browser.
|
|
#
|
|
# Copyright (c) 2016, Intel Corporation. All rights reserved.<BR>
|
|
# This program and the accompanying materials
|
|
# are licensed and made available under the terms and conditions of the BSD License
|
|
# which accompanies this distribution. The full text of the license may be found at
|
|
# http://opensource.org/licenses/bsd-license.php
|
|
#
|
|
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
#
|
|
##
|
|
|
|
[Defines]
|
|
INF_VERSION = 0x00010005
|
|
BASE_NAME = RamDiskDxe
|
|
MODULE_UNI_FILE = RamDiskDxe.uni
|
|
FILE_GUID = 28A03FF4-12B3-4305-A417-BB1A4F94081E
|
|
MODULE_TYPE = DXE_DRIVER
|
|
VERSION_STRING = 1.0
|
|
ENTRY_POINT = RamDiskDxeEntryPoint
|
|
UNLOAD_IMAGE = RamDiskDxeUnload
|
|
|
|
#
|
|
# The following information is for reference only and not required by the build tools.
|
|
#
|
|
# VALID_ARCHITECTURES = IA32 X64 IPF EBC
|
|
#
|
|
|
|
[Sources]
|
|
RamDiskDriver.c
|
|
RamDiskImpl.c
|
|
RamDiskBlockIo.c
|
|
RamDiskProtocol.c
|
|
RamDiskFileExplorer.c
|
|
RamDiskImpl.h
|
|
RamDiskHii.vfr
|
|
RamDiskHiiStrings.uni
|
|
RamDiskNVData.h
|
|
RamDisk.asl
|
|
|
|
[Packages]
|
|
MdePkg/MdePkg.dec
|
|
MdeModulePkg/MdeModulePkg.dec
|
|
|
|
[LibraryClasses]
|
|
BaseLib
|
|
BaseMemoryLib
|
|
DebugLib
|
|
UefiLib
|
|
UefiDriverEntryPoint
|
|
UefiBootServicesTableLib
|
|
UefiHiiServicesLib
|
|
MemoryAllocationLib
|
|
HiiLib
|
|
FileExplorerLib
|
|
DevicePathLib
|
|
PrintLib
|
|
PcdLib
|
|
DxeServicesLib
|
|
|
|
[Guids]
|
|
gEfiIfrTianoGuid ## PRODUCES ## GUID # HII opcode
|
|
## PRODUCES ## HII
|
|
## CONSUMES ## HII
|
|
gRamDiskFormSetGuid
|
|
gEfiVirtualDiskGuid ## SOMETIMES_CONSUMES ## GUID
|
|
gEfiFileInfoGuid ## SOMETIMES_CONSUMES ## GUID # Indicate the information type
|
|
|
|
[Protocols]
|
|
gEfiRamDiskProtocolGuid ## PRODUCES
|
|
gEfiHiiConfigAccessProtocolGuid ## PRODUCES
|
|
gEfiDevicePathProtocolGuid ## PRODUCES
|
|
gEfiBlockIoProtocolGuid ## PRODUCES
|
|
gEfiBlockIo2ProtocolGuid ## PRODUCES
|
|
gEfiSimpleFileSystemProtocolGuid ## SOMETIMES_CONSUMES
|
|
gEfiAcpiTableProtocolGuid ## SOMETIMES_CONSUMES
|
|
gEfiAcpiSdtProtocolGuid ## SOMETIMES_CONSUMES
|
|
|
|
[Pcd]
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdAcpiDefaultOemId ## SOMETIMES_CONSUMES
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdAcpiDefaultOemTableId ## SOMETIMES_CONSUMES
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdAcpiDefaultOemRevision ## SOMETIMES_CONSUMES
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdAcpiDefaultCreatorId ## SOMETIMES_CONSUMES
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdAcpiDefaultCreatorRevision ## SOMETIMES_CONSUMES
|
|
|
|
[Depex]
|
|
gEfiHiiConfigRoutingProtocolGuid AND
|
|
gEfiHiiDatabaseProtocolGuid
|