]> git.proxmox.com Git - mirror_edk2.git/blobdiff - OvmfPkg/IoMmuDxe/AmdSevIoMmu.h
IntelFsp2Pkg: Fix build error with WHOLEARCHIVE option
[mirror_edk2.git] / OvmfPkg / IoMmuDxe / AmdSevIoMmu.h
index 07320296823504f7e5bc8bf7680aef213fb8ea11..c15fa76c3c1bfcec1eae7ae1a236ed32aeda0c13 100644 (file)
@@ -1,9 +1,9 @@
 /** @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
 #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