]> git.proxmox.com Git - mirror_edk2.git/blob - OvmfPkg/IoMmuDxe/AmdSevIoMmu.h
UefiCpuPkg CpuCommFeaturesLib: Fix GP fault issue about ProcTrace
[mirror_edk2.git] / OvmfPkg / IoMmuDxe / AmdSevIoMmu.h
1 /** @file
2
3 The protocol provides support to allocate, free, map and umap a DMA buffer
4 for bus master (e.g PciHostBridge). When SEV is enabled, the DMA operations
5 must be performed on unencrypted buffer hence protocol clear the encryption
6 bit from the DMA buffer.
7
8 Copyright (c) 2017, Intel Corporation. All rights reserved.<BR>
9 Copyright (c) 2017, AMD Inc. All rights reserved.<BR>
10 (C) Copyright 2017 Hewlett Packard Enterprise Development LP<BR>
11 SPDX-License-Identifier: BSD-2-Clause-Patent
12
13 **/
14
15 #ifndef _AMD_SEV_IOMMU_H_
16 #define _AMD_SEV_IOMMU_H_
17
18 #include <Protocol/IoMmu.h>
19
20 #include <Library/BaseLib.h>
21 #include <Library/BaseMemoryLib.h>
22 #include <Library/DebugLib.h>
23 #include <Library/MemEncryptSevLib.h>
24 #include <Library/MemoryAllocationLib.h>
25 #include <Library/UefiBootServicesTableLib.h>
26
27 /**
28 Install IOMMU protocol to provide the DMA support for PciHostBridge and
29 MemEncryptSevLib.
30
31 **/
32 EFI_STATUS
33 EFIAPI
34 AmdSevInstallIoMmuProtocol (
35 VOID
36 );
37
38 #endif