summaryrefslogtreecommitdiffstats
path: root/src/usr/hwpf/hwp/occ/occ_procedures/p8_pm_firinit.C
blob: 6927d7f6689e9b2fc190e1aff75e5484a66b973f (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
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
/* IBM_PROLOG_BEGIN_TAG                                                   */
/* This is an automatically generated prolog.                             */
/*                                                                        */
/* $Source: src/usr/hwpf/hwp/occ/occ_procedures/p8_pm_firinit.C $         */
/*                                                                        */
/* IBM CONFIDENTIAL                                                       */
/*                                                                        */
/* COPYRIGHT International Business Machines Corp. 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                                                     */
/* begin_generated_IBM_copyright_prolog                            */
/*                                                                 */
/* This is an automatically generated copyright prolog.            */
/* After initializing,  DO NOT MODIFY OR MOVE                      */ 
/* --------------------------------------------------------------- */
/* IBM Confidential                                                */
/*                                                                 */
/* Licensed Internal Code Source Materials                         */
/*                                                                 */
/* (C)Copyright IBM Corp.  2014, 2014                              */
/*                                                                 */
/* 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.                       */
/*  -------------------------------------------------------------- */
/*                                                                 */
/* end_generated_IBM_copyright_prolog                              */
// $Id: p8_pm_firinit.C,v 1.3 2012/09/11 10:31:30 pchatnah Exp $
// $Source: /afs/awd/projects/eclipz/KnowledgeBase/.cvsroot/eclipz/chips/p8/working/procedures/ipl/fapi/p8_pm_firinit.C,v $
//------------------------------------------------------------------------------
// *! (C) Copyright International Business Machines Corp. 2011
// *! All Rights Reserved -- Property of IBM
// *! *** IBM Confidential ***
//------------------------------------------------------------------------------
// *! OWNER NAME: Pradeep CN         Email: pradeepcn@in.ibm.com
// *!
/// \file p8_pm_init.C
/// \brief Calls each PM unit firinit procedrues to configure the FIRs to 
///         predefined types :
///             
///             
///             
///              
///             
// *!
// *! Procedure Prereq:
// *!   o System clocks are running
// *!
//------------------------------------------------------------------------------
///
/// \todo   Review
///
///
/// High-level procedure flow:
///
/// \verbatim
///     - call p8_pm_pmc_firinit.C *chiptarget 
///     - evaluate RC
///
///     - call p8_pm_pba_firinit.C *chiptarget 
///     - evaluate RC
///
///
///  \endverbatim
///
// ----------------------------------------------------------------------
// Includes
// ----------------------------------------------------------------------


#include <fapi.H>
#include "p8_scom_addresses.H"
#include "p8_pm_firinit.H"
#include "p8_pm_pmc_firinit.H"
#include "p8_pm_pba_firinit.H"
#include "p8_pm_pcbs_firinit.H"
#include "p8_pm_oha_firinit.H"
#include "p8_pm_occ_firinit.H"




// #ifdef FAPIECMD
extern "C" {
  // #endif 


using namespace fapi;

// ----------------------------------------------------------------------
// Constant definitions
// ----------------------------------------------------------------------


// ---------------------------------------------------------------------- 
// Global variables
// ----------------------------------------------------------------------


// ----------------------------------------------------------------------
// Function prototypes
// ----------------------------------------------------------------------


// ----------------------------------------------------------------------
// Function definitions
// ----------------------------------------------------------------------
fapi::ReturnCode p8_pm_firinitlist(Target &i_target);

// ----------------------------------------------------------------------
// p8_pm_init 
// ----------------------------------------------------------------------

fapi::ReturnCode
p8_pm_firinit(const fapi::Target &i_target )
{

    fapi::ReturnCode l_rc;
 


    //  ******************************************************************
    //  PMC_FIRS 
    //  ******************************************************************  
   
    FAPI_DBG("");
    FAPI_EXEC_HWP(l_rc, p8_pm_pmc_firinit , i_target );
    if (l_rc) 
    { 
        FAPI_ERR("ERROR: p8_pm_pmc_firinit detected failed result"); 
        return l_rc;
    }    
  


    //  ******************************************************************
    //  PBA 
    //  ******************************************************************  
   
   
    FAPI_DBG("");
    FAPI_EXEC_HWP(l_rc, p8_pm_pba_firinit , i_target );
    if (l_rc) 
    { 
        FAPI_ERR("ERROR: p8_pm_pba_firinit detected failed result"); 
        return l_rc;
    }    
  

    //  ******************************************************************
    //  OHA 
    //  ******************************************************************  
   
   
    FAPI_DBG("");
    FAPI_EXEC_HWP(l_rc, p8_pm_oha_firinit , i_target );
    if (l_rc) 
    { 
        FAPI_ERR("ERROR: p8_pm_oha_firinit detected failed result"); 
        return l_rc;
    }    
  
    //  ******************************************************************
    //  PCBS
    //  ******************************************************************  
   
   
    FAPI_DBG("");
    FAPI_EXEC_HWP(l_rc, p8_pm_pcbs_firinit , i_target );
    if (l_rc) 
    { 
        FAPI_ERR("ERROR: p8_pm_pcbs_firinit detected failed result"); 
        return l_rc;
    }    


    //  ******************************************************************
    //  OCC
    //  ******************************************************************  
   
   
    FAPI_DBG("");
    FAPI_EXEC_HWP(l_rc,  p8_pm_occ_firinit , i_target );
    if (l_rc) 
    { 
        FAPI_ERR("ERROR: p8_pm_occ_firinit detected failed result"); 
        return l_rc;
    }    
  

  
    return l_rc;
  
} 


  //#ifdef FAPIECMD
} //end extern C
//#endif 
OpenPOWER on IntegriCloud