summaryrefslogtreecommitdiffstats
path: root/src/include/usr/initservice/initsvcreasoncodes.H
blob: 77428c770a9abb167dc0af861e00e00135914d83 (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
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
//  IBM_PROLOG_BEGIN_TAG
//  This is an automatically generated prolog.
//
//  $Source: src/include/usr/initservice/initsvcreasoncodes.H $
//
//  IBM CONFIDENTIAL
//
//  COPYRIGHT International Business Machines Corp. 2011
//
//  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 other-
//  wise divested of its trade secrets, irrespective of what has
//  been deposited with the U.S. Copyright Office.
//
//  Origin: 30
//
//  IBM_PROLOG_END

/**
 * @file    initsvcreasoncodes.H
 *
 *  Detail all the possible reason codes for errorlog returns
 *
 */
#ifndef __INITSERVICE_RC_H
#define __INITSERVICE_RC_H

#include <hbotcompid.H>

namespace   INITSERVICE
{

/**
 * @enum    InitServiceModuleID
 *
 *  module id's used in returned errorlogs
 */
enum    InitServiceModuleID
{
    UNDEFINED_MODULE_ERRL_ID            =   0x00,

    //  base image modules
    BASE_INITSVC_ERRL_ID                =   0x01,
    START_TRACE_ERRL_ID                 =   0x02,
    START_ERRL_ERRL_ID                  =   0x03,
    START_PNORDD_ERRL_ID                =   0x04,
    START_VFS_ERRL_ID                   =   0x05,
    START_EXTINITSVC_ERRL_ID            =   0x06,

    // extended image modules
    START_ECMDDATABUFFER_ERRL_ID        =   0x10,
    START_HWPF_ERRL_ID                  =   0x11,
    START_FAPI_ERRL_ID                  =   0x12,
    START_HWP_ERRL_ID                   =   0x13,
    START_PLAT_ERRL_ID                  =   0x14,
    EXECUTE_ISTEPS_ERRL_ID              =   0x15,
    START_FSIDD_ERRL_ID                 =   0x16,
    START_FSISCOM_ERRL_ID               =   0x17,
    START_TARGETING_ERRL_ID             =   0x18,
    START_I2C_ERRL_ID                   =   0x19,
    START_INTR_ERRL_ID                  =   0x1A,
    START_SPD_ERRL_ID                   =   0x1B,


    //  Internal InitService codes
    INITSVC_START_TASK_MOD_ID           =   0x20,
    INITSVC_START_FN_MOD_ID             =   0x21,
    INITSVC_TASK_RETURNED_ERROR_ID      =   0x22,
    EXTINITSVC_TASK_RETURNED_ERROR_ID   =   0x23,
    CXXTEST_TASK_RETURNED_ERROR_ID      =   0x24,
    ISTEP_RETURNED_ERROR_ID             =   0x25,
    INITSVC_DO_SHUTDOWN_MOD_ID          =   0x26,

    //
    //  ISTEP   module id's
    //
    HWAS_ERRL_ID                =   0x30,
    DMI_TRAINING_ERRL_ID,

    //  reserve some tasks for my unit tests...
    START_CXXTEST_ERRL_ID       =   0xf0,
    INIT_SVC_TEST1_ERRL_ID      =   0xf1,
    INIT_SVC_TEST2_ERRL_ID      =   0xf2,
    INIT_SVC_TEST3_ERRL_ID      =   0xf3,
    INIT_SVC_TEST4_ERRL_ID      =   0xf4,
    INIT_SVC_TEST5_ERRL_ID      =   0xf5,

};


enum    InitServiceReasonCode
{
    START_TASK_FAILED           =   INITSVC_COMP_ID | 0x01,
    INVALID_TASK_TYPE           =   INITSVC_COMP_ID | 0x02,
    START_FN_FAILED             =   INITSVC_COMP_ID | 0x03,
    NULL_FN_PTR                 =   INITSVC_COMP_ID | 0x04,
    ISTEP_FAILED_NO_ERRLOG      =   INITSVC_COMP_ID | 0x05,
    INITSVC_FAILED_NO_ERRLOG    =   INITSVC_COMP_ID | 0x06,
    EXTINITSVC_FAILED_NO_ERRLOG =   INITSVC_COMP_ID | 0x07,
    CXXTEST_FAILED_NO_ERRLOG    =   INITSVC_COMP_ID | 0x08,
    SHUTDOWN_FLUSH_FAILED       =   INITSVC_COMP_ID | 0x09,

};

};  // namespace    INITSERVICE

#endif
OpenPOWER on IntegriCloud