## @file
# Map TPM MMIO range unencrypted when SEV-ES is active.
# Install gQemuTpmMmioAccessiblePpiGuid unconditionally.
#
# Copyright (C) 2021, Advanced Micro Devices, Inc.
#
# SPDX-License-Identifier: BSD-2-Clause-Patent
##

[Defines]
  INF_VERSION                    = 1.29
  BASE_NAME                      = TpmMmioSevDecryptPei
  FILE_GUID                      = F12F698A-E506-4A1B-B32E-6920E55DA1C4
  MODULE_TYPE                    = PEIM
  VERSION_STRING                 = 1.0
  ENTRY_POINT                    = TpmMmioSevDecryptPeimEntryPoint

[Sources]
  TpmMmioSevDecryptPeim.c

[Packages]
  MdePkg/MdePkg.dec
  QemuQ35Pkg/QemuQ35Pkg.dec
  SecurityPkg/SecurityPkg.dec

[LibraryClasses]
  DebugLib
  MemEncryptSevLib
  PcdLib
  PeimEntryPoint
  PeiServicesLib

[Ppis]
  gQemuTpmMmioAccessiblePpiGuid                   ## PRODUCES

[FixedPcd]
  gEfiSecurityPkgTokenSpaceGuid.PcdTpmBaseAddress    ## CONSUMES

[Depex]
  gEfiPeiMemoryDiscoveredPpiGuid
