]> git.proxmox.com Git - mirror_edk2.git/blobdiff - OvmfPkg/IoMmuDxe/AmdSevIoMmu.h
OvmfPkg/SmmCpuFeaturesLib: SEV: encrypt+free pages of init. save state map
[mirror_edk2.git] / OvmfPkg / IoMmuDxe / AmdSevIoMmu.h
index 8b3962a8c395511159bfb9a482d3d2d0b7c4ef1a..c15fa76c3c1bfcec1eae7ae1a236ed32aeda0c13 100644 (file)
@@ -1,12 +1,13 @@
 /** @file\r
 \r
-  The protocol provides support to allocate, free, map and umap a DMA buffer for\r
-  bus master (e.g PciHostBridge). When SEV is enabled, the DMA operations must\r
-  be performed on unencrypted buffer hence protocol clear the encryption bit\r
-  from the DMA buffer.\r
+  The protocol provides support to allocate, free, map and umap a DMA buffer\r
+  for bus master (e.g PciHostBridge). When SEV is enabled, the DMA operations\r
+  must be performed on unencrypted buffer hence protocol clear the encryption\r
+  bit from the DMA buffer.\r
 \r
   Copyright (c) 2017, Intel Corporation. All rights reserved.<BR>\r
   Copyright (c) 2017, AMD Inc. All rights reserved.<BR>\r
+  (C) Copyright 2017 Hewlett Packard Enterprise Development LP<BR>\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
 \r
 **/\r
 \r
-#ifndef __AMD_SEV_IOMMU_H_\r
-#define __AMD_SEV_IOMMU_H\r
+#ifndef _AMD_SEV_IOMMU_H_\r
+#define _AMD_SEV_IOMMU_H_\r
 \r
 #include <Protocol/IoMmu.h>\r
 \r
 #include <Library/BaseLib.h>\r
-#include <Library/DebugLib.h>\r
 #include <Library/BaseMemoryLib.h>\r
+#include <Library/DebugLib.h>\r
+#include <Library/MemEncryptSevLib.h>\r
 #include <Library/MemoryAllocationLib.h>\r
 #include <Library/UefiBootServicesTableLib.h>\r
-#include <Library/MemEncryptSevLib.h>\r
 \r
 /**\r
   Install IOMMU protocol to provide the DMA support for PciHostBridge and\r
   MemEncryptSevLib.\r
 \r
 **/\r
-VOID\r
+EFI_STATUS\r
 EFIAPI\r
 AmdSevInstallIoMmuProtocol (\r
   VOID\r