PeiTbtCommonInitLib.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /** @file
  2. PEI TBT Common Init Dispatch library Header file
  3. Copyright (c) 2020, Intel Corporation. All rights reserved.<BR>
  4. SPDX-License-Identifier: BSD-2-Clause-Patent
  5. **/
  6. #ifndef __PEI_TBT_COMMON_INIT_LIB_H__
  7. #define __PEI_TBT_COMMON_INIT_LIB_H__
  8. #include <Library/PeiServicesLib.h>
  9. #include <Library/DebugLib.h>
  10. #include <Library/PeiTbtTaskDispatchLib.h>
  11. #include <Library/MemoryAllocationLib.h>
  12. #include <Library/BaseMemoryLib.h>
  13. #include <Library/GpioLib.h>
  14. #include <Library/TimerLib.h>
  15. #include <Library/IoLib.h>
  16. #include <Library/PciSegmentLib.h>
  17. #include <Library/PcdLib.h>
  18. #include <Library/TbtCommonLib.h>
  19. #include <IndustryStandard/Pci22.h>
  20. #include <Library/PmcLib.h>
  21. #include <PlatformNvRamHookLib.h>
  22. BOOLEAN
  23. IsHostRouterPresentBeforeSleep(
  24. IN UINT8 ControllerType,
  25. IN UINT8 Controller
  26. );
  27. VOID
  28. TbtSetSxMode(
  29. IN BOOLEAN Type,
  30. IN UINT8 Bus,
  31. IN UINT8 Device,
  32. IN UINT8 Function,
  33. IN UINT8 TbtBootOn
  34. );
  35. VOID
  36. TbtClearVgaRegisters(
  37. IN UINTN Segment,
  38. IN UINTN Bus,
  39. IN UINTN Device,
  40. IN UINTN Function
  41. );
  42. #endif