summaryrefslogtreecommitdiffstats
path: root/src/include/usr/errl/errlreasoncodes.H
blob: 7473a4768e4662642232578ae1b506e934ce82d0 (plain)
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
/* IBM_PROLOG_BEGIN_TAG                                                   */
/* This is an automatically generated prolog.                             */
/*                                                                        */
/* $Source: src/include/usr/errl/errlreasoncodes.H $                      */
/*                                                                        */
/* OpenPOWER HostBoot Project                                             */
/*                                                                        */
/* COPYRIGHT International Business Machines Corp. 2011,2014              */
/*                                                                        */
/* 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 __ERRL_REASON_CODES_H
#define __ERRL_REASON_CODES_H

/**
 *  @file errlreasoncodes.H
 *
 *  @brief  Reason code and Module ID definitions for ERRL component.
 *
 */

#include <hbotcompid.H>

namespace ERRORLOG
{
    // Module IDs for ERRL component
    enum errlModuleId
    {
        ERRL_FIRST_MODULE_ID        = 0x00,
        ERRL_USERDATA_TEST_MOD_ID   = 0x01,
        ERRL_TEST_MOD_ID            = 0x02,
        ERRL_RT_TEST_MOD_ID         = 0x03,
        ERRL_ADD_HW_CALLOUT_ID      = 0x04,
        //........
        ERRL_LAST_MODULE_ID         = 0xFF
    };

    // Reason codes for ERRL component
    enum errlReasonCode
    {
        ERRL_FIRST_ERR            = ERRL_COMP_ID | 0x01,
        ERRL_TEST_STRING_UD       = ERRL_COMP_ID | 0x02,
        ERRL_TEST_REASON_CODE     = ERRL_COMP_ID | 0x03,
        ERRL_TEST_ATTRIBUTE_UD    = ERRL_COMP_ID | 0x04,
        ERRL_TEST_LOGREGISTER_UD  = ERRL_COMP_ID | 0x05,
        ERRL_TEST_CALLOUT_UD      = ERRL_COMP_ID | 0x06,
        ERRL_CORE_EX_TARGET_NULL  = ERRL_COMP_ID | 0x07,
        //........
        ERRL_LAST_ERR             = ERRL_COMP_ID | 0xFF
    };

    // Identifiers for ERRL user data sections.
    enum errlUserDetailDataSubsection
    {
        ERRL_UDT_NOFORMAT         = 0x00,
        ERRL_UDT_STRING           = 0x01,
        ERRL_UDT_TARGET           = 0x02,
        ERRL_UDT_BACKTRACE        = 0x03,
        ERRL_UDT_ATTRIBUTE        = 0x04,
        ERRL_UDT_LOGREGISTER      = 0x05,
        ERRL_UDT_CALLOUT          = 0x06,
        ERRL_UDT_PRINTK           = 0x07,
    };
};

#endif
OpenPOWER on IntegriCloud