MiscAPI.h 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. /*****************************************************************
  2. *****************************************************************
  3. *** **
  4. *** (C)Copyright 2005-2006, American Megatrends Inc. **
  5. *** **
  6. *** All Rights Reserved. **
  7. *** **
  8. *** 6145-F, Northbelt Parkway, Norcross, **
  9. *** **
  10. *** Georgia - 30071, USA. Phone-(770)-246-8600. **
  11. *** **
  12. *****************************************************************
  13. ******************************************************************
  14. *
  15. * MiscApi.h
  16. * Miscellaneous API.
  17. *
  18. * Author: Govind Kothandapani <govindk@ami.com>
  19. *
  20. ******************************************************************/
  21. #ifndef MISCAPI_H
  22. #define MISCAPI_H
  23. #include "Types.h"
  24. #include "SharedMem.h"
  25. /*----------------------------------------------------------------
  26. * @fn API_GenerateBeep
  27. * @brief This function is called to generate beep.
  28. * @param Pattern - The Beep Pattern
  29. * @param NumSec - Number of seconds to beep (for a single bit pattern)
  30. *---------------------------------------------------------------*/
  31. extern INT8U API_GenerateBeep (INT16U Pattern, INT8U NumSec, int BMCInst);
  32. /*----------------------------------------------------------------
  33. * @fn API_GlowLED
  34. * @brief This function is called to glow the LED
  35. * @param LEDNum - LED number.
  36. * @param Pattern - LED Glow pattern.
  37. * @param NumSec - Number of seconds to glow(for a single bit pattern).
  38. *---------------------------------------------------------------*/
  39. extern INT8U API_GlowLED (INT8U LEDNum, INT16U Pattern, INT16U NumSec, int BMCInst);
  40. /*----------------------------------------------------------------
  41. * @fn API_GetLEDEnabled
  42. * @brief This function is called to find LED enabled state
  43. * @param LEDNum - LED number.
  44. * @return TRUE or FALSE
  45. *---------------------------------------------------------------*/
  46. extern BOOL API_GetLEDEnabled (INT8U LEDNum, int BMCInst);
  47. /*----------------------------------------------------------------
  48. * @fn API_GetLEDPattern
  49. * @brief This function is called to find LED pattern
  50. * @param LEDNum - LED number.
  51. * @return LED Pattern
  52. *---------------------------------------------------------------*/
  53. extern int API_GetLEDPattern (INT8U LEDNum, int BMCInst);
  54. /*-----------------------------------------------------------------
  55. * @fn API_OSTimeDelayHMSM
  56. * @brief This function provides a time delay as specified in the
  57. * input.
  58. *
  59. * @param MdlNum - Module Number of this module.
  60. * @param Hours - Number of hours.
  61. * @param Minutes - Number of Minutes.
  62. * @param Secods - Number of Seconds.
  63. * @param MilliSecs - Number of Milli Seconds.
  64. *-----------------------------------------------------------------*/
  65. extern INT8U API_OSTimeDelayHMSM (INT8U Hours, INT8U Minutes,
  66. INT8U Seconds,INT16U MilliSecs);
  67. /*----------------------------------------------------------------
  68. * @fn API_GetBMCSharedMem
  69. * @brief This function is called to get the shared memory config
  70. *
  71. *---------------------------------------------------------------*/
  72. extern BMCSharedMem_T* API_GetBMCSharedMem (int BMCInst);
  73. #if 0
  74. /*----------------------------------------------------------------
  75. * @fn API_FlushPMConfig
  76. * @brief This Function is used to write PM Configuration contents
  77. * of NVRAM . This Function returns 0 if successful and -1 otherwise.
  78. *
  79. * @param pNVRPtr - Offset of local copy of PMConfig
  80. * size - Number of bytes to be written.
  81. *---------------------------------------------------------------*/
  82. extern int API_FlushPMConfig (INT8U* pNVRPtr, INT16U Size, int BMCInst);
  83. /*----------------------------------------------------------------
  84. * @fn API_GetPMConfig
  85. * @brief This Function is used to read the PM Configuration. This
  86. * Function returns pointer to PMConfig_T if successful and NULL pointer
  87. * otherwise.
  88. *
  89. *---------------------------------------------------------------*/
  90. extern PMConfig_T* API_GetPMConfig (int BMCInst);
  91. #endif
  92. /*----------------------------------------------------------------
  93. * API_ChassisIdentify
  94. *---------------------------------------------------------------*/
  95. extern int API_ChassisIdentify (INT8U Timeout, int BMCInst);
  96. #endif /* MISCAPI_H */