#\r
# Driver clears the encryption attribute from MMIO regions when SEV is enabled\r
#\r
-# Copyright (c) 2017, AMD Inc. All rights reserved.<BR>\r
+# Copyright (c) 2017 - 2020, AMD Inc. All rights reserved.<BR>\r
#\r
-# This program and the accompanying materials are licensed and made available\r
-# under the terms and conditions of the BSD License which accompanies this\r
-# distribution. The full text of the license may be found at\r
-# http://opensource.org/licenses/bsd-license.php\r
-#\r
-# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR\r
-# IMPLIED.\r
+# SPDX-License-Identifier: BSD-2-Clause-Patent\r
#\r
#**/\r
\r
\r
[LibraryClasses]\r
BaseLib\r
+ BaseMemoryLib\r
DebugLib\r
DxeServicesTableLib\r
MemEncryptSevLib\r
- UefiBootServicesTableLib\r
+ MemoryAllocationLib\r
+ PcdLib\r
UefiDriverEntryPoint\r
- UefiLib\r
\r
[Depex]\r
TRUE\r
+\r
+[FeaturePcd]\r
+ gUefiOvmfPkgTokenSpaceGuid.PcdSmmSmramRequire\r
+\r
+[FixedPcd]\r
+ gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress\r
+ gUefiOvmfPkgTokenSpaceGuid.PcdOvmfCpuidBase\r
+ gUefiOvmfPkgTokenSpaceGuid.PcdOvmfCpuidSize\r
+ gUefiOvmfPkgTokenSpaceGuid.PcdOvmfSnpSecretsBase\r
+ gUefiOvmfPkgTokenSpaceGuid.PcdOvmfSnpSecretsSize\r
+\r
+[Protocols]\r
+ gEdkiiMemoryAcceptProtocolGuid\r
+\r
+[Guids]\r
+ gConfidentialComputingSevSnpBlobGuid\r
+ gEfiEventBeforeExitBootServicesGuid\r
+\r
+[Pcd]\r
+ gUefiOvmfPkgTokenSpaceGuid.PcdOvmfHostBridgePciDevId\r