123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246 |
- /****************************************************************
- ****************************************************************
- ** **
- ** (C)Copyright 2005-2006, American Megatrends Inc. **
- ** **
- ** All Rights Reserved. **
- ** **
- ** 6145-F, Northbelt Parkway, Norcross, **
- ** **
- ** Georgia - 30071, USA. Phone-(770)-246-8600. **
- ** **
- ****************************************************************
- ****************************************************************
- ****************************************************************
- *
- * IPMI_AMI.h
- * AMI specific IPMI Commands
- *
- * Author: Basavaraj Astekar <basavaraja@ami.com>
- *
- *****************************************************************/
- #ifndef IPMI_AMI_H_
- #define IPMI_AMI_H_
- /*Zone Name Length
- #define TIME_ZONE_LEN 64
- #define TIMEZONE_OFFSET_PVE "Etc/GMT+"
- #define TIMEZONE_OFFSET_NVE "Etc/GMT-"
- #ifdef __GNUC__
- #define PACKED __attribute__ ((packed))
- #else
- #define PACKED
- #pragma pack( 1 )
- #endif*/
- /**
- *@sturct AMIGetChNumRes_T
- *@brief Structure to get respective channel num
- * for non BMC related Sensor Owner IDs
- *
- typedef struct
- {
- INT8U CompletionCode;
- INT8U ChannelNum;
- }PACKED AMIGetChNumRes_T;
- */
- /**
- *@struct AMIGetEthIndexReq_T
- *@brief Structure to get respective Channel Num
- *
- typedef struct
- {
- INT8U ChannelNum;
- }PACKED AMIGetEthIndexReq_T;
- */
- /**
- *@struct AMIGetEthIndexRes_T
- *@brief Structure to hold the respective EthIndex
- * for the requested Channel Num
- */
- /*
- typedef struct
- {
- INT8U CompletionCode;
- INT8U EthIndex;
- }PACKED AMIGetEthIndexRes_T;
- #ifdef __GNUC__
- #else
- #define PACKED
- #pragma pack( )
- #endif
- */
- /* AMI Net function group command numbers */
- /* define your command numbers here */
- #define CMD_AMI_YAFU_COMMON_NAK (0X00FF)
- #define CMD_AMI_YAFU_GET_FLASH_INFO (0x0001)
- #define CMD_AMI_YAFU_GET_FIRMWARE_INFO (0x0002)
- #define CMD_AMI_YAFU_GET_FMH_INFO (0x0003)
- #define CMD_AMI_YAFU_GET_STATUS (0x0004)
- #define CMD_AMI_YAFU_ACTIVATE_FLASH (0x0010)
- #define CMD_AMI_YAFU_ALLOCATE_MEMORY (0x0020)
- #define CMD_AMI_YAFU_FREE_MEMORY (0x0021)
- #define CMD_AMI_YAFU_READ_FLASH (0x0022)
- #define CMD_AMI_YAFU_WRITE_FLASH (0x0023)
- #define CMD_AMI_YAFU_ERASE_FLASH (0x0024)
- #define CMD_AMI_YAFU_PROTECT_FLASH (0x0025)
- #define CMD_AMI_YAFU_ERASE_COPY_FLASH (0x0026)
- #define CMD_AMI_YAFU_VERIFY_FLASH (0x0027)
- #define CMD_AMI_YAFU_GET_ECF_STATUS (0x0028)
- #define CMD_AMI_YAFU_GET_VERIFY_STATUS (0x0029)
- #define CMD_AMI_YAFU_READ_MEMORY (0x0030)
- #define CMD_AMI_YAFU_WRITE_MEMORY (0x0031)
- #define CMD_AMI_YAFU_COPY_MEMORY (0x0032)
- #define CMD_AMI_YAFU_COMPARE_MEMORY (0x0033)
- #define CMD_AMI_YAFU_CLEAR_MEMORY (0x0034)
- #define CMD_AMI_YAFU_GET_BOOT_CONFIG (0x0040)
- #define CMD_AMI_YAFU_SET_BOOT_CONFIG (0x0041)
- #define CMD_AMI_YAFU_GET_BOOT_VARS (0x0042)
- #define CMD_AMI_YAFU_DEACTIVATE_FLASH_MODE (0x0050)
- #define CMD_AMI_YAFU_RESET_DEVICE (0x0051)
- #define CMD_AMI_YAFU_SWITCH_FLASH_DEVICE (0x0052)
- #define CMD_AMI_YAFU_RESTORE_FLASH_DEVICE (0x0053)
- #define CMD_AMI_YAFU_DUAL_IMAGE_SUP (0x0054)
- #define CMD_AMI_YAFU_FIRMWARE_SELECT_FLASH (0x0055)
- #define CMD_AMI_GET_CHANNEL_NUM (0x60)
- #define CMD_AMI_GET_ETH_INDEX (0x62)
- #define CMD_AMI_GET_EMAIL_USER (0x63)
- #define CMD_AMI_SET_EMAIL_USER (0x64)
- #define CMD_AMI_RESET_PASS (0x65)
- #define CMD_AMI_RESTORE_DEF (0x66)
- #define CMD_AMI_GET_LOG_CONF (0x67)
- #define CMD_AMI_SET_LOG_CONF (0x68)
- /* AMI Specific Extend Commands */
- #define CMD_AMI_GET_SERVICE_CONF (0x69)
- #define CMD_AMI_SET_SERVICE_CONF (0x6a)
- #define CMD_AMI_GET_DNS_CONF (0x6b)
- #define CMD_AMI_SET_DNS_CONF (0x6c)
- #define CMD_AMI_LINK_DOWN_RESILENT (0x70)
- #define CMD_AMI_SET_IFACE_STATE (0x71)
- #define CMD_AMI_GET_IFACE_STATE (0x72)
- #define CMD_AMI_GET_BIOS_CODE (0x73)
- // DNS v6 commands */
- #define CMD_AMI_GET_V6DNS_CONF (0x74)
- #define CMD_AMI_SET_V6DNS_CONF (0x75)
- #define CMD_AMI_SET_FIREWALL (0x76)
- #define CMD_AMI_GET_FIREWALL (0x77)
- #define CMD_SET_SMTP_CONFIG_PARAMS ( 0x78 )
- #define CMD_GET_SMTP_CONFIG_PARAMS ( 0x79 )
- //FRU details
- #define CMD_AMI_GET_FRU_DETAILS (0x80)
- #define CMD_AMI_GET_EMAILFORMAT_USER (0x81)
- #define CMD_AMI_SET_EMAILFORMAT_USER (0x82)
- //Linux Root User Access Commands
- #define CMD_AMI_GET_ROOT_USER_ACCESS (0x90)
- #define CMD_AMI_SET_ROOT_PASSWORD (0x91)
- //Set User Shelltype
- #define CMD_AMI_GET_USER_SHELLTYPE (0x92)
- #define CMD_AMI_SET_USER_SHELLTYPE (0x93)
- /* Trigger Event Configuration Command Numbers */
- #define CMD_AMI_SET_TRIGGER_EVT (0x94)
- #define CMD_AMI_GET_TRIGGER_EVT (0x95)
- /* SOL Configuration Command Numbers */
- #define CMD_AMI_GET_SOL_CONFIG_PARAMS (0x96)
- /* Login Audit Config Command Numbers */
- #define CMD_AMI_SET_LOGIN_AUDIT_CFG (0x97)
- #define CMD_AMI_GET_LOGIN_AUDIT_CFG (0x98)
- #define CMD_AMI_GET_IPV6_ADDRESS (0x99)
- /* IPMI PAM Reordering Command */
- #define CMD_AMI_SET_PAM_ORDER 0x7a
- #define CMD_AMI_GET_PAM_ORDER 0x7b
- /* AMI-SNMP related Commands*/
- #define CMD_AMI_GET_SNMP_CONF 0x7c
- #define CMD_AMI_SET_SNMP_CONF 0x7d
- /* AMI SEL Commands */
- #define CMD_AMI_GET_SEL_POLICY 0x7e
- #define CMD_AMI_SET_SEL_POLICY 0x7f
- /* AMI-Preserve Conf related Commands*/
- #define CMD_AMI_SET_PRESERVE_CONF 0x83
- #define CMD_AMI_GET_PRESERVE_CONF 0x84
- /* Retrive SEL Entries Command */
- #define CMD_AMI_GET_SEL_ENTIRES 0x85
- /* Retrive Sensor Info Command*/
- #define CMD_AMI_GET_SENSOR_INFO 0x86
- /* TFTP FW Update Commands */
- #define CMD_AMI_START_TFTP_FW_UPDATE 0x87
- #define CMD_AMI_GET_TFTP_FW_PROGRESS_STATUS 0x88
- #define CMD_AMI_SET_FW_CONFIGURATION 0x89
- #define CMD_AMI_GET_FW_CONFIGURATION 0x8A
- #define CMD_AMI_SET_FW_PROTOCOL 0x8B
- #define CMD_AMI_GET_FW_PROTOCOL 0x8C
- #define CMD_AMI_GET_IPMI_SESSION_TIMEOUT 0x8D
- #define CMD_AMI_GET_UDS_CHANNEL_INFO 0x8E
- #define CMD_AMI_DUAL_IMG_SUPPORT 0x8F
- #define CMD_AMI_GET_UDS_SESSION_INFO 0x9A
- #define CMD_AMI_SET_PWD_ENCRYPTION_KEY 0x9B
- /* Set the U-boot Memtest Variable and Get Memtest Status*/
- #define CMD_AMI_SET_UBOOT_MEMTEST 0x9C
- #define CMD_AMI_GET_UBOOT_MEMTEST_STATUS 0x9D
- /* Remote Images service Commands */
- #define CMD_AMI_GET_RIS_CONF (0x9E)
- #define CMD_AMI_SET_RIS_CONF (0x9F)
- #define CMD_AMI_RIS_START_STOP (0xA0)
- #define CMD_AMI_CTL_DBG_MSG 0xA1
- #define CMD_AMI_GET_DBG_MSG_STATUS 0xA2
- #define CMD_AMI_SET_EXTENDED_PRIV 0xA3
- #define CMD_AMI_GET_EXTENDED_PRIV 0xA4
- /*Macro's are used to set and get the TimeZone*/
- #define CMD_AMI_SET_TIMEZONE 0xA5
- #define CMD_AMI_GET_TIMEZONE 0xA6
- /* AMI-Preserve All Conf related Commands*/
- #define CMD_AMI_SET_ALL_PRESERVE_CONF 0xBA
- #define CMD_AMI_GET_ALL_PRESERVE_CONF 0xBB
- #define CMD_AMI_GET_NTP_CFG 0xA7
- #define CMD_AMI_SET_NTP_CFG 0xA8
- #define CMD_AMI_YAFU_SIGNIMAGEKEY_REPLACE 0xA9
- /**Enable/DISable the Virual Dvices*/
- #define CMD_AMI_VIRTUAL_DEVICE_SET_STATUS 0xAA
- #define CMD_AMI_VIRTUAL_DEVICE_GET_STATUS 0xAB
- #define CMD_AMI_GET_LICENSE_VALIDITY 0XAD
- #define CMD_AMI_ADD_LICENSE_KEY 0XAC
- /* Host Lock Monitor Status Get and Set*/
- #define CMD_AMI_GET_HOST_LOCK_FEATURE_STATUS 0xAE
- #define CMD_AMI_SET_HOST_LOCK_FEATURE_STATUS 0xAF
- #define CMD_AMI_GET_HOST_AUTO_LOCK_STATUS 0xBC
- #define CMD_AMI_SET_HOST_AUTO_LOCK_STATUS 0xBD
- #define CMD_AMI_GET_CHANNEL_TYPE 0xBE
- #endif /* IPMI_AMI_H */
|