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
|
/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: src/include/usr/fapi2/hwpf_fapi2_reasoncodes.H $ */
/* */
/* OpenPOWER HostBoot Project */
/* */
/* Contributors Listed Below - COPYRIGHT 2015,2016 */
/* [+] 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 */
///
/// @file hwpf_fapi2_reasoncodes.H
///
/// @brief Define error reason codes for FAPI2 HWPs
///
///
#ifndef HWPF_FAPI2_REASONCODES_H_
#define HWPF_FAPI2_REASONCODES_H_
#include <hbotcompid.H>
namespace fapi2
{
/**
* @brief Defines the FAPI2 HWPF error log module IDs
*/
enum fapi2ModuleId
{
MOD_FAPI2_RC_TO_ERRL = 0x01,
MOD_FAPI2_GET_TARGETING_TARGET = 0x02,
MOD_FAPI2_PLAT_GET_TARGET_NAME = 0x03,
MOD_FAPI2_PLAT_HWP_TEST = 0x04,
MOD_FAPI2_PLAT_GET_PARENT_TEST = 0x05,
MOD_FAPI2_PLAT_GET_CHILDREN_TEST = 0x06,
MOD_FAPI2_VERIFYCFAMACCESSTARGET = 0x07,
MOD_FAPI2_PLAT_GET_OTHER_END_TEST = 0x08,
MOD_FAPI2_PLAT_GET_OTHER_END = 0x09,
MOD_FAPI2_MVPD_ACCESS = 0x0A,
MOD_FAPI2_PLAT_GET_CHILDREN_FILTER_TEST = 0x0B,
MOD_FAPI2_GET_TARGETING_ATTR = 0x0C,
MOD_FAPI2_SET_TARGETING_ATTR = 0x0D,
};
/**
* @brief Defines the HWPF error log reason codes
*/
enum fapi2ReasonCode
{
// FAPI generated errors (must match return_code_defs.H)
RC_INVALID_ATTR_GET = HWPF_COMP_ID | 0x01,
RC_INVALID_CHIP_EC_FEATURE_GET = HWPF_COMP_ID | 0x02,
RC_INVALID_TARG_TARGET = HWPF_COMP_ID | 0x07,
RC_MISMATCHED_FAPI_TARG_TARGET = HWPF_COMP_ID | 0x08,
RC_UNKNOWN_MODEL = HWPF_COMP_ID | 0x09,
RC_NULL_FAPI_TARGET = HWPF_COMP_ID | 0x0A,
RC_LOOKING_FOR_TYPE_NA = HWPF_COMP_ID | 0x0B,
RC_INCORRECT_TARGET = HWPF_COMP_ID | 0x0C,
// MVPD generated errors
RC_INVALID_RECORD = HWPF_COMP_ID | 0x0D,
RC_INVALID_KEYWORD = HWPF_COMP_ID | 0x0E,
RC_RECORD_OUT_OF_BOUNDS = HWPF_COMP_ID | 0x10,
RC_KEYWORD_OUT_OF_BOUNDS = HWPF_COMP_ID | 0x11,
//Platform generated errors
RC_NO_PROCS_FOUND = FAPI2_COMP_ID | 0x0B,
RC_NO_PATH_TO_TARGET_FOUND = FAPI2_COMP_ID | 0x0C,
RC_CORE_NO_EX_FOUND = FAPI2_COMP_ID | 0x0D,
RC_CORE_NO_EQ_FOUND = FAPI2_COMP_ID | 0x0E,
RC_CORE_NO_PROC_FOUND = FAPI2_COMP_ID | 0x10,
RC_EX_NO_EQ_FOUND = FAPI2_COMP_ID | 0x11,
RC_EX_NO_PROC_FOUND = FAPI2_COMP_ID | 0x12,
RC_EQ_NO_PROC_FOUND = FAPI2_COMP_ID | 0x13,
RC_MCA_NO_MCS_FOUND = FAPI2_COMP_ID | 0x14,
RC_MCA_NO_PROC_FOUND = FAPI2_COMP_ID | 0x15,
RC_MCS_NO_PROC_FOUND = FAPI2_COMP_ID | 0x16,
RC_MCBIST_NO_PROC_FOUND = FAPI2_COMP_ID | 0x17,
RC_PHB_NO_PEC_FOUND = FAPI2_COMP_ID | 0x18,
RC_PHB_NO_PROC_FOUND = FAPI2_COMP_ID | 0x19,
RC_PEC_NO_PROC_FOUND = FAPI2_COMP_ID | 0x1a,
RC_XBUS_NO_PROC_FOUND = FAPI2_COMP_ID | 0x1b,
RC_OBUS_NO_PROC_FOUND = FAPI2_COMP_ID | 0x1c,
RC_NV_NO_PROC_FOUND = FAPI2_COMP_ID | 0x1d,
RC_PPE_NO_PROC_FOUND = FAPI2_COMP_ID | 0x1e,
RC_PERV_NO_PROC_FOUND = FAPI2_COMP_ID | 0x1f,
RC_CAPP_NO_PROC_FOUND = FAPI2_COMP_ID | 0x20,
RC_SBE_NO_PROC_FOUND = FAPI2_COMP_ID | 0x21,
RC_INVALID_CHILD_COUNT = FAPI2_COMP_ID | 0x22,
RC_UNIT_NO_PERV_FOUND = FAPI2_COMP_ID | 0x23,
RC_INCORRECT_OTHER_END = FAPI2_COMP_ID | 0x24,
RC_FOUND_TOO_MANY_PEERS = FAPI2_COMP_ID | 0x25,
RC_FOUND_NO_PEERS = FAPI2_COMP_ID | 0x26,
RC_INVALID_ATTRIBUTE = FAPI2_COMP_ID | 0x27,
// HWP generated errors
RC_HWP_GENERATED_ERROR = HWPF_COMP_ID | 0x0f,
};
/**
* @brief Defines the HWPF error log user detail data sections
*/
enum fapi2UserDetailDataSubSection
{
HWPF_FAPI2_UDT_HWP_RCVALUE = 0x01,
HWPF_FAPI2_UDT_HWP_FFDC = 0x02,
HWPF_FAPI2_UDT_STEP_ERROR_DETAILS = 0x03,
};
};
#endif // HWPF_FAPI2_REASONCODES_H_
|