PchPlatformLib.h 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. /**
  2. **/
  3. /**
  4. Copyright (c) 2012 - 2014, Intel Corporation. All rights reserved
  5. SPDX-License-Identifier: BSD-2-Clause-Patent
  6. @file
  7. PchPlatformLib.h
  8. @brief
  9. Header file for PchPlatform Lib.
  10. **/
  11. #ifndef _PCH_PLATFORM_LIB_H_
  12. #define _PCH_PLATFORM_LIB_H_
  13. ///
  14. /// Timeout value used when Sending / Receiving messages.
  15. /// NOTE: this must cover the longest possible wait time
  16. /// between message being sent and response being available.
  17. /// e.g. Virtual function readiness might take some time.
  18. ///
  19. VOID
  20. EFIAPI
  21. PchPmTimerStall (
  22. IN UINTN Microseconds
  23. )
  24. /**
  25. @brief
  26. Delay for at least the request number of microseconds.
  27. This function would be called by runtime driver, please do not use any MMIO marco here.
  28. @param[in] Microseconds Number of microseconds to delay.
  29. @retval NONE
  30. **/
  31. ;
  32. BOOLEAN
  33. EFIAPI
  34. PchIsSpiDescriptorMode (
  35. IN UINTN SpiBase
  36. )
  37. /**
  38. @brief
  39. Check whether SPI is in descriptor mode
  40. @param[in] SpiBase The PCH Spi Base Address
  41. @retval TRUE SPI is in descriptor mode
  42. @retval FALSE SPI is not in descriptor mode
  43. **/
  44. ;
  45. PCH_STEPPING
  46. EFIAPI
  47. PchStepping (
  48. VOID
  49. )
  50. /**
  51. @brief
  52. Return Pch stepping type
  53. @param[in] None
  54. @retval PCH_STEPPING Pch stepping type
  55. **/
  56. ;
  57. BOOLEAN
  58. IsPchSupported (
  59. VOID
  60. )
  61. /**
  62. @brief
  63. Determine if PCH is supported
  64. @param[in] None
  65. @retval TRUE PCH is supported
  66. @retval FALSE PCH is not supported
  67. **/
  68. ;
  69. VOID
  70. EFIAPI
  71. PchAlternateAccessMode (
  72. IN UINTN IlbBase,
  73. IN BOOLEAN AmeCtrl
  74. )
  75. /**
  76. This function can be called to enable/disable Alternate Access Mode
  77. @param[in] IlbBase The PCH ILB Base Address
  78. @param[in] AmeCtrl If TRUE, enable Alternate Access Mode.
  79. If FALSE, disable Alternate Access Mode.
  80. @retval NONE
  81. **/
  82. ;
  83. #endif