]> git.proxmox.com Git - mirror_edk2.git/blame - OvmfPkg/IoMmuDxe/AmdSevIoMmu.h
UefiCpuPkg CpuCommFeaturesLib: Fix GP fault issue about ProcTrace
[mirror_edk2.git] / OvmfPkg / IoMmuDxe / AmdSevIoMmu.h
CommitLineData
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
b26f0cf9 11 SPDX-License-Identifier: BSD-2-Clause-Patent\r
f9d129e6
BS
12\r
13**/\r
14\r
8dccfa6d
TP
15#ifndef _AMD_SEV_IOMMU_H_\r
16#define _AMD_SEV_IOMMU_H_\r
f9d129e6
BS
17\r
18#include <Protocol/IoMmu.h>\r
19\r
20#include <Library/BaseLib.h>\r
f9d129e6 21#include <Library/BaseMemoryLib.h>\r
db7ea4d7
LE
22#include <Library/DebugLib.h>\r
23#include <Library/MemEncryptSevLib.h>\r
f9d129e6
BS
24#include <Library/MemoryAllocationLib.h>\r
25#include <Library/UefiBootServicesTableLib.h>\r
f9d129e6
BS
26\r
27/**\r
28 Install IOMMU protocol to provide the DMA support for PciHostBridge and\r
29 MemEncryptSevLib.\r
30\r
31**/\r
db125079 32EFI_STATUS\r
f9d129e6
BS
33EFIAPI\r
34AmdSevInstallIoMmuProtocol (\r
35 VOID\r
36 );\r
37\r
38#endif\r