summaryrefslogtreecommitdiffstats
path: root/src/usr/diag/prdf/common/prdfEnums.H
blob: 7f6b907b859fda07a3041057831dd6df93fb06ab (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,2013              */
/*                                                                        */
/* 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 */

#ifdef  __HOSTBOOT_MODULE

    #ifndef __PRD_RULE_COMPILE
    #include <hwas/common/hwasCallout.H>

    // FIXME: RTC: 62867 will resolve this
    namespace HWSV
    {
        enum
        {
            // hwsvDeconfigEnum
            // mapping from HWSV enums to HB ones
            // eventually these HWAS will make it way to fips
            HWSV_NO_DECONFIG    = HWAS::NO_DECONFIG,
            HWSV_DECONFIG       = HWAS::DECONFIG,
            HWSV_DEFER_DECONFIG = HWAS::DELAYED_DECONFIG
        };
    };

    // 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

    // 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,

        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 hwsvHCDBUpdate;
        typedef uint32_t hwsvTermEnum;
        typedef uint32_t hwsvGardEnum;
        typedef uint32_t hwsvDeconfigEnum;
        typedef uint32_t hwsvDeconfigSchedule;

        enum
        {
            // hwsvTermEnum
            HWSV_SYS_NO_TERMINATE = 0,

            // hwsvHCDBUpdate
            HWSV_HCDB_DO_UPDATE = 0,
            HWSV_HCDB_OVERRIDE,

            // hwsvGardEnum
            HWSV_NO_GARD = 0,
            HWSV_DECONFIG_GARD,

            //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