VirtualBox

source: vbox/trunk/src/VBox/Devices/EFI/FirmwareNew/OvmfPkg/IoMmuDxe/AmdSevIoMmu.h@ 80820

Last change on this file since 80820 was 80721, checked in by vboxsync, 5 years ago

Devices/EFI/FirmwareNew: Start upgrade process to edk2-stable201908 (compiles on Windows and works to some extent), bugref:4643

  • Property svn:eol-style set to native
File size: 986 bytes
Line 
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**/
32EFI_STATUS
33EFIAPI
34AmdSevInstallIoMmuProtocol (
35 VOID
36 );
37
38#endif
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette