/* IBM_PROLOG_BEGIN_TAG */ /* This is an automatically generated prolog. */ /* */ /* $Source: src/include/usr/ipmi/ipmi_reasoncodes.H $ */ /* */ /* OpenPOWER HostBoot Project */ /* */ /* Contributors Listed Below - COPYRIGHT 2014,2019 */ /* [+] Google Inc. */ /* [+] International Business Machines Corp. */ /* [+] Maxim Polyakov */ /* */ /* */ /* Licensed under the Apache License, Version 2.0 (the "License"); */ /* you may not use this file except in compliance with the License. */ /* You may obtain a copy of the License at */ /* */ /* http://www.apache.org/licenses/LICENSE-2.0 */ /* */ /* Unless required by applicable law or agreed to in writing, software */ /* distributed under the License is distributed on an "AS IS" BASIS, */ /* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or */ /* implied. See the License for the specific language governing */ /* permissions and limitations under the License. */ /* */ /* IBM_PROLOG_END_TAG */ #ifndef __IPMI_REASONCODES_H #define __IPMI_REASONCODES_H #include namespace IPMI { enum IPMIModuleId { MOD_IPMISRV_SEND = 0x01, // IPMI::send/IPMI::sendrecv MOD_IPMISRV_REPLY = 0x02, // IPMI::respond MOD_IPMISENSOR = 0x03, // IPMI::sensor MOD_IPMIDCMI = 0x04, // IPMI::sensor MOD_IPMIRT = 0x05, // rt IPMI::send/IPMI::sendrecv MOD_IPMISRV_POSTEVENT = 0x06, // IpmiRP::postEvent MOD_IPMIFRU_INV = 0x07, // IPMI:fruInventory MOD_IPMISENSOR_TYPE = 0x08, // IPMI::getSensorType MOD_IPMISENSOR_ENTITY_ID = 0x09, // IPMI::getSensorEntityId MOD_IPMISENSOR_NAME = 0x0A, // IPMI::getSensorName MOD_IPMISENSOR_REBOOTCNTRL = 0x0B, // IPMI::SENSOR getRebootControl MOD_IPMISENSOR_HBVOLATILE = 0x0C, // IPMI::SENSOR getHbVolatile }; enum IPMIReasonCode { RC_INVALID_QRESPONSE = IPMI_COMP_ID | 0x01, RC_INVALID_SENDRECV = IPMI_COMP_ID | 0x02, RC_INVALID_SEND = IPMI_COMP_ID | 0x03, RC_INVALID_SENSOR_CMD = IPMI_COMP_ID | 0x04, RC_SENSOR_NOT_SETTABLE = IPMI_COMP_ID | 0x05, RC_EVENT_DATA_NOT_SETTABLE = IPMI_COMP_ID | 0x06, RC_SENSOR_NOT_PRESENT = IPMI_COMP_ID | 0x07, RC_SET_SENSOR_FAILURE = IPMI_COMP_ID | 0x08, RC_READ_EVENT_FAILURE = IPMI_COMP_ID | 0x09, RC_DCMI_CMD_FAILED = IPMI_COMP_ID | 0x0a, RC_SENSOR_READING_NOT_AVAIL = IPMI_COMP_ID | 0x0b, RC_GET_SENSOR_TYPE_CMD_FAILED = IPMI_COMP_ID | 0x0c, RC_SENSOR_NOT_FOUND = IPMI_COMP_ID | 0x0d, RC_INVALID_VPD_DATA = IPMI_COMP_ID | 0x0e, RC_INVALID_SENSOR_NUMBER = IPMI_COMP_ID | 0x0f, RC_INVALID_SENSOR_SETTING = IPMI_COMP_ID | 0x10, RC_GET_DCMI_CAP_CMD_FAILED = IPMI_COMP_ID | 0x11, }; }; #endif