summaryrefslogtreecommitdiffstats
path: root/OvmfPkg/Library/PlatformHasIoMmuLib/PlatformHasIoMmuLib.c
blob: 7c4ef769db38f8ecf5d1f5fa93499c41ce381561 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/** @file
  A hook-in library for MdeModulePkg/Bus/Pci/PciHostBridgeDxe.

  Plugging this library instance into PciHostBridgeDxe makes
  PciHostBridgeDxe depend on the platform's dynamic decision whether
  to provide IOMMU implementation (usually through IoMmuDxe driver).

  Copyright (C) 2017, Red Hat, Inc.
  Copyright (C) 2017, AMD, Inc.

  SPDX-License-Identifier: BSD-2-Clause-Patent
**/

#include <Base.h>

RETURN_STATUS
EFIAPI
PlatformHasIoMmuInitialize (
  VOID
  )
{
  //
  // Do nothing, just imbue PciHostBridgeDxe with a protocol dependency on
  // gIoMmuAbsentProtocolGuid OR gEdkiiIoMmuProtocolGuid.
  //
  return RETURN_SUCCESS;
}