IPMI_AMI.h 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246
  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. *
  16. * IPMI_AMI.h
  17. * AMI specific IPMI Commands
  18. *
  19. * Author: Basavaraj Astekar <basavaraja@ami.com>
  20. *
  21. *****************************************************************/
  22. #ifndef IPMI_AMI_H_
  23. #define IPMI_AMI_H_
  24. /*Zone Name Length
  25. #define TIME_ZONE_LEN 64
  26. #define TIMEZONE_OFFSET_PVE "Etc/GMT+"
  27. #define TIMEZONE_OFFSET_NVE "Etc/GMT-"
  28. #ifdef __GNUC__
  29. #define PACKED __attribute__ ((packed))
  30. #else
  31. #define PACKED
  32. #pragma pack( 1 )
  33. #endif*/
  34. /**
  35. *@sturct AMIGetChNumRes_T
  36. *@brief Structure to get respective channel num
  37. * for non BMC related Sensor Owner IDs
  38. *
  39. typedef struct
  40. {
  41. INT8U CompletionCode;
  42. INT8U ChannelNum;
  43. }PACKED AMIGetChNumRes_T;
  44. */
  45. /**
  46. *@struct AMIGetEthIndexReq_T
  47. *@brief Structure to get respective Channel Num
  48. *
  49. typedef struct
  50. {
  51. INT8U ChannelNum;
  52. }PACKED AMIGetEthIndexReq_T;
  53. */
  54. /**
  55. *@struct AMIGetEthIndexRes_T
  56. *@brief Structure to hold the respective EthIndex
  57. * for the requested Channel Num
  58. */
  59. /*
  60. typedef struct
  61. {
  62. INT8U CompletionCode;
  63. INT8U EthIndex;
  64. }PACKED AMIGetEthIndexRes_T;
  65. #ifdef __GNUC__
  66. #else
  67. #define PACKED
  68. #pragma pack( )
  69. #endif
  70. */
  71. /* AMI Net function group command numbers */
  72. /* define your command numbers here */
  73. #define CMD_AMI_YAFU_COMMON_NAK (0X00FF)
  74. #define CMD_AMI_YAFU_GET_FLASH_INFO (0x0001)
  75. #define CMD_AMI_YAFU_GET_FIRMWARE_INFO (0x0002)
  76. #define CMD_AMI_YAFU_GET_FMH_INFO (0x0003)
  77. #define CMD_AMI_YAFU_GET_STATUS (0x0004)
  78. #define CMD_AMI_YAFU_ACTIVATE_FLASH (0x0010)
  79. #define CMD_AMI_YAFU_ALLOCATE_MEMORY (0x0020)
  80. #define CMD_AMI_YAFU_FREE_MEMORY (0x0021)
  81. #define CMD_AMI_YAFU_READ_FLASH (0x0022)
  82. #define CMD_AMI_YAFU_WRITE_FLASH (0x0023)
  83. #define CMD_AMI_YAFU_ERASE_FLASH (0x0024)
  84. #define CMD_AMI_YAFU_PROTECT_FLASH (0x0025)
  85. #define CMD_AMI_YAFU_ERASE_COPY_FLASH (0x0026)
  86. #define CMD_AMI_YAFU_VERIFY_FLASH (0x0027)
  87. #define CMD_AMI_YAFU_GET_ECF_STATUS (0x0028)
  88. #define CMD_AMI_YAFU_GET_VERIFY_STATUS (0x0029)
  89. #define CMD_AMI_YAFU_READ_MEMORY (0x0030)
  90. #define CMD_AMI_YAFU_WRITE_MEMORY (0x0031)
  91. #define CMD_AMI_YAFU_COPY_MEMORY (0x0032)
  92. #define CMD_AMI_YAFU_COMPARE_MEMORY (0x0033)
  93. #define CMD_AMI_YAFU_CLEAR_MEMORY (0x0034)
  94. #define CMD_AMI_YAFU_GET_BOOT_CONFIG (0x0040)
  95. #define CMD_AMI_YAFU_SET_BOOT_CONFIG (0x0041)
  96. #define CMD_AMI_YAFU_GET_BOOT_VARS (0x0042)
  97. #define CMD_AMI_YAFU_DEACTIVATE_FLASH_MODE (0x0050)
  98. #define CMD_AMI_YAFU_RESET_DEVICE (0x0051)
  99. #define CMD_AMI_YAFU_SWITCH_FLASH_DEVICE (0x0052)
  100. #define CMD_AMI_YAFU_RESTORE_FLASH_DEVICE (0x0053)
  101. #define CMD_AMI_YAFU_DUAL_IMAGE_SUP (0x0054)
  102. #define CMD_AMI_YAFU_FIRMWARE_SELECT_FLASH (0x0055)
  103. #define CMD_AMI_GET_CHANNEL_NUM (0x60)
  104. #define CMD_AMI_GET_ETH_INDEX (0x62)
  105. #define CMD_AMI_GET_EMAIL_USER (0x63)
  106. #define CMD_AMI_SET_EMAIL_USER (0x64)
  107. #define CMD_AMI_RESET_PASS (0x65)
  108. #define CMD_AMI_RESTORE_DEF (0x66)
  109. #define CMD_AMI_GET_LOG_CONF (0x67)
  110. #define CMD_AMI_SET_LOG_CONF (0x68)
  111. /* AMI Specific Extend Commands */
  112. #define CMD_AMI_GET_SERVICE_CONF (0x69)
  113. #define CMD_AMI_SET_SERVICE_CONF (0x6a)
  114. #define CMD_AMI_GET_DNS_CONF (0x6b)
  115. #define CMD_AMI_SET_DNS_CONF (0x6c)
  116. #define CMD_AMI_LINK_DOWN_RESILENT (0x70)
  117. #define CMD_AMI_SET_IFACE_STATE (0x71)
  118. #define CMD_AMI_GET_IFACE_STATE (0x72)
  119. #define CMD_AMI_GET_BIOS_CODE (0x73)
  120. // DNS v6 commands */
  121. #define CMD_AMI_GET_V6DNS_CONF (0x74)
  122. #define CMD_AMI_SET_V6DNS_CONF (0x75)
  123. #define CMD_AMI_SET_FIREWALL (0x76)
  124. #define CMD_AMI_GET_FIREWALL (0x77)
  125. #define CMD_SET_SMTP_CONFIG_PARAMS ( 0x78 )
  126. #define CMD_GET_SMTP_CONFIG_PARAMS ( 0x79 )
  127. //FRU details
  128. #define CMD_AMI_GET_FRU_DETAILS (0x80)
  129. #define CMD_AMI_GET_EMAILFORMAT_USER (0x81)
  130. #define CMD_AMI_SET_EMAILFORMAT_USER (0x82)
  131. //Linux Root User Access Commands
  132. #define CMD_AMI_GET_ROOT_USER_ACCESS (0x90)
  133. #define CMD_AMI_SET_ROOT_PASSWORD (0x91)
  134. //Set User Shelltype
  135. #define CMD_AMI_GET_USER_SHELLTYPE (0x92)
  136. #define CMD_AMI_SET_USER_SHELLTYPE (0x93)
  137. /* Trigger Event Configuration Command Numbers */
  138. #define CMD_AMI_SET_TRIGGER_EVT (0x94)
  139. #define CMD_AMI_GET_TRIGGER_EVT (0x95)
  140. /* SOL Configuration Command Numbers */
  141. #define CMD_AMI_GET_SOL_CONFIG_PARAMS (0x96)
  142. /* Login Audit Config Command Numbers */
  143. #define CMD_AMI_SET_LOGIN_AUDIT_CFG (0x97)
  144. #define CMD_AMI_GET_LOGIN_AUDIT_CFG (0x98)
  145. #define CMD_AMI_GET_IPV6_ADDRESS (0x99)
  146. /* IPMI PAM Reordering Command */
  147. #define CMD_AMI_SET_PAM_ORDER 0x7a
  148. #define CMD_AMI_GET_PAM_ORDER 0x7b
  149. /* AMI-SNMP related Commands*/
  150. #define CMD_AMI_GET_SNMP_CONF 0x7c
  151. #define CMD_AMI_SET_SNMP_CONF 0x7d
  152. /* AMI SEL Commands */
  153. #define CMD_AMI_GET_SEL_POLICY 0x7e
  154. #define CMD_AMI_SET_SEL_POLICY 0x7f
  155. /* AMI-Preserve Conf related Commands*/
  156. #define CMD_AMI_SET_PRESERVE_CONF 0x83
  157. #define CMD_AMI_GET_PRESERVE_CONF 0x84
  158. /* Retrive SEL Entries Command */
  159. #define CMD_AMI_GET_SEL_ENTIRES 0x85
  160. /* Retrive Sensor Info Command*/
  161. #define CMD_AMI_GET_SENSOR_INFO 0x86
  162. /* TFTP FW Update Commands */
  163. #define CMD_AMI_START_TFTP_FW_UPDATE 0x87
  164. #define CMD_AMI_GET_TFTP_FW_PROGRESS_STATUS 0x88
  165. #define CMD_AMI_SET_FW_CONFIGURATION 0x89
  166. #define CMD_AMI_GET_FW_CONFIGURATION 0x8A
  167. #define CMD_AMI_SET_FW_PROTOCOL 0x8B
  168. #define CMD_AMI_GET_FW_PROTOCOL 0x8C
  169. #define CMD_AMI_GET_IPMI_SESSION_TIMEOUT 0x8D
  170. #define CMD_AMI_GET_UDS_CHANNEL_INFO 0x8E
  171. #define CMD_AMI_DUAL_IMG_SUPPORT 0x8F
  172. #define CMD_AMI_GET_UDS_SESSION_INFO 0x9A
  173. #define CMD_AMI_SET_PWD_ENCRYPTION_KEY 0x9B
  174. /* Set the U-boot Memtest Variable and Get Memtest Status*/
  175. #define CMD_AMI_SET_UBOOT_MEMTEST 0x9C
  176. #define CMD_AMI_GET_UBOOT_MEMTEST_STATUS 0x9D
  177. /* Remote Images service Commands */
  178. #define CMD_AMI_GET_RIS_CONF (0x9E)
  179. #define CMD_AMI_SET_RIS_CONF (0x9F)
  180. #define CMD_AMI_RIS_START_STOP (0xA0)
  181. #define CMD_AMI_CTL_DBG_MSG 0xA1
  182. #define CMD_AMI_GET_DBG_MSG_STATUS 0xA2
  183. #define CMD_AMI_SET_EXTENDED_PRIV 0xA3
  184. #define CMD_AMI_GET_EXTENDED_PRIV 0xA4
  185. /*Macro's are used to set and get the TimeZone*/
  186. #define CMD_AMI_SET_TIMEZONE 0xA5
  187. #define CMD_AMI_GET_TIMEZONE 0xA6
  188. /* AMI-Preserve All Conf related Commands*/
  189. #define CMD_AMI_SET_ALL_PRESERVE_CONF 0xBA
  190. #define CMD_AMI_GET_ALL_PRESERVE_CONF 0xBB
  191. #define CMD_AMI_GET_NTP_CFG 0xA7
  192. #define CMD_AMI_SET_NTP_CFG 0xA8
  193. #define CMD_AMI_YAFU_SIGNIMAGEKEY_REPLACE 0xA9
  194. /**Enable/DISable the Virual Dvices*/
  195. #define CMD_AMI_VIRTUAL_DEVICE_SET_STATUS 0xAA
  196. #define CMD_AMI_VIRTUAL_DEVICE_GET_STATUS 0xAB
  197. #define CMD_AMI_GET_LICENSE_VALIDITY 0XAD
  198. #define CMD_AMI_ADD_LICENSE_KEY 0XAC
  199. /* Host Lock Monitor Status Get and Set*/
  200. #define CMD_AMI_GET_HOST_LOCK_FEATURE_STATUS 0xAE
  201. #define CMD_AMI_SET_HOST_LOCK_FEATURE_STATUS 0xAF
  202. #define CMD_AMI_GET_HOST_AUTO_LOCK_STATUS 0xBC
  203. #define CMD_AMI_SET_HOST_AUTO_LOCK_STATUS 0xBD
  204. #define CMD_AMI_GET_CHANNEL_TYPE 0xBE
  205. #endif /* IPMI_AMI_H */