2019-08-13 13:30:48 +02:00
|
|
|
## @file
|
|
|
|
# Platform PEI driver
|
|
|
|
#
|
|
|
|
# This module provides platform specific function to detect boot mode.
|
|
|
|
# Copyright (c) 2006 - 2019, Intel Corporation. All rights reserved.<BR>
|
|
|
|
# Copyright (c) 2019, Citrix Systems, Inc.
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: BSD-2-Clause-Patent
|
|
|
|
#
|
|
|
|
##
|
|
|
|
|
|
|
|
[Defines]
|
|
|
|
INF_VERSION = 0x00010005
|
|
|
|
BASE_NAME = XenPlatformPei
|
|
|
|
FILE_GUID = f112a6ee-993a-4f0b-8295-e52029d9b4ba
|
|
|
|
MODULE_TYPE = PEIM
|
|
|
|
VERSION_STRING = 1.0
|
|
|
|
ENTRY_POINT = InitializeXenPlatform
|
|
|
|
|
|
|
|
#
|
|
|
|
# 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
|
|
|
|
Fv.c
|
|
|
|
MemDetect.c
|
|
|
|
Platform.c
|
|
|
|
Platform.h
|
|
|
|
Xen.c
|
|
|
|
Xen.h
|
|
|
|
|
|
|
|
[Packages]
|
|
|
|
MdePkg/MdePkg.dec
|
|
|
|
MdeModulePkg/MdeModulePkg.dec
|
|
|
|
SecurityPkg/SecurityPkg.dec
|
|
|
|
UefiCpuPkg/UefiCpuPkg.dec
|
|
|
|
OvmfPkg/OvmfPkg.dec
|
|
|
|
|
|
|
|
[Guids]
|
|
|
|
gEfiMemoryTypeInformationGuid
|
|
|
|
gEfiXenInfoGuid
|
|
|
|
|
|
|
|
[LibraryClasses]
|
|
|
|
BaseLib
|
|
|
|
CacheMaintenanceLib
|
|
|
|
DebugLib
|
|
|
|
HobLib
|
|
|
|
IoLib
|
2021-04-12 15:30:02 +02:00
|
|
|
LocalApicLib
|
2019-08-13 13:30:48 +02:00
|
|
|
PciLib
|
|
|
|
ResourcePublicationLib
|
|
|
|
PeiServicesLib
|
|
|
|
PeimEntryPoint
|
2021-08-31 03:31:12 +02:00
|
|
|
QemuFwCfgS3Lib
|
2019-08-13 13:30:48 +02:00
|
|
|
MtrrLib
|
|
|
|
MemEncryptSevLib
|
|
|
|
PcdLib
|
2021-04-12 15:30:02 +02:00
|
|
|
SafeIntLib
|
2019-08-13 13:31:01 +02:00
|
|
|
XenHypercallLib
|
2019-08-13 13:30:48 +02:00
|
|
|
|
|
|
|
[Pcd]
|
|
|
|
gUefiOvmfPkgTokenSpaceGuid.PcdOvmfPeiMemFvBase
|
|
|
|
gUefiOvmfPkgTokenSpaceGuid.PcdOvmfPeiMemFvSize
|
|
|
|
gUefiOvmfPkgTokenSpaceGuid.PcdOvmfDxeMemFvBase
|
|
|
|
gUefiOvmfPkgTokenSpaceGuid.PcdOvmfDxeMemFvSize
|
2021-04-12 15:30:01 +02:00
|
|
|
gUefiOvmfPkgTokenSpaceGuid.PcdOvmfSecPageTablesBase
|
2019-08-13 13:30:48 +02:00
|
|
|
gUefiOvmfPkgTokenSpaceGuid.PcdOvmfLockBoxStorageBase
|
|
|
|
gUefiOvmfPkgTokenSpaceGuid.PcdOvmfLockBoxStorageSize
|
|
|
|
gUefiOvmfPkgTokenSpaceGuid.PcdOvmfHostBridgePciDevId
|
|
|
|
gUefiOvmfPkgTokenSpaceGuid.PcdPciIoBase
|
|
|
|
gUefiOvmfPkgTokenSpaceGuid.PcdPciIoSize
|
|
|
|
gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio32Base
|
|
|
|
gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio32Size
|
|
|
|
gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio64Base
|
|
|
|
gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio64Size
|
|
|
|
gUefiOvmfPkgTokenSpaceGuid.PcdQ35TsegMbytes
|
2021-08-31 03:31:12 +02:00
|
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdAcpiS3Enable
|
2019-08-13 13:30:48 +02:00
|
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareSize
|
|
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvStoreReserved
|
|
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSwitchToLongMode
|
|
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdUse1GPageTable
|
|
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdPteMemoryEncryptionAddressOrMask
|
2021-04-12 15:30:03 +02:00
|
|
|
gEfiMdePkgTokenSpaceGuid.PcdFSBClock
|
2019-08-13 13:30:48 +02:00
|
|
|
gEfiSecurityPkgTokenSpaceGuid.PcdOptionRomImageVerificationPolicy
|
|
|
|
gUefiCpuPkgTokenSpaceGuid.PcdCpuLocalApicBaseAddress
|
|
|
|
|
2019-08-13 13:30:56 +02:00
|
|
|
gUefiOvmfPkgTokenSpaceGuid.PcdXenPvhStartOfDayStructPtr
|
|
|
|
gUefiOvmfPkgTokenSpaceGuid.PcdXenPvhStartOfDayStructPtrSize
|
|
|
|
|
2019-08-13 13:30:48 +02:00
|
|
|
[FixedPcd]
|
|
|
|
gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress
|
|
|
|
|
|
|
|
[Ppis]
|
|
|
|
gEfiPeiMasterBootModePpiGuid
|
|
|
|
gEfiPeiMpServicesPpiGuid
|
|
|
|
|
|
|
|
[Depex]
|
|
|
|
TRUE
|
|
|
|
|