3 IoMmuDxe driver installs EDKII_IOMMU_PROTOCOL to provide the support for DMA
4 operations when SEV is enabled.
6 Copyright (c) 2017, AMD Inc. All rights reserved.<BR>
8 This program and the accompanying materials are licensed and made available
9 under the terms and conditions of the BSD License which accompanies this
10 distribution. The full text of the license may be found at
11 http://opensource.org/licenses/bsd-license.php
13 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
14 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
18 #include "AmdSevIoMmu.h"
23 IN EFI_HANDLE ImageHandle
,
24 IN EFI_SYSTEM_TABLE
*SystemTable
31 // When SEV is enabled, install IoMmu protocol otherwise install the
32 // placeholder protocol so that other dependent module can run.
34 if (MemEncryptSevIsEnabled ()) {
35 Status
= AmdSevInstallIoMmuProtocol ();
39 Status
= gBS
->InstallMultipleProtocolInterfaces (
41 &gIoMmuAbsentProtocolGuid
,