summaryrefslogtreecommitdiffstats
path: root/src/usr/diag/prdf/common/framework/resolution/iipCallout.h
blob: 949c948fe2b72de5f5ec16f6959c60b14a8d31d6 (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
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
/* IBM_PROLOG_BEGIN_TAG                                                   */
/* This is an automatically generated prolog.                             */
/*                                                                        */
/* $Source: src/usr/diag/prdf/common/framework/resolution/iipCallout.h $  */
/*                                                                        */
/* OpenPOWER HostBoot Project                                             */
/*                                                                        */
/* COPYRIGHT International Business Machines Corp. 1996,2014              */
/*                                                                        */
/* 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 iipCallout_h
#define iipCallout_h

// Special maintenance notes: *****************************************
//
// This file must maintain the basic format decribed below.  All
// maintenance must preserve that format to ensure the proper function
// of all code that uses this file.
//
// PRD_NULL_MRU must be the first mru in the MruCallout enum and it
// must have a value of zero.  The value "PRD_NULL_MRU" shall be by
// definition a valid MRU value that means "No specific MRU".  Mapping
// code will verify that all MRU values are greater than this value to
// acceptable for translation.
//
// The MruCallout enum must have the name "PRD_MAXMRUNUM" as the last
// mru in the list.  This will then automatically supply the number of
// mrus in the enum to code that must check that.
//
// The MruCallout enum must default to compiler supplied values for each
// mru.  This is how "PRD_NULL_MRU" and "PRD_MAXMRUNUM" will always be
// correct and it precludes any dependencies on other code modules
// requiring a specific value.
//
// PRD_NULL_FRU must be the first fru in the FruValues enum and it
// must have a value of zero.
//
// PRD_NULL_REFCODE must be the first refcode in the RefcodeValues enum
// and it must have a value of zero.
//
// NOTE!!!!!!!
// The Version, Release, Modification and Level values set in this file
// MUST be updated each time a change is made to this file that would
// cause the renumbering of the MRU callout values in the ENUM.
//
// End of Special maintenance notes. *********************************

//--------------------------------------------------------------------
// Includes
//--------------------------------------------------------------------

//--------------------------------------------------------------------
// Constants
//--------------------------------------------------------------------

#ifdef RS6000
#ifndef SERVGENSIMCONTROLS_H
#include <ServGenSimControls.h>
#endif
#endif

#ifdef __CPLUSPLUS
const PRD_CALLOUT_VERSION = 4;
#else
#define PRD_CALLOUT_VERSION 4
#endif

#ifdef __CPLUSPLUS
const PRD_CALLOUT_RELEASE = 3;
#else
#define PRD_CALLOUT_RELEASE 3
#endif

#ifdef __CPLUSPLUS
const PRD_CALLOUT_MODIFICATION = 0;
#else
#define PRD_CALLOUT_MODIFICATION  0
#endif

#ifdef __CPLUSPLUS
const PRD_CALLOUT_LEVEL = 4;
#else
#define PRD_CALLOUT_LEVEL 4
#endif


#ifdef __CPLUSPLUS
const PRD_REFDIM = 5;
#else
#define PRD_REFDIM 5
#endif
                                 /* This is the number of refcodes and*/
                                 /* FRUs that a MRU list can be       */
                                 /* translated into.                  */

#ifdef __CPLUSPLUS
const PRD_MRU_LIST_LIMIT = 24;
#else
#define PRD_MRU_LIST_LIMIT 24
#endif
                                 /* This is the maximum number of MRUs*/
                                 /* that will be allowed to be called */
                                 /* out for mapping.                  */

#ifdef __CPLUSPLUS
const PRD_FRU_AND_RC_LIMIT = 12;
#else
#define PRD_FRU_AND_RC_LIMIT 12
#endif
                                 /* this is the maximum number of FRUs*/
                                 /* and refcodes that will be allowed */
                                 /* in the mapping results.           */


/*--------------------------------------------------------------------*/
/*  User Types                                                        */
/*--------------------------------------------------------------------*/

//#define MruCalloutDCL UINT16     /* How big a mru is in bits.         */

namespace PRDF
{

typedef enum {

  PRD_NULL_MRU,        /* Do NOT use this.  This is an   */
                       /* MRU used to mark the low end   */
                       /* of the valid MRU number ranges.*/




/*********************************************************/
/* Last, the reserved, default value of this             */
/* "NO_MRU" reserved mru name.                           */
/* Use this only if there is no Callout and No service   */
/* action and the SRC will not get displayed.  This MRU  */
/* will be mapped to the ServiceProcessor code refcode   */
/* so that if the SRC from this MRU ever ends up in the  */
/* panel or a log SP code will be called.                */
/* This MRU is used for attentions that do not require   */
/* service actions, such as "scrub complete".            */

  NO_MRU,

/************************************************************/
/* This is the reserved and Last mru and must remain that   */
/* way for proper code function.                            */
  LAST_MRU,
  PRD_MAXMRUNUM = 0x7FFFFFFF}   MruCallout;

} // end namespace PRDF

#endif /* iipCallout_h */

OpenPOWER on IntegriCloud