]> git.proxmox.com Git - mirror_edk2.git/blame - OvmfPkg/IoMmuDxe/AmdSevIoMmu.h
OvmfPkg/PlatformDxe: list "Platform.h" in the INF file
[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
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
f9d129e6 27#include <Library/BaseMemoryLib.h>\r
db7ea4d7
LE
28#include <Library/DebugLib.h>\r
29#include <Library/MemEncryptSevLib.h>\r
f9d129e6
BS
30#include <Library/MemoryAllocationLib.h>\r
31#include <Library/UefiBootServicesTableLib.h>\r
f9d129e6
BS
32\r
33/**\r
34 Install IOMMU protocol to provide the DMA support for PciHostBridge and\r
35 MemEncryptSevLib.\r
36\r
37**/\r
db125079 38EFI_STATUS\r
f9d129e6
BS
39EFIAPI\r
40AmdSevInstallIoMmuProtocol (\r
41 VOID\r
42 );\r
43\r
44#endif\r