]>
Commit | Line | Data |
---|---|---|
f9d129e6 BS |
1 | /** @file\r |
2 | \r | |
3 | The protocol provides support to allocate, free, map and umap a DMA buffer for\r | |
4 | bus master (e.g PciHostBridge). When SEV is enabled, the DMA operations must\r | |
5 | be performed on unencrypted buffer hence protocol clear the encryption bit\r | |
6 | from the DMA buffer.\r | |
7 | \r | |
8 | Copyright (c) 2017, Intel Corporation. All rights reserved.<BR>\r | |
9 | Copyright (c) 2017, AMD Inc. All rights reserved.<BR>\r | |
10 | This program and the accompanying materials are licensed and made available\r | |
11 | under the terms and conditions of the BSD License which accompanies this\r | |
12 | distribution. The full text of the license may be found at\r | |
13 | http://opensource.org/licenses/bsd-license.php\r | |
14 | \r | |
15 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
16 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
17 | \r | |
18 | **/\r | |
19 | \r | |
20 | #ifndef __AMD_SEV_IOMMU_H_\r | |
21 | #define __AMD_SEV_IOMMU_H\r | |
22 | \r | |
23 | #include <Protocol/IoMmu.h>\r | |
24 | \r | |
25 | #include <Library/BaseLib.h>\r | |
26 | #include <Library/DebugLib.h>\r | |
27 | #include <Library/BaseMemoryLib.h>\r | |
28 | #include <Library/MemoryAllocationLib.h>\r | |
29 | #include <Library/UefiBootServicesTableLib.h>\r | |
30 | #include <Library/MemEncryptSevLib.h>\r | |
31 | \r | |
32 | /**\r | |
33 | Install IOMMU protocol to provide the DMA support for PciHostBridge and\r | |
34 | MemEncryptSevLib.\r | |
35 | \r | |
36 | **/\r | |
37 | VOID\r | |
38 | EFIAPI\r | |
39 | AmdSevInstallIoMmuProtocol (\r | |
40 | VOID\r | |
41 | );\r | |
42 | \r | |
43 | #endif\r |