AMIConf.h 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. /*****************************************************************
  2. ******************************************************************
  3. *** ***
  4. *** (C)Copyright 2010, American Megatrends Inc. ***
  5. *** ***
  6. *** All Rights Reserved ***
  7. *** ***
  8. *** 5555 Oakbrook Parkway, Norcross, GA 30093, USA ***
  9. *** ***
  10. *** Phone 770.246.8600 ***
  11. *** ***
  12. ******************************************************************
  13. ******************************************************************
  14. ******************************************************************
  15. *
  16. * AMIConf.h
  17. * AMI specific extended configuration commands
  18. *
  19. * Author: Benson Chuang <bensonchuang@ami.com.tw>
  20. *
  21. ******************************************************************/
  22. #ifndef __AMICONF_H__
  23. #define __AMICONF_H__
  24. #include "Types.h"
  25. #include "ncml.h"
  26. #define RIS_IMAGE_NAME 0
  27. #define RIS_REMOTE_PATH 1
  28. #define RIS_IP_ADDR 2
  29. #define RIS_USER_NAME 3
  30. #define RIS_PASSWORD 4
  31. #define RIS_SHARE_TYPE 5
  32. #define RIS_DOMAIN 6
  33. #define RIS_STOP 0
  34. #define RIS_START 1
  35. #define MAX_SERVICE_COUNT 3
  36. #define DEBUG_MSG_ENABLED 0x1
  37. #define DEBUG_MSG_DISABLED 0x0
  38. #define SET_COMPLETE 0x00
  39. #define SET_IN_PROGRESS 0x01
  40. #define WRITE_TO_FILE 0x01
  41. #define ENABLE_DISABLE_MASK 0xFE
  42. #define BONDING_ACTIVE 1
  43. #define BONDING_NOTACTIVE 0
  44. #define INVALID_PRIV_REQUEST 0xFFFFFFFC
  45. #define INVALID_DOMAIN_NAME 0
  46. extern char *ServiceNameList[MAX_SERVICE_NUM];
  47. extern int AMIGetServiceConf(_NEAR_ INT8U* pReq, INT32U ReqLen, _NEAR_ INT8U* pRes,int BMCInst);
  48. extern int AMISetServiceConf(_NEAR_ INT8U* pReq, INT32U ReqLen, _NEAR_ INT8U* pRes,int BMCInst);
  49. extern int AMIGetDNSConf(_NEAR_ INT8U* pReq, INT32U ReqLen, _NEAR_ INT8U* pRes,int BMCInst);
  50. extern int AMISetDNSConf(_NEAR_ INT8U* pReq, INT32U ReqLen, _NEAR_ INT8U* pRes,int BMCInst);
  51. /* DNS v6 */
  52. extern int AMIGetV6DNSConf(_NEAR_ INT8U* pReq, INT32U ReqLen, _NEAR_ INT8U* pRes,int BMCInst);
  53. extern int AMISetV6DNSConf(_NEAR_ INT8U* pReq, INT32U ReqLen, _NEAR_ INT8U* pRes,int BMCInst);
  54. extern int AMISetActiveSlave(_NEAR_ INT8U *pReq, INT32U ReqLen, _NEAR_ INT8U *pRes ,int BMCInst );
  55. extern int AMILinkDownResilent( _NEAR_ INT8U *pReq, INT32U ReqLen, _NEAR_ INT8U *pRes,int BMCInst);
  56. extern int AMISetIfaceState(_NEAR_ INT8U *pReq, INT32U ReqLen, _NEAR_ INT8U *pRes,int BMCInst);
  57. extern int AMIGetIfaceState(_NEAR_ INT8U *pReq, INT32U ReqLen, _NEAR_ INT8U *pRes,int BMCInst);
  58. extern int AMISetFirewall ( _NEAR_ INT8U *pReq, INT32U ReqLen, _NEAR_ INT8U *pRes ,int BMCInst );
  59. extern int AMIGetFirewall ( _NEAR_ INT8U *pReq, INT32U ReqLen, _NEAR_ INT8U *pRes ,int BMCInst );
  60. extern int AMISetSNMPConf( _NEAR_ INT8U *pReq, INT32U ReqLen, _NEAR_ INT8U *pRes,int BMCInst);
  61. extern int AMIGetSNMPConf( _NEAR_ INT8U *pReq, INT32U ReqLen, _NEAR_ INT8U *pRes, int BMCInst);
  62. extern int AMIGetSELPolicy (_NEAR_ INT8U *pReq, INT32U ReqLen, _NEAR_ INT8U *pRes, int BMCInst);
  63. extern int AMISetSELPolicy (_NEAR_ INT8U *pReq, INT32U ReqLen, _NEAR_ INT8U *pRes, int BMCInst);
  64. extern int AMIGetSELEntires(_NEAR_ INT8U *pReq, INT32U ReqLen, _NEAR_ INT8U *pRes, int BMCInst);
  65. extern int AMIGetSenforInfo(_NEAR_ INT8U *pReq, INT32U ReqLen, _NEAR_ INT8U *pRes, int BMCInst);
  66. extern int AMIGetIPMISessionTimeOut(_NEAR_ INT8U *pReq, INT32U ReqLen, _NEAR_ INT8U *pRes, int BMCInst);
  67. extern int AMIGetUDSInfo(_NEAR_ INT8U *pReq, INT32U ReqLen, _NEAR_ INT8U *pRes, int BMCInst);
  68. extern int AMIGetUDSSessionInfo(_NEAR_ INT8U *pReq, INT32U ReqLen, _NEAR_ INT8U *pRes, int BMCInst);
  69. extern int AMIGetRISConf(_NEAR_ INT8U* pReq, INT32U ReqLen, _NEAR_ INT8U* pRes,int BMCInst);
  70. extern int AMISetRISConf(_NEAR_ INT8U* pReq, INT32U ReqLen, _NEAR_ INT8U* pRes,int BMCInst);
  71. extern int AMIRISStartStop(_NEAR_ INT8U* pReq, INT32U ReqLen, _NEAR_ INT8U* pRes,int BMCInst);
  72. extern int AMIControlDebugMsg(_NEAR_ INT8U *pReq, INT32U ReqLen, _NEAR_ INT8U *pRes, int BMCInst);
  73. extern int AMIGetDebugMsgStatus(_NEAR_ INT8U *pReq, INT32U ReqLen, _NEAR_ INT8U *pRes, int BMCInst);
  74. extern int AMISetExtendedPrivilege(_NEAR_ INT8U *pReq, INT32U ReqLen, _NEAR_ INT8U *pRes,int BMCInst);
  75. extern int AMIGetExtendedPrivilege(_NEAR_ INT8U *pReq, INT32U ReqLen, _NEAR_ INT8U *pRes,int BMCInst);
  76. extern int AMIGetHostLockFeatureStatus(_NEAR_ INT8U *pReq, INT32U ReqLen, _NEAR_ INT8U *pRes, int BMCInst);
  77. extern int AMISetHostLockFeatureStatus(_NEAR_ INT8U *pReq, INT32U ReqLen, _NEAR_ INT8U *pRes, int BMCInst);
  78. extern int AMIGetHostAutoLockStatus(_NEAR_ INT8U *pReq, INT32U ReqLen, _NEAR_ INT8U *pRes, int BMCInst);
  79. extern int AMISetHostAutoLockStatus(_NEAR_ INT8U *pReq, INT32U ReqLen, _NEAR_ INT8U *pRes, int BMCInst);
  80. extern int AMIGetChannelType(_NEAR_ INT8U *pReq, INT32U ReqLen, _NEAR_ INT8U *pRes, int BMCInst);
  81. /*
  82. * @fn ValidateSetIfaceStateBond
  83. * @brief Validate the SetIface State Bond Command inupt
  84. * @param[in] pReq - Request Structure.
  85. * @param[out] pRes - Response Structure.
  86. * @param[out] VLANID - VLANID of the slave interfaces (if any, otherwise return 0).
  87. * @param[in] CheckBondDisable - Validate the Bond disable feature.
  88. * @param[in] BMCInst - Instance of the BMC.
  89. * @return
  90. */
  91. extern int ValidateSetIfaceStateBond (INT8U *pReq, INT8U *pRes, INT8U *VLANID, int CheckBondDisable, int BMCInst);
  92. #endif /* __AMICONF_H__ */