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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
|
/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: src/usr/errl/errlentry_consts.H $ */
/* */
/* OpenPOWER HostBoot Project */
/* */
/* Contributors Listed Below - COPYRIGHT 2017,2019 */
/* [+] 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 ERRLENTRY_CONSTS_H
#define ERRLENTRY_CONSTS_H
#include <errl/errludcallout.H>
#include <hwas/common/hwasCallout.H>
#include <hwas/common/deconfigGard.H>
using namespace HWAS;
namespace ERRORLOG
{
struct epubProcToSub_t
{
epubProcedureID xProc;
epubSubSystem_t xSubSys;
};
// Procedure to subsystem table.
const epubProcToSub_t PROCEDURE_TO_SUBSYS_TABLE[] =
{
{ EPUB_PRC_FIND_DECONFIGURED_PART , EPUB_CEC_HDW_SUBSYS },
{ EPUB_PRC_SP_CODE , EPUB_FIRMWARE_SP },
{ EPUB_PRC_PHYP_CODE , EPUB_FIRMWARE_PHYP },
{ EPUB_PRC_ALL_PROCS , EPUB_PROCESSOR_SUBSYS },
{ EPUB_PRC_ALL_MEMCRDS , EPUB_MEMORY_SUBSYS },
{ EPUB_PRC_INVALID_PART , EPUB_CEC_HDW_SUBSYS },
{ EPUB_PRC_LVL_SUPP , EPUB_MISC_SUBSYS },
{ EPUB_PRC_PROCPATH , EPUB_CEC_HDW_SUBSYS },
{ EPUB_PRC_NO_VPD_FOR_FRU , EPUB_CEC_HDW_VPD_INTF },
{ EPUB_PRC_MEMORY_PLUGGING_ERROR , EPUB_MEMORY_SUBSYS },
{ EPUB_PRC_FSI_PATH , EPUB_CEC_HDW_SUBSYS },
{ EPUB_PRC_PROC_AB_BUS , EPUB_PROCESSOR_BUS_CTL },
{ EPUB_PRC_PROC_XYZ_BUS , EPUB_PROCESSOR_BUS_CTL },
{ EPUB_PRC_MEMBUS_ERROR , EPUB_MEMORY_SUBSYS },
{ EPUB_PRC_EIBUS_ERROR , EPUB_CEC_HDW_SUBSYS },
{ EPUB_PRC_MEMORY_UE , EPUB_MEMORY_SUBSYS },
{ EPUB_PRC_POWER_ERROR , EPUB_POWER_SUBSYS },
{ EPUB_PRC_PERFORMANCE_DEGRADED , EPUB_MISC_SUBSYS },
{ EPUB_PRC_HB_CODE , EPUB_FIRMWARE_HOSTBOOT },
{ EPUB_PRC_TOD_CLOCK_ERR , EPUB_CEC_HDW_SUBSYS },
{ EPUB_PRC_COOLING_SYSTEM_ERR , EPUB_MISC_SUBSYS },
{ EPUB_PRC_FW_VERIFICATION_ERR , EPUB_FIRMWARE_SUBSYS },
{ EPUB_PRC_GPU_ISOLATION_PROCEDURE, EPUB_CEC_HDW_SUBSYS },
{ EPUB_PRC_NVDIMM_ERR , EPUB_MEMORY_SUBSYS },
};
struct epubTargetTypeToSub_t
{
TARGETING::TYPE xType;
epubSubSystem_t xSubSys;
};
// Target type to subsystem table.
const epubTargetTypeToSub_t TARGET_TO_SUBSYS_TABLE[] =
{
// This list must be kept sorted by TYPE
// Look at generated file attributeenums.H to see order
{ TARGETING::TYPE_NODE , EPUB_CEC_HDW_SUBSYS },
{ TARGETING::TYPE_DIMM , EPUB_MEMORY_DIMM },
{ TARGETING::TYPE_MEMBUF , EPUB_MEMORY_SUBSYS },
{ TARGETING::TYPE_PROC , EPUB_PROCESSOR_SUBSYS },
{ TARGETING::TYPE_EX , EPUB_PROCESSOR_UNIT },
{ TARGETING::TYPE_CORE , EPUB_PROCESSOR_UNIT },
{ TARGETING::TYPE_L4 , EPUB_MEMORY_SUBSYS },
{ TARGETING::TYPE_MCS , EPUB_MEMORY_SUBSYS },
{ TARGETING::TYPE_MBA , EPUB_MEMORY_SUBSYS },
{ TARGETING::TYPE_XBUS , EPUB_PROCESSOR_BUS_CTL },
{ TARGETING::TYPE_ABUS , EPUB_PROCESSOR_SUBSYS },
{ TARGETING::TYPE_NX , EPUB_PROCESSOR_SUBSYS },
{ TARGETING::TYPE_CAPP , EPUB_PROCESSOR_SUBSYS },
{ TARGETING::TYPE_EQ , EPUB_PROCESSOR_SUBSYS },
{ TARGETING::TYPE_MCA , EPUB_MEMORY_SUBSYS },
{ TARGETING::TYPE_MCBIST , EPUB_MEMORY_SUBSYS },
{ TARGETING::TYPE_MI , EPUB_MEMORY_SUBSYS },
{ TARGETING::TYPE_DMI , EPUB_MEMORY_SUBSYS },
{ TARGETING::TYPE_OBUS , EPUB_PROCESSOR_BUS_CTL },
{ TARGETING::TYPE_PEC , EPUB_IO_PHB },
{ TARGETING::TYPE_PHB , EPUB_IO_PHB },
{ TARGETING::TYPE_TPM , EPUB_CEC_HDW_SUBSYS },
{ TARGETING::TYPE_MC , EPUB_MEMORY_SUBSYS },
{ TARGETING::TYPE_SMPGROUP , EPUB_CEC_HDW_SUBSYS },
};
struct epubBusTypeToSub_t
{
HWAS::busTypeEnum xType;
epubSubSystem_t xSubSys;
};
// Bus type to subsystem table
const epubBusTypeToSub_t BUS_TO_SUBSYS_TABLE[] =
{
{ HWAS::FSI_BUS_TYPE , EPUB_CEC_HDW_CHIP_INTF },
{ HWAS::DMI_BUS_TYPE , EPUB_MEMORY_BUS },
{ HWAS::A_BUS_TYPE , EPUB_PROCESSOR_BUS_CTL },
{ HWAS::X_BUS_TYPE , EPUB_PROCESSOR_BUS_CTL },
{ HWAS::I2C_BUS_TYPE , EPUB_CEC_HDW_I2C_DEVS },
{ HWAS::PSI_BUS_TYPE , EPUB_CEC_HDW_SP_PHYP_INTF },
{ HWAS::O_BUS_TYPE , EPUB_PROCESSOR_BUS_CTL },
};
struct epubClockTypeToSub_t
{
HWAS::clockTypeEnum xType;
epubSubSystem_t xSubSys;
};
// Clock type to subsystem table
const epubClockTypeToSub_t CLOCK_TO_SUBSYS_TABLE[] =
{
{ HWAS::TODCLK_TYPE , EPUB_CEC_HDW_TOD_HDW },
{ HWAS::MEMCLK_TYPE , EPUB_CEC_HDW_CLK_CTL },
{ HWAS::OSCREFCLK_TYPE , EPUB_CEC_HDW_CLK_CTL },
{ HWAS::OSCPCICLK_TYPE , EPUB_CEC_HDW_CLK_CTL },
{ HWAS::OSCPCICLK0_TYPE , EPUB_CEC_HDW_CLK_CTL },
{ HWAS::OSCPCICLK1_TYPE , EPUB_CEC_HDW_CLK_CTL },
};
struct epubPartTypeToSub_t
{
HWAS::partTypeEnum xType;
epubSubSystem_t xSubSys;
};
// PART type to subsystem table
const epubPartTypeToSub_t PART_TO_SUBSYS_TABLE[] =
{
{ HWAS::FLASH_CONTROLLER_PART_TYPE , EPUB_CEC_HDW_SUBSYS },
{ HWAS::PNOR_PART_TYPE , EPUB_CEC_HDW_SUBSYS },
{ HWAS::SBE_SEEPROM_PART_TYPE , EPUB_PROCESSOR_SUBSYS },
{ HWAS::VPD_PART_TYPE , EPUB_CEC_HDW_SUBSYS },
{ HWAS::LPC_SLAVE_PART_TYPE , EPUB_CEC_HDW_SUBSYS },
{ HWAS::GPIO_EXPANDER_PART_TYPE , EPUB_MEMORY_SUBSYS },
{ HWAS::SPIVID_SLAVE_PART_TYPE , EPUB_POWER_SUBSYS },
{ HWAS::TOD_CLOCK , EPUB_CEC_HDW_TOD_HDW },
{ HWAS::MEM_REF_CLOCK , EPUB_CEC_HDW_CLK_CTL },
{ HWAS::PROC_REF_CLOCK , EPUB_CEC_HDW_CLK_CTL },
{ HWAS::PCI_REF_CLOCK , EPUB_CEC_HDW_CLK_CTL },
{ HWAS::SMP_CABLE , EPUB_CEC_HDW_SUBSYS },
};
struct epubSensorTypeToSub_t
{
HWAS::sensorTypeEnum xType;
epubSubSystem_t xSubSys;
};
struct epubSensorTypeToSub_t SENSOR_TO_SUBSYS_TABLE[] =
{
{ HWAS::GPU_FUNC_SENSOR , EPUB_IO_SUBSYS },
{ HWAS::GPU_TEMPERATURE_SENSOR , EPUB_IO_SUBSYS },
{ HWAS::GPU_MEMORY_TEMP_SENSOR , EPUB_IO_SUBSYS },
};
} //end namespace
#endif //#ifndef ERRLENTRY_CONSTS_H
|