mirror of
https://github.com/Dasharo/slimbootloader.git
synced 2026-06-14 04:16:15 -07:00
This patch implemented a common method for platform to create ACPI table dynamically. Platform can provide ACPI tempalte array through PCD PcdAcpiTableTemplatePtr. If provided, ACPI core code will try to call platform code to patch the table, and then install the table to ACPI RSDT/XSDT. It also added sample code implementation in QEMU to show case how to do it from platform code. Signed-off-by: Maurice Ma <maurice.ma@intel.com>
67 lines
1.8 KiB
INI
67 lines
1.8 KiB
INI
## @file
|
|
#
|
|
# Copyright (c) 2017 - 2019, Intel Corporation. All rights reserved.<BR>
|
|
# SPDX-License-Identifier: BSD-2-Clause-Patent
|
|
#
|
|
##
|
|
|
|
[Defines]
|
|
INF_VERSION = 0x00010005
|
|
BASE_NAME = AcpiInitLib
|
|
FILE_GUID = 952474C3-8CFC-428c-9D5F-118319E7C879
|
|
MODULE_TYPE = BASE
|
|
VERSION_STRING = 1.0
|
|
LIBRARY_CLASS = AcpiInitLib
|
|
|
|
#
|
|
# The following information is for reference only and not required by the build tools.
|
|
#
|
|
# VALID_ARCHITECTURES = IA32 X64 IPF
|
|
#
|
|
[Sources.IA32]
|
|
Ia32/S3Wake.nasm
|
|
|
|
[Sources.X64]
|
|
X64/S3Wake.nasm
|
|
|
|
[Sources]
|
|
AcpiInitLibInternal.h
|
|
AcpiInitLib.c
|
|
AcpiFpdt.c
|
|
AcpiBgrt.c
|
|
|
|
[Packages]
|
|
MdePkg/MdePkg.dec
|
|
IntelFsp2Pkg/IntelFsp2Pkg.dec
|
|
BootloaderCorePkg/BootloaderCorePkg.dec
|
|
BootloaderCommonPkg/BootloaderCommonPkg.dec
|
|
|
|
[LibraryClasses]
|
|
BaseLib
|
|
DebugLib
|
|
BootloaderCoreLib
|
|
DebugDataLib
|
|
MpInitLib
|
|
TimeStampLib
|
|
MemoryAllocationLib
|
|
|
|
[Guids]
|
|
gEsrtSystemFirmwareGuid
|
|
gCsmeFWUDriverImageFileGuid
|
|
|
|
[Pcd]
|
|
gPlatformModuleTokenSpaceGuid.PcdAcpiTablesRsdp
|
|
gPlatformModuleTokenSpaceGuid.PcdAcpiTablesMaxEntry
|
|
gPlatformModuleTokenSpaceGuid.PcdAcpiTablesAddress
|
|
gPlatformModuleTokenSpaceGuid.PcdAcpiGnvsAddress
|
|
gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress
|
|
gPlatformModuleTokenSpaceGuid.PcdS3DebugEnabled
|
|
gPlatformModuleTokenSpaceGuid.PcdAcpiGnvsAddress
|
|
gPlatformModuleTokenSpaceGuid.PcdLoaderAcpiReclaimSize
|
|
gPlatformCommonLibTokenSpaceGuid.PcdLowestSupportedFwVer
|
|
gPlatformModuleTokenSpaceGuid.PcdLegacyEfSegmentEnabled
|
|
gPlatformModuleTokenSpaceGuid.PcdSplashLogoAddress
|
|
gPlatformModuleTokenSpaceGuid.PcdSplashEnabled
|
|
gPlatformCommonLibTokenSpaceGuid.PcdCpuX2ApicEnabled
|
|
gPlatformModuleTokenSpaceGuid.PcdAcpiTableTemplatePtr
|