123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702 |
- #ifndef SUPPORT_H
- #define SUPPORT_H
- #include "AppDevice.h"
- #include "IPMDevice.h"
- #include "Bridge.h"
- #include "ChassisDevice.h"
- #include "OemSMMCmds.h"
- #include "Sensor.h"
- #include "PICMG.h"
- #include "Chassis.h"
- #include "SensorEvent.h"
- #include "FRU.h"
- #include "SDR.h"
- #include "SEL.h"
- #include "SELRecord.h"
- #include "Storage.h"
- #include "SDRRecord.h"
- #define IPM_DEVICE 1
- #define APP_DEVICE 1
- #define CHASSIS_DEVICE 1
- #define EVENT_PROCESSING_DEVICE 0
- #define PEF_DEVICE 0
- #define SENSOR_DEVICE 1
- #define SDR_DEVICE 1
- #define SEL_DEVICE 1
- #define FRU_DEVICE 1
- #define BRIDGE_DEVICE 0
- #define AMI_DEVICE 0
- #define OEM_DEVICE 0
- #define PICMG_DEVICE 0
- #define FW_UPGRADE 0
- #define FRB_SUPPORT 0
- #define TERMINAL_MODE_SUPPORT 1
- #define INTERNAL_PSGOOD_MONITORING 0
- #define NO_WDT_PRETIMEOUT_INTERRUPT 0
- #define IPMI20_SUPPORT 0
- #define MAX_SOL_IN_PAYLD_SIZE 252
- #define MAX_SOL_OUT_PAYLD_SIZE 252
- #define MAX_IN_PAYLD_SIZE 1024
- #define MAX_OUT_PAYLD_SIZE 1024
- #define MAX_PYLDS_SUPPORT 2
- #define MAX_PAYLD_INST 15
- #define SYS_SERIAL_PORT_NUM 0
- #define OEM_CONFIG_DATA_SUPPORTED 1
- #define MAX_OEM_CONFIG_DATA_SIZE 100
- #define UNIMPLEMENTED -1
- #define GET_DCMI_CAPABILITY_INFO GetDCMICapabilityInfo
- #define GET_POWER_READING GetPowerReading
- #define GET_POWER_LIMIT GetPowerLimit
- #define SET_POWER_LIMIT SetPowerLimit
- #define ACTIVATE_POWER_LIMIT ActivatePowerLimit
- #define GET_ASSET_TAG GetAssetTag
- #define GET_DCMI_SENSOR_INFO GetDCMISensorInfo
- #define SET_ASSET_TAG SetAssetTag
- #define GET_MANAGEMENT_CONTROLLER_ID_STRING GetManagementControllerIdString
- #define SET_MANAGEMENT_CONTROLLER_ID_STRING SetManagementControllerIdString
- #define SET_THERMAL_LIMIT SetThermalLimit
- #define GET_THERMAL_LIMIT GetThermalLimit
- #define GET_TEMPERATURE_READING GetTemperatureReading
- #define GET_DCMI_CONFIG_PARAMS GetDCMIConfigParameters
- #define SET_DCMI_CONFIG_PARAMS SetDCMIConfigParameters
- #define GET_DEV_ID GetDevID
- #define BROADCAST_GET_DEV_ID UNIMPLEMENTED
- #define COLD_RESET ColdReset
- #define WARM_RESET WarmReset
- #define GET_SELF_TEST_RESULTS GetSelfTestResults
- #define MFG_TEST_ON MfgTestOn
- #define SET_ACPI_PWR_STATE SetACPIPwrState
- #define GET_ACPI_PWR_STATE GetACPIPwrState
- #define GET_DEV_GUID GetDevGUID
- #define GET_NETFN_SUP GetNetFnSup
- #define GET_CMD_SUP GetCmdSup
- #define GET_SUBFN_SUP GetSubFnSup
- #define GET_CONFIG_CMDS GetConfigCmds
- #define GET_CONFIG_SUB_FNS GetConfigSubFns
- #define SET_CMD_ENABLES SetCmdEnables
- #define GET_CMD_ENABLES GetCmdEnables
- #define SET_SUBFN_ENABLES SetSubFnEnables
- #define GET_SUBFN_ENABLES GetSubFnEnables
- #define GET_OEM_NETFN_IANA_SUPPORT GetOEMNetFnIANASupport
- #define RESET_WDT ResetWDT
- #define SET_WDT SetWDT
- #define GET_WDT GetWDT
- #define SET_BMC_GBL_ENABLES SetBMCGlobalEnables
- #define GET_BMC_GBL_ENABLES GetBMCGlobalEnables
- #define CLR_MSG_FLAGS ClrMsgFlags
- #define GET_MSG_FLAGS GetMsgFlags
- #define ENBL_MSG_CH_RCV EnblMsgChannelRcv
- #define GET_MSG GetMessage
- #define SEND_MSG SendMessage
- #define READ_EVT_MSG_BUFFER ReadEvtMsgBuffer
- #define GET_BTIFC_CAP UNIMPLEMENTED
- #define GET_SYSTEM_GUID GetSystemGUID
- #define GET_CH_AUTH_CAP GetChAuthCap
- #define GET_SESSION_CHALLENGE GetSessionChallenge
- #define ACTIVATE_SESSION ActivateSession
- #define SET_SESSION_PRIV_LEVEL SetSessionPrivLevel
- #define CLOSE_SESSION CloseSession
- #define GET_SESSION_INFO GetSessionInfo
- #define GET_AUTH_CODE GetAuthCode
- #define SET_CH_ACCESS SetChAccess
- #define GET_CH_ACCESS GetChAccess
- #define GET_CH_INFO GetChInfo
- #define SET_USER_ACCESS SetUserAccess
- #define GET_USER_ACCESS GetUserAccess
- #define SET_USER_NAME SetUserName
- #define GET_USER_NAME GetUserName
- #define SET_USER_PASSWORD SetUserPassword
- #define GET_SYSTEM_INFO_PARAM GetSystemInfoParam
- #define SET_SYSTEM_INFO_PARAM SetSystemInfoParam
- #define ACTIVATE_PAYLOAD ActivatePayload
- #define DEACTIVATE_PAYLOAD DeactivatePayload
- #define GET_PAYLD_ACT_STATUS GetPayldActStatus
- #define GET_PAYLD_INST_INFO GetPayldInstInfo
- #define SET_USR_PAYLOAD_ACCESS SetUsrPayloadAccess
- #define GET_USR_PAYLOAD_ACCESS GetUsrPayloadAccess
- #define GET_CH_PAYLOAD_SUPPORT GetChPayloadSupport
- #define GET_CH_PAYLOAD_VER GetChPayloadVersion
- #define GET_CH_OEM_PAYLOAD_INFO GetChOemPayloadInfo
- #define MASTER_WRITE_READ MasterWriteRead
- #define GET_CH_CIPHER_SUITES GetChCipherSuites
- #define SUS_RES_PAYLOAD_ENCRYPT SusResPayldEncrypt
- #define SET_CH_SECURITY_KEYS SetChSecurityKeys
- #define GET_SYS_IFC_CAPS GetSysIfcCaps
- #define GET_CHASSIS_CAPABILITIES GetChassisCaps
- #define GET_CHASSIS_STATUS GetChassisStatus
- #define CHASSIS_CONTROL ChassisControl
- #define CHASSIS_RESET_CMD UNIMPLEMENTED
- #define CHASSIS_IDENTIFY_CMD GetChassisIdentify
- #define SET_CHASSIS_CAPABILITIES SetChassisCaps
- #define SET_POWER_RESTORE_POLICY SetPowerRestorePolicy
- #define GET_SYSTEM_RESTART_CAUSE GetSysRestartCause
- #define SET_SYSTEM_BOOT_OPTIONS SetSysBOOTOptions
- #define GET_SYSTEM_BOOT_OPTIONS GetSysBOOTOptions
- #define GET_POH_COUNTER GetPOHCounter
- #define SET_FP_BTN_ENABLES SetFPButtonEnables
- #define SET_POWER_CYCLE_INTERVAL SetPowerCycleInterval
- #define SET_EVENT_RECEIVER SetEventReceiver
- #define GET_EVENT_RECEIVER GetEventReceiver
- #define PLATFORM_EVENT PlatformEventMessage
- #define GET_PEF_CAPABILITIES GetPEFCapabilities
- #define ARM_PEF_POSTPONE_TIMER ArmPEFPostponeTimer
- #define SET_PEF_CONFIG_PARAMS SetPEFConfigParams
- #define GET_PEF_CONFIG_PARAMS GetPEFConfigParams
- #define SET_LAST_PROCESSED_EVENT_ID SetLastProcessedEventId
- #define GET_LAST_PROCESSED_EVENT_ID GetLastProcessedEventId
- #define ALERT_IMMEDIATE AlertImmediate
- #define PET_ACKNOWLEDGE PETAcknowledge
- #define GET_DEV_SDR_INFO GetDevSDRInfo
- #define GET_DEV_SDR GetDevSDR
- #define RESERVE_DEV_SDR_REPOSITORY ReserveDevSDRRepository
- #define GET_SENSOR_READING_FACTORS GetSensorReadingFactors
- #define SET_SENSOR_HYSTERISIS SetSensorHysterisis
- #define GET_SENSOR_HYSTERISIS GetSensorHysterisis
- #define SET_SENSOR_THRESHOLDS SetSensorThresholds
- #define GET_SENSOR_THRESHOLDS GetSensorThresholds
- #define SET_SENSOR_EVENT_ENABLE SetSensorEventEnable
- #define GET_SENSOR_EVENT_ENABLE GetSensorEventEnable
- #define REARM_SENSOR_EVENTS ReArmSensor
- #define GET_SENSOR_EVENT_STATUS GetSensorEventStatus
- #define GET_SENSOR_READING GetSensorReading
- #define SET_SENSOR_READING SetSensorReading
- #define SET_SENSOR_TYPE SetSensorType
- #define GET_SENSOR_TYPE GetSensorType
- #define GET_FRU_INVENTORY_AREA_INFO GetFRUAreaInfo
- #define READ_FRU_DATA ReadFRUData
- #define WRITE_FRU_DATA WriteFRUData
- #define GET_SDR_REPOSITORY_INFO GetSDRRepositoryInfo
- #define GET_SDR_REPOSITORY_ALLOCATION_INFO GetSDRRepositoryAllocInfo
- #define RESERVE_SDR_REPOSITORY ReserveSDRRepository
- #define GET_SDR GetSDR
- #define ADD_SDR AddSDR
- #define PARTIAL_ADD_SDR PartialAddSDR
- #define DELETE_SDR DeleteSDR
- #define CLEAR_SDR_REPOSITORY ClearSDRRepository
- #define GET_SDR_REPOSITORY_TIME GetSDRRepositoryTime
- #define SET_SDR_REPOSITORY_TIME UNIMPLEMENTED
- #define ENTER_SDR_REPOSITORY_UPDATE_MODE UNIMPLEMENTED
- #define EXIT_SDR_REPOSITORY_UPDATE_MODE UNIMPLEMENTED
- #define RUN_INITIALIZATION_AGENT RunInitializationAgent
- #define GET_SEL_INFO GetSELInfo
- #define GET_SEL_ALLOCATION_INFO GetSELAllocationInfo
- #define RESERVE_SEL ReserveSEL
- #define GET_SEL_ENTRY GetSELEntry
- #define ADD_SEL_ENTRY AddSELEntry
- #define PARTIAL_ADD_SEL_ENTRY PartialAddSELEntry
- #define DELETE_SEL_ENTRY DeleteSELEntry
- #define CLEAR_SEL ClearSEL
- #define GET_SEL_TIME GetSELTime
- #define SET_SEL_TIME SetSELTime
- #define GET_AUXILIARY_LOG_STATUS UNIMPLEMENTED
- #define SET_AUXILIARY_LOG_STATUS UNIMPLEMENTED
- #define GET_SEL_TIME_UTC_OFFSET GetSELTimeUTC_Offset
- #define SET_SEL_TIME_UTC_OFFSET SetSELTimeUTC_Offset
- #define SET_LAN_CONFIGURATION_PARAMETERS SetLanConfigParam
- #define GET_LAN_CONFIGURATION_PARAMETERS GetLanConfigParam
- #define SUSPEND_BMC_ARPS SuspendBMCArps
- #define GET_IP_UDP_RMCP_STATISTICS UNIMPLEMENTED
- #define SET_SERIAL_MODEM_CONFIGURATION SetSerialModemConfig
- #define GET_SERIAL_MODEM_CONFIGURATION GetSerialModemConfig
- #define SET_SERIAL_MODEM_MUX SetSerialModemMUX
- #define GET_TAP_RESPONSE GetTAPResponseCodes
- #define SET_PPP_UDP_PROXY_TRANSMIT_DATA UNIMPLEMENTED
- #define GET_PPP_UDP_PROXY_TRANSMIT_DATA UNIMPLEMENTED
- #define SEND_PPP_UDP_PROXY_PACKET UNIMPLEMENTED
- #define GET_PPP_UDP_PROXY_RECEIVE_DATA UNIMPLEMENTED
- #define SERIAL_MODEM_CONNECTION_ACTIVITY UNIMPLEMENTED
- #define CALLBACK CallBack
- #define SET_USER_CALLBACK_OPTIONS SetUserCallBackOptions
- #define GET_USER_CALLBACK_OPTIONS GetUserCallBackOptions
- #define SOL_ACTIVATING_COMMAND SOLActivating
- #define GET_SOL_CONFIGURATION GetSOLConfig
- #define SET_SOL_CONFIGURATION SetSOLConfig
- #define GET_BRIDGE_STATE GetBridgeState
- #define SET_BRIDGE_STATE SetBridgeState
- #define GET_ICMB_ADDR GetICMBAddr
- #define SET_ICMB_ADDR SetICMBAddr
- #define SET_BRIDGE_PROXY_ADDR SetBridgeProxyAddr
- #define GET_BRIDGE_STATISTICS GetBridgeStatistics
- #define GET_ICMB_CAPABILITIES GetICMBCaps
- #define CLEAR_BRIDGE_STATISTICS ClearBridgeStatistics
- #define GET_BRIDGE_PROXY_ADDR GetBridgeProxyAddr
- #define GET_ICMB_CONNECTOR_INFO GetICMBConnectorInfo
- #define GET_ICMB_CONNECTION_ID UNIMPLEMENTED
- #define SEND_ICMB_CONNECTION_ID UNIMPLEMENTED
- #define PREPARE_FOR_DISCOVERY PrepareForDiscovery
- #define GET_ADDRESSES GetAddresses
- #define SET_DISCOVERED SetDiscovered
- #define GET_CHASSIS_DEVICE_ID GetChassisDeviceID
- #define SET_CHASSIS_DEVICE_ID SetChassisDeviceID
- #define BRIDGE_REQUEST BridgeReq
- #define BRIDGE_MESSAGE BridgeMsg
- #define GET_EVENT_COUNT GetEventCount
- #define SET_EVENT_DESTINATION SetEventDest
- #define SET_EVENT_RECEPTION_STATE SetEventReceptionState
- #define SEND_ICMB_EVENT_MESSAGE SendICMBEventMsg
- #define GET_EVENT_DESTINATION GetEventDest
- #define GET_EVENT_RECEPTION_STATE GetEventReceptionState
- #if EVENT_PROCESSING_DEVICE == 1
- #define EVENT_GENERATOR 1
- #define EVENT_RECEIVER 1
- #else
- #define EVENT_GENERATOR 0
- #define EVENT_RECEIVER 0
- #endif
- #if DELETE_SDR != UNIMPLEMENTED
- #define MARK_FOR_DELETION_SUPPORT 0x00
- #endif
- #if OEM_DEVICE == 1
- #include "OemCmdSupport.h"
- #endif
- #endif
|