summaryrefslogtreecommitdiffstats
path: root/src/include/usr/errl/errlreasoncodes.H
blob: 2a3a690ba0ec028b3f8e30e6978a7d4f382249ec (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 $                      */
/*                                                                        */
/* IBM CONFIDENTIAL                                                       */
/*                                                                        */
/* COPYRIGHT International Business Machines Corp. 2011,2014              */
/*                                                                        */
/* p1                                                                     */
/*                                                                        */
/* Object Code Only (OCO) source materials                                */
/* Licensed Internal Code Source Materials                                */
/* IBM HostBoot Licensed Internal Code                                    */
/*                                                                        */
/* The source code for this program is not published or otherwise         */
/* divested of its trade secrets, irrespective of what has been           */
/* deposited with the U.S. Copyright Office.                              */
/*                                                                        */
/* Origin: 30                                                             */
/*                                                                        */
/* 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