2020-07-13 07:41:31 +02:00
|
|
|
## @file
|
|
|
|
# Platform PEI driver
|
|
|
|
#
|
|
|
|
# This module provides platform specific function to detect boot mode.
|
|
|
|
#
|
|
|
|
# Copyright (c) 2020, Rebecca Cran <rebecca@bsdio.com>
|
|
|
|
# Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: BSD-2-Clause-Patent
|
|
|
|
#
|
|
|
|
##
|
|
|
|
|
|
|
|
[Defines]
|
2020-11-30 06:34:12 +01:00
|
|
|
INF_VERSION = 1.29
|
2020-07-13 07:41:31 +02:00
|
|
|
BASE_NAME = PlatformPei
|
|
|
|
FILE_GUID = aa89d903-345b-4ab2-9abf-030b5efb5d50
|
|
|
|
MODULE_TYPE = PEIM
|
|
|
|
VERSION_STRING = 1.0
|
|
|
|
ENTRY_POINT = InitializePlatform
|
|
|
|
|
|
|
|
#
|
|
|
|
# The following information is for reference only and not required by the build tools.
|
|
|
|
#
|
|
|
|
# VALID_ARCHITECTURES = IA32 X64 EBC
|
|
|
|
#
|
|
|
|
|
|
|
|
[Sources]
|
|
|
|
AmdSev.c
|
|
|
|
ClearCache.c
|
|
|
|
Cmos.c
|
|
|
|
Cmos.h
|
|
|
|
FeatureControl.c
|
|
|
|
Fv.c
|
|
|
|
MemDetect.c
|
|
|
|
Platform.c
|
|
|
|
Platform.h
|
|
|
|
|
|
|
|
[Packages]
|
|
|
|
MdePkg/MdePkg.dec
|
|
|
|
MdeModulePkg/MdeModulePkg.dec
|
|
|
|
SecurityPkg/SecurityPkg.dec
|
|
|
|
UefiCpuPkg/UefiCpuPkg.dec
|
|
|
|
OvmfPkg/OvmfPkg.dec
|
|
|
|
|
|
|
|
[Guids]
|
|
|
|
gEfiMemoryTypeInformationGuid
|
|
|
|
|
|
|
|
[LibraryClasses]
|
|
|
|
BaseLib
|
|
|
|
CacheMaintenanceLib
|
|
|
|
DebugLib
|
|
|
|
HobLib
|
|
|
|
IoLib
|
2020-11-30 06:34:12 +01:00
|
|
|
LocalApicLib
|
|
|
|
MemEncryptSevLib
|
|
|
|
MtrrLib
|
2020-07-13 07:41:31 +02:00
|
|
|
PciLib
|
2020-11-30 06:34:12 +01:00
|
|
|
PeimEntryPoint
|
2020-07-13 07:41:31 +02:00
|
|
|
PeiServicesLib
|
|
|
|
PeiServicesTablePointerLib
|
|
|
|
PcdLib
|
2020-11-30 06:34:12 +01:00
|
|
|
ResourcePublicationLib
|
2020-07-13 07:41:31 +02:00
|
|
|
|
|
|
|
[Pcd]
|
|
|
|
gUefiOvmfPkgTokenSpaceGuid.PcdOvmfPeiMemFvBase
|
|
|
|
gUefiOvmfPkgTokenSpaceGuid.PcdOvmfPeiMemFvSize
|
|
|
|
gUefiOvmfPkgTokenSpaceGuid.PcdOvmfDxeMemFvBase
|
|
|
|
gUefiOvmfPkgTokenSpaceGuid.PcdOvmfDxeMemFvSize
|
|
|
|
gUefiOvmfPkgTokenSpaceGuid.PcdOvmfSecPeiTempRamBase
|
|
|
|
gUefiOvmfPkgTokenSpaceGuid.PcdOvmfSecPeiTempRamSize
|
|
|
|
gUefiOvmfPkgTokenSpaceGuid.PcdOvmfSecPageTablesBase
|
|
|
|
gUefiOvmfPkgTokenSpaceGuid.PcdOvmfSecPageTablesSize
|
|
|
|
gUefiOvmfPkgTokenSpaceGuid.PcdOvmfLockBoxStorageBase
|
|
|
|
gUefiOvmfPkgTokenSpaceGuid.PcdOvmfLockBoxStorageSize
|
|
|
|
gUefiOvmfPkgTokenSpaceGuid.PcdGuidedExtractHandlerTableSize
|
|
|
|
gUefiOvmfPkgTokenSpaceGuid.PcdOvmfHostBridgePciDevId
|
|
|
|
gUefiOvmfPkgTokenSpaceGuid.PcdPciIoBase
|
|
|
|
gUefiOvmfPkgTokenSpaceGuid.PcdPciIoSize
|
|
|
|
gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio32Base
|
|
|
|
gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio32Size
|
|
|
|
gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio64Base
|
|
|
|
gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio64Size
|
|
|
|
gUefiOvmfPkgTokenSpaceGuid.PcdOvmfDecompressionScratchEnd
|
|
|
|
gUefiOvmfPkgTokenSpaceGuid.PcdQ35TsegMbytes
|
|
|
|
gEfiMdePkgTokenSpaceGuid.PcdGuidedExtractHandlerTableAddress
|
|
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareSize
|
|
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize
|
|
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvStoreReserved
|
|
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSwitchToLongMode
|
|
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdUse1GPageTable
|
|
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdSetNxForStack
|
|
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdAcpiS3Enable
|
|
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdPteMemoryEncryptionAddressOrMask
|
|
|
|
gEfiSecurityPkgTokenSpaceGuid.PcdOptionRomImageVerificationPolicy
|
|
|
|
gUefiCpuPkgTokenSpaceGuid.PcdCpuLocalApicBaseAddress
|
|
|
|
gUefiCpuPkgTokenSpaceGuid.PcdCpuMaxLogicalProcessorNumber
|
|
|
|
gUefiCpuPkgTokenSpaceGuid.PcdCpuApInitTimeOutInMicroSeconds
|
|
|
|
gUefiCpuPkgTokenSpaceGuid.PcdCpuApStackSize
|
|
|
|
|
|
|
|
[FixedPcd]
|
|
|
|
gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress
|
|
|
|
|
|
|
|
[FeaturePcd]
|
|
|
|
gUefiOvmfPkgTokenSpaceGuid.PcdSmmSmramRequire
|
|
|
|
|
|
|
|
[Ppis]
|
|
|
|
gEfiPeiMasterBootModePpiGuid
|
|
|
|
gEfiPeiMpServicesPpiGuid
|
|
|
|
|
|
|
|
[Depex]
|
|
|
|
TRUE
|
|
|
|
|