]> git.proxmox.com Git - mirror_edk2.git/blob - OvmfPkg/IoMmuDxe/AmdSevIoMmu.h
OvmfPkg/PlatformDxe: list "Platform.h" in the INF file
[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 This program and the accompanying materials are licensed and made available
12 under the terms and conditions of the BSD License which accompanies this
13 distribution. The full text of the license may be found at
14 http://opensource.org/licenses/bsd-license.php
15
16 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
17 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
18
19 **/
20
21 #ifndef _AMD_SEV_IOMMU_H_
22 #define _AMD_SEV_IOMMU_H_
23
24 #include <Protocol/IoMmu.h>
25
26 #include <Library/BaseLib.h>
27 #include <Library/BaseMemoryLib.h>
28 #include <Library/DebugLib.h>
29 #include <Library/MemEncryptSevLib.h>
30 #include <Library/MemoryAllocationLib.h>
31 #include <Library/UefiBootServicesTableLib.h>
32
33 /**
34 Install IOMMU protocol to provide the DMA support for PciHostBridge and
35 MemEncryptSevLib.
36
37 **/
38 EFI_STATUS
39 EFIAPI
40 AmdSevInstallIoMmuProtocol (
41 VOID
42 );
43
44 #endif