PeiDTbtInitLib.h 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. /**@file
  2. PEI DTBT Init Dispatch library Header file
  3. Copyright (c) 2018, Intel Corporation. All rights reserved.<BR>
  4. SPDX-License-Identifier: BSD-2-Clause-Patent
  5. **/
  6. #ifndef __PEI_DTBT_INIT_LIB_H__
  7. #define __PEI_DTBT_INIT_LIB_H__
  8. #include <Ppi/PeiTbtPolicy.h>
  9. /**
  10. set tPCH25 Timing to 10 ms for DTBT.
  11. @param[in] PEI_TBT_POLICY PeiTbtConfig
  12. @retval EFI_SUCCESS The function completes successfully
  13. @retval EFI_UNSUPPORTED dTBT is not supported.
  14. **/
  15. EFI_STATUS
  16. EFIAPI
  17. DTbtSetTPch25Timing (
  18. IN PEI_TBT_POLICY *PeiTbtConfig
  19. );
  20. /**
  21. Do ForcePower for DTBT Controller
  22. @param[in] PEI_TBT_POLICY PeiTbtConfig
  23. @retval EFI_SUCCESS The function completes successfully
  24. @retval EFI_UNSUPPORTED dTBT is not supported.
  25. **/
  26. EFI_STATUS
  27. EFIAPI
  28. DTbtForcePower (
  29. IN PEI_TBT_POLICY *PeiTbtConfig
  30. );
  31. /**
  32. Clear VGA Registers for DTBT.
  33. @param[in] PEI_TBT_POLICY PeiTbtConfig
  34. @retval EFI_SUCCESS The function completes successfully
  35. @retval EFI_UNSUPPORTED dTBT is not supported.
  36. **/
  37. EFI_STATUS
  38. EFIAPI
  39. DTbtClearVgaRegisters (
  40. IN PEI_TBT_POLICY *PeiTbtConfig
  41. );
  42. /**
  43. Exectue Mail box command "Boot On".
  44. @param[in] PEI_TBT_POLICY PeiTbtConfig
  45. @retval EFI_SUCCESS The function completes successfully
  46. @retval EFI_UNSUPPORTED dTBT is not supported.
  47. **/
  48. EFI_STATUS
  49. EFIAPI
  50. DTbtBootOn (
  51. IN PEI_TBT_POLICY *PeiTbtConfig
  52. );
  53. /**
  54. Exectue Mail box command "USB On".
  55. @param[in] PEI_TBT_POLICY PeiTbtConfig
  56. @retval EFI_SUCCESS The function completes successfully
  57. @retval EFI_UNSUPPORTED dTBT is not supported.
  58. **/
  59. EFI_STATUS
  60. EFIAPI
  61. DTbtUsbOn (
  62. IN PEI_TBT_POLICY *PeiTbtConfig
  63. );
  64. /**
  65. Exectue Mail box command "Sx Exit".
  66. @param[in] PEI_TBT_POLICY PeiTbtConfig
  67. @retval EFI_SUCCESS The function completes successfully
  68. @retval EFI_UNSUPPORTED dTBT is not supported.
  69. **/
  70. EFI_STATUS
  71. EFIAPI
  72. DTbtSxExitFlow (
  73. IN PEI_TBT_POLICY *PeiTbtConfig
  74. );
  75. /**
  76. Initialize Thunderbolt(TM)
  77. @retval EFI_SUCCESS The function completes successfully
  78. @retval others
  79. **/
  80. EFI_STATUS
  81. EFIAPI
  82. TbtInit (
  83. VOID
  84. );
  85. #endif