DxeCheckIommuSupportLib.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /** @file
  2. Header file for the DxeCheckIommuSupport library.
  3. Copyright (c) 2020, Intel Corporation. All rights reserved.<BR>
  4. SPDX-License-Identifier: BSD-2-Clause-Patent
  5. **/
  6. #ifndef _DXE_CHECK_IOMMU_SUPPORT_LIBRARY_H_
  7. #define _DXE_CHECK_IOMMU_SUPPORT_LIBRARY_H_
  8. /**
  9. Detect ME FW and Board Type and return the result via IommuSkuCheck.
  10. IommuSkuCheck
  11. BIT0: Indicate system has a Corporate CSME firmware
  12. BIT1: Indicate BIOS is running on a CML RVP
  13. BIT2: Indicate BIOS is running on a CFL-H RVP
  14. BIT3: Indicate BIOS is running on a CFL-S 8+2 RVP
  15. @retval Return 0 means not support, otherwise value is defined by IommuSkuCheck
  16. **/
  17. UINT8
  18. DetectMeAndBoard (
  19. VOID
  20. );
  21. /**
  22. DxeCheckIommuSupport
  23. Only WHL/CFL-H/CFL-S 8+2 Crop SKUs support Iommu.
  24. This function will save sku information to PcdIommuSkuCheck.
  25. BIOS will use PcdIommuSkuCheck and other factors to set PcdVTdPolicyPropertyMask on the next boot in PEI phase
  26. This function might perform a system reset.
  27. **/
  28. EFI_STATUS
  29. EFIAPI
  30. DxeCheckIommuSupport (
  31. VOID
  32. );
  33. #endif // _DXE_CHECK_IOMMU_SUPPORT_LIBRARY_H_