]> git.proxmox.com Git - mirror_edk2.git/blame - OvmfPkg/Library/PlatformHasIoMmuLib/PlatformHasIoMmuLib.c
OvmfPkg: Add PlatformHasIoMmuLib
[mirror_edk2.git] / OvmfPkg / Library / PlatformHasIoMmuLib / PlatformHasIoMmuLib.c
CommitLineData
6c22e534
BS
1/** @file\r
2 A hook-in library for MdeModulePkg/Bus/Pci/PciHostBridgeDxe.\r
3\r
4 Plugging this library instance into PciHostBridgeDxe makes\r
5 PciHostBridgeDxe depend on the platform's dynamic decision whether\r
6 to provide IOMMU implementation (usually through IoMmuDxe driver).\r
7\r
8 Copyright (C) 2017, Red Hat, Inc.\r
9 Copyright (C) 2017, AMD, Inc.\r
10\r
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, WITHOUT\r
17 WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
18**/\r
19\r
20#include <Base.h>\r
21\r
22RETURN_STATUS\r
23EFIAPI\r
24PlatformHasIoMmuInitialize (\r
25 VOID\r
26 )\r
27{\r
28 //\r
29 // Do nothing, just imbue PciHostBridgeDxe with a protocol dependency on\r
30 // gIoMmuAbsentProtocolGuid OR gEdkiiIoMmuProtocolGuid.\r
31 //\r
32 return RETURN_SUCCESS;\r
33}\r