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