PlatformHasIoMmuLib.c 674 B

123456789101112131415161718192021222324252627
  1. /** @file
  2. A hook-in library for MdeModulePkg/Bus/Pci/PciHostBridgeDxe.
  3. Plugging this library instance into PciHostBridgeDxe makes
  4. PciHostBridgeDxe depend on the platform's dynamic decision whether
  5. to provide IOMMU implementation (usually through IoMmuDxe driver).
  6. Copyright (C) 2017, Red Hat, Inc.
  7. Copyright (C) 2017, AMD, Inc.
  8. SPDX-License-Identifier: BSD-2-Clause-Patent
  9. **/
  10. #include <Base.h>
  11. RETURN_STATUS
  12. EFIAPI
  13. PlatformHasIoMmuInitialize (
  14. VOID
  15. )
  16. {
  17. //
  18. // Do nothing, just imbue PciHostBridgeDxe with a protocol dependency on
  19. // gIoMmuAbsentProtocolGuid OR gEdkiiIoMmuProtocolGuid.
  20. //
  21. return RETURN_SUCCESS;
  22. }