PeiSaPolicyUpdate.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /** @file
  2. Copyright (c) 2020, Intel Corporation. All rights reserved.<BR>
  3. SPDX-License-Identifier: BSD-2-Clause-Patent
  4. **/
  5. #ifndef _PEI_SA_POLICY_UPDATE_H_
  6. #define _PEI_SA_POLICY_UPDATE_H_
  7. //
  8. // External include files do NOT need to be explicitly specified in real EDKII
  9. // environment
  10. //
  11. #include <PlatformBoardId.h>
  12. #include <SaPolicyCommon.h>
  13. #include <Library/DebugPrintErrorLevelLib.h>
  14. #include <Ppi/Wdt.h>
  15. #include <CpuRegs.h>
  16. #include <Library/CpuPlatformLib.h>
  17. #include "PeiPchPolicyUpdate.h"
  18. #include <Library/PcdLib.h>
  19. #include <Library/PciSegmentLib.h>
  20. #include <CpuAccess.h>
  21. #define WDT_TIMEOUT 60
  22. // BClk Frequency Limitations (in Hz)
  23. #define BCLK_MAX 538000000
  24. #define BCLK_100 100000000
  25. #define BCLK_GRANULARITY 1000000
  26. #define BCLK_100_KHZ 100000
  27. /**
  28. PeiGetSectionFromFv finds the file in FV and gets file Address and Size
  29. @param[in] NameGuid - File GUID
  30. @param[out] Address - Pointer to the File Address
  31. @param[out] Size - Pointer to File Size
  32. @retval EFI_SUCCESS Successfull in reading the section from FV
  33. **/
  34. EFI_STATUS
  35. EFIAPI
  36. PeiGetSectionFromFv (
  37. IN CONST EFI_GUID NameGuid,
  38. OUT VOID **Address,
  39. OUT UINT32 *Size
  40. );
  41. #endif