summaryrefslogtreecommitdiffstats
path: root/src/usr/diag/prdf/common/prdfEnums.H
blob: c46f5b703a429f3596cc95df2badf79e1d222132 (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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
/* IBM_PROLOG_BEGIN_TAG                                                   */
/* This is an automatically generated prolog.                             */
/*                                                                        */
/* $Source: src/usr/diag/prdf/common/prdfEnums.H $                        */
/*                                                                        */
/* IBM CONFIDENTIAL                                                       */
/*                                                                        */
/* COPYRIGHT International Business Machines Corp. 2012,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 __prdfEnums_H
#define __prdfEnums_H

/** @file prdfEnums.H */

namespace PRDF
{

/**
 * @brief  MFG threshold sync message types
 * */
enum MFG_THRES_SYNC_MSG_TYPE
{
    MFG_THRES_SYNC_FROM_FSP  = 0x1,
    MFG_TRACE_SYNC_TO_FSP    = 0x2
};

}; // end namespace PRDF

#ifdef  __HOSTBOOT_MODULE

    #ifndef __PRD_RULE_COMPILE

    #include <errl/errlmanager.H> // Must be included before including
                                  // hwasCallout.H, otherwise the compile will
                                  // fail.
    #include <hwas/common/hwasCallout.H>

    // FIXME: remove these mapping once the enums are made common
    #define EPUB_PRC_ALL_PROCS      HWAS::EPUB_PRC_ALL_PROCS
    #define EPUB_PRC_SP_CODE        HWAS::EPUB_PRC_SP_CODE
    #define EPUB_PRC_PHYP_CODE      HWAS::EPUB_PRC_PHYP_CODE
    #define EPUB_PRC_LVL_SUPP       HWAS::EPUB_PRC_LVL_SUPP
    #define EPUB_PRC_MEMBUS_ERROR   HWAS::EPUB_PRC_MEMBUS_ERROR
    #define EPUB_PRC_PROC_XYZ_BUS   HWAS::EPUB_PRC_PROC_XYZ_BUS
    #define EPUB_PRC_PROC_AB_BUS    HWAS::EPUB_PRC_PROC_AB_BUS
    #define EPUB_PRC_MEMORY_UE      0x4F

    // FIXME: remove these mapping once the enums are made common
    #define SRCI_PRIORITY_HIGH  HWAS::SRCI_PRIORITY_HIGH
    #define SRCI_PRIORITY_MED   HWAS::SRCI_PRIORITY_MED
    #define SRCI_PRIORITY_MEDA  HWAS::SRCI_PRIORITY_MEDA
    #define SRCI_PRIORITY_MEDB  HWAS::SRCI_PRIORITY_MEDB
    #define SRCI_PRIORITY_MEDC  HWAS::SRCI_PRIORITY_MEDC
    #define SRCI_PRIORITY_LOW   HWAS::SRCI_PRIORITY_LOW

    #endif

    // FIXME: Currently hostboot errl does not support these enums. Stubbing
    //        them out for now.

    enum
    {
        #ifdef __PRD_RULE_COMPILE
        //FIXME: these enum values have to match with
        //what are defined in include/usr/hwas/common/hwasCallout.H
        EPUB_PRC_SP_CODE      = 0x04,
        EPUB_PRC_PHYP_CODE    = 0x05,
        EPUB_PRC_ALL_PROCS    = 0x08,
        EPUB_PRC_LVL_SUPP     = 0x10,
        EPUB_PRC_PROC_AB_BUS  = 0x30,
        EPUB_PRC_PROC_XYZ_BUS = 0x31,
        EPUB_PRC_MEMBUS_ERROR = 0x34,
        EPUB_PRC_MEMORY_UE    = 0x4F,

        SRCI_PRIORITY_LOW   = 1,
        SRCI_PRIORITY_MEDC  = 2,
        SRCI_PRIORITY_MEDB  = 3,
        SRCI_PRIORITY_MEDA  = 4,
        SRCI_PRIORITY_MED   = 5,
        SRCI_PRIORITY_HIGH  = 6,
        #endif

        // ERRL Action Flag
        ERRL_ACTION_SA = 0,
        ERRL_ACTION_REPORT,
        ERRL_ACTION_CALL_HOME,
        ERRL_ACTION_HIDDEN,
        ERRL_ACTION_DONT_TERMINATE
    };

    namespace HWSV
    {
        typedef uint32_t hwsvDiagUpdate;
        typedef uint32_t hwsvTermEnum;
        typedef uint32_t hwsvDeconfigSchedule;

        enum
        {
            // hwsvTermEnum
            HWSV_SYS_NO_TERMINATE = 0,

            // hwsvDiagUpdate
            HWSV_DIAG_NOT_NEEDED = 0,
            HWSV_DIAG_NEEDED,

            //hwsvDeconfigSchedule
            HWSV_DECONFIG_IMMEDIATE = 0,
            HWSV_DECONFIG_DEFER
        };
    };

#else // if not __HOSTBOOT_MODULE

    #include <epub_service_codes.H> // for EPUB_PRC_*
    #include <srci.H>               // for SRCI_PRIORITY_*

#endif // __HOSTBOOT_MODULE

#endif /* __prdfEnums_H */

OpenPOWER on IntegriCloud