PchPolicyInitDxe.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /** @file
  2. Header file for the PchPolicyInitDxe Driver.
  3. Copyright (c) 2020, Intel Corporation. All rights reserved.<BR>
  4. SPDX-License-Identifier: BSD-2-Clause-Patent
  5. **/
  6. #ifndef _PCH_POLICY_INIT_DXE_H_
  7. #define _PCH_POLICY_INIT_DXE_H_
  8. #include <Library/BaseMemoryLib.h>
  9. #include <Library/MemoryAllocationLib.h>
  10. #include <Library/DebugLib.h>
  11. #include <Library/UefiBootServicesTableLib.h>
  12. #include <FirwmareConfigurations.h>
  13. #include <Protocol/PchPolicy.h>
  14. #include <Library/DxePchPolicyLib.h>
  15. #include <Library/DxePchPolicyUpdateLib.h>
  16. extern UINT8 mFirmwareConfiguration;
  17. /**
  18. <b>PCH DXE Policy Driver Entry Point</b> \n
  19. - <b>Introduction</b> \n
  20. Pch DXE drivers behavior can be controlled by platform policy without modifying reference code directly.
  21. Platform policy Protocol is initialized with default settings in this funciton.
  22. This policy Protocol has to be initialized prior to PCH initialization DXE drivers execution.
  23. - @pre
  24. - Runtime variable service should be ready if policy initialization required.
  25. - @result
  26. PCH_POLICY_PROTOCOL will be installed successfully and ready for Pch reference code use.
  27. - <b>Porting Recommendations</b> \n
  28. Policy should be initialized basing on platform design or user selection (like BIOS Setup Menu)
  29. @param[in] ImageHandle - Image handle of this driver.
  30. @retval EFI_SUCCESS Initialization complete.
  31. @retval EFI_OUT_OF_RESOURCES Do not have enough resources to initialize the driver.
  32. @retval EFI_DEVICE_ERROR Device error, driver exits abnormally.
  33. **/
  34. EFI_STATUS
  35. EFIAPI
  36. PchPolicyInitDxe (
  37. IN EFI_HANDLE ImageHandle
  38. );
  39. #endif