AppDevice.h 4.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  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. * AppDevice.h
  16. * AppDevice 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 APPDEVICE_H
  25. #define APPDEVICE_H
  26. #include "com_BmcType.h"
  27. #define EVT_MSG_BUF_SIZE 1 /**<Event Message maximum Buffer size */
  28. //#define USER_ID (((uint32_t)'U'<< 24) | ((uint32_t)'S'<< 16) | ('E'<<8) | 'R')
  29. #define IPMI_ROOT_USER ( 2 )
  30. #define TWENTY_BYTE_PWD 0x80
  31. #define CURRENT_CHANNEL_NUM 0x0E
  32. #define MASTER_RW_ERRCODE 0xFF
  33. #define IGNORE_ADD_OR_REMOVE 0
  34. #define IGNORE_ADD_OR_REMOVE_SHELL -1
  35. #define IPMI_15_PASSWORD_LEN (16 + 2)
  36. #define IPMI_20_PASSWORD_LEN (20 + 2)
  37. #define SYS_SEND_MSG_LUN 0x02
  38. /*** Extern Declaration ***/
  39. /*** Function Prototypes ***/
  40. /**
  41. * @defgroup apcf2 BMC Watchdog Timer Commands
  42. * @ingroup apcf
  43. * IPMI BMC Watchdog Timer Command Handlers. Invoked by the message handler
  44. * @{
  45. **/
  46. extern int ResetWDT ( uint8_t* pReq, uint8_t ReqLen, uint8_t* pRes);
  47. extern int SetWDT ( uint8_t* pReq, uint8_t ReqLen, uint8_t* pRes);
  48. extern int GetWDT ( uint8_t* pReq, uint8_t ReqLen, uint8_t* pRes);
  49. /** @} */
  50. /**
  51. * @defgroup apcf3 BMC Device and Messaging Commands
  52. * @ingroup apcf
  53. * IPMI BMC Device and Messaging Command Handlers. Invoked by the message handler
  54. * @{
  55. **/
  56. extern int SetBMCGlobalEnables ( uint8_t* pReq, uint8_t ReqLen, uint8_t* pRes);
  57. extern int GetBMCGlobalEnables ( uint8_t* pReq, uint8_t ReqLen, uint8_t* pRes);
  58. extern int ClrMsgFlags ( uint8_t* pReq, uint8_t ReqLen, uint8_t* pRes);
  59. extern int GetMsgFlags ( uint8_t* pReq, uint8_t ReqLen, uint8_t* pRes);
  60. extern int EnblMsgChannelRcv ( uint8_t* pReq, uint8_t ReqLen, uint8_t* pRes);
  61. extern int GetMessage ( uint8_t* pReq, uint8_t ReqLen, uint8_t* pRes);
  62. extern int SendMessage ( uint8_t* pReq, uint8_t ReqLen, uint8_t* pRes);
  63. extern int ReadEvtMsgBuffer ( uint8_t* pReq, uint8_t ReqLen, uint8_t* pRes);
  64. extern int GetBTIfcCap ( uint8_t* pReq, uint8_t ReqLen, uint8_t* pRes);
  65. extern int GetSystemGUID ( uint8_t* pReq, uint8_t ReqLen, uint8_t* pRes);
  66. extern int GetChAuthCap ( uint8_t* pReq, uint8_t ReqLen, uint8_t* pRes);
  67. extern int GetSessionChallenge ( uint8_t* pReq, uint8_t ReqLen, uint8_t* pRes);
  68. extern int ActivateSession ( uint8_t* pReq, uint8_t ReqLen, uint8_t* pRes);
  69. extern int SetSessionPrivLevel ( uint8_t* pReq, uint8_t ReqLen, uint8_t* pRes);
  70. extern int CloseSession ( uint8_t* pReq, uint8_t ReqLen, uint8_t* pRes);
  71. extern int GetSessionInfo ( uint8_t* pReq, uint8_t ReqLen, uint8_t* pRes);
  72. extern int GetAuthCode ( uint8_t* pReq, uint8_t ReqLen, uint8_t* pRes);
  73. extern int SetChAccess ( uint8_t* pReq, uint8_t ReqLen, uint8_t* pRes);
  74. extern int GetChAccess ( uint8_t* pReq, uint8_t ReqLen, uint8_t* pRes);
  75. extern int GetChInfo ( uint8_t* pReq, uint8_t ReqLen, uint8_t* pRes);
  76. extern int SetUserAccess ( uint8_t* pReq, uint8_t ReqLen, uint8_t* pRes);
  77. extern int GetUserAccess ( uint8_t* pReq, uint8_t ReqLen, uint8_t* pRes);
  78. extern int SetUserName ( uint8_t* pReq, uint8_t ReqLen, uint8_t* pRes);
  79. extern int GetUserName ( uint8_t* pReq, uint8_t ReqLen, uint8_t* pRes);
  80. extern int SetUserPassword ( uint8_t* pReq, uint8_t ReqLen, uint8_t* pRes);
  81. extern int MasterWriteRead ( uint8_t* pReq, uint8_t ReqLen, uint8_t* pRes);
  82. extern int SetSystemInfoParam ( uint8_t* pReq, uint8_t ReqLen, uint8_t* pRes);
  83. extern int GetSystemInfoParam ( uint8_t* pReq, uint8_t ReqLen, uint8_t* pRes);
  84. extern uint8_t IsChannelSuppGroups(uint8_t ChannelNum);
  85. extern int ModifyUsrGrp(char * UserName,uint8_t ChannelNum,uint8_t OldAccessLimit, uint8_t NewAccessLimit );
  86. /** @} */
  87. #endif /* APPDEVICE_H */