IPMDevice.h 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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. * IPMDevice.h
  16. * IPMDevice Commands Handler
  17. *
  18. * Author: Govind Kothandapani <govindk@ami.com>
  19. * : Rama Bisa <ramab@ami.com>
  20. * : Basavaraj Astekar <basavaraja@ami.com>
  21. * : Bakka Ravinder Reddy <bakkar@ami.com>
  22. *
  23. *****************************************************************/
  24. #ifndef IPMDEVICE_H
  25. #define IPMDEVICE_H
  26. #include "com_BmcType.h"
  27. /*** Extern Declaration ***/
  28. /**
  29. * @var _FAR_ uint8_t g_ACPISysPwrState
  30. * @brief Contains System ACPI state.
  31. * @warning Should not be accessed from task other than Message Handler
  32. **/
  33. /*Commented it inorder to access the data across the processes and moved it to the
  34. shared memory structure BMCSharedMem_T in SharedMem.h file*/
  35. //extern _FAR_ uint8_t g_ACPISysPwrState;
  36. /**
  37. * @var _FAR_ uint8_t g_ACPIDevPwrState
  38. * @brief Contains Device ACPI state.
  39. * @warning Should not be accessed from task other than Message Handler
  40. **/
  41. /*Commented it inorder to access the data across the processes and moved it to the
  42. shared memory structure BMCSharedMem_T in SharedMem.h file*/
  43. // extern _FAR_ uint8_t g_ACPIDevPwrState;
  44. /*** Function Prototypes ***/
  45. /**
  46. * @defgroup apcf1 IPM Device Commands
  47. * @ingroup apcf
  48. * IPMI IPM Device Command Handlers. Invoked by the message handler
  49. * @{
  50. **/
  51. extern int GetDevID ( uint8_t* pReq, uint8_t ReqLen, uint8_t* pRes);
  52. extern int ColdReset ( uint8_t* pReq, uint8_t ReqLen, uint8_t* pRes);
  53. extern int WarmReset ( uint8_t* pReq, uint8_t ReqLen, uint8_t* pRes);
  54. extern int GetSelfTestResults ( uint8_t* pReq, uint8_t ReqLen, uint8_t* pRes);
  55. extern int MfgTestOn ( uint8_t* pReq, uint8_t ReqLen, uint8_t* pRes);
  56. extern int SetACPIPwrState ( uint8_t* pReq, uint8_t ReqLen, uint8_t* pRes);
  57. extern int GetACPIPwrState ( uint8_t* pReq, uint8_t ReqLen, uint8_t* pRes);
  58. extern int GetDevGUID ( uint8_t* pReq, uint8_t ReqLen, uint8_t* pRes);
  59. /** @} */
  60. #endif /* IPMDEVICE_H */