/** @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