summaryrefslogtreecommitdiffstats
path: root/src/usr/diag/prdf/common/prdfEnums.H
blob: f173b71b94f184c1ec8eb277a21d86169d4a1bc0 (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
135
136
137
138
139
140
/* IBM_PROLOG_BEGIN_TAG                                                   */
/* This is an automatically generated prolog.                             */
/*                                                                        */
/* $Source: src/usr/diag/prdf/common/prdfEnums.H $                        */
/*                                                                        */
/* OpenPOWER HostBoot Project                                             */
/*                                                                        */
/* Contributors Listed Below - COPYRIGHT 2012,2014                        */
/* [+] 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                                                     */

#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
    #define EPUB_PRC_TOD_CLOCK_ERR  0x56 //FIXME RTC 116446

    // 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,
        EPUB_PRC_TOD_CLOCK_ERR  = 0x56,

        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