1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
/* 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,2017 */
/* [+] Google Inc. */
/* [+] International Business Machines Corp. */
/* */
/* */
/* 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 <hbotcompid.H>
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
};
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,
};
};
#endif
|