summaryrefslogtreecommitdiffstats
path: root/src/include/usr/isteps/istepmasterlist.H
blob: 74b296be8d42d397a0560053e8981896bfc47162 (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
/* IBM_PROLOG_BEGIN_TAG                                                   */
/* This is an automatically generated prolog.                             */
/*                                                                        */
/* $Source: src/include/usr/isteps/istepmasterlist.H $                    */
/*                                                                        */
/* IBM CONFIDENTIAL                                                       */
/*                                                                        */
/* COPYRIGHT International Business Machines Corp. 2011,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 __ISTEPS_ISTEPMASTERLIST_H
#define __ISTEPS_ISTEPMASTERLIST_H


/**
 * @file    istepmasterlist.H
 *
 *  ExtTaskInfo structs for each IStep that will run.
 *
 *  This is the master list of ISTeps.
 *
 *  To add a new IStep,  make a new file in the isteps directory and name
 *  it "istepNlist.H", where N is the IStep number.
 *  The file will have 2 const arrays of structs defined (see initsvcstructs.H)
 *
 *  const TaskInfo g_istepN[]   //  define the substeps/"named isteps" within
 *                              //  the IStep
 *
 *  Read through initsvcstructs.H to understand how the TaskInfo Array is
 *  put together.
 *
 *  Then build the ExtTaskInfo struct:
 *  const ExtTaskInfo   g_istepNTaskList =  {
 *      g_istepN,
 *      ( sizeof(g_istepN)/sizeof(TaskInfo) )
 *  }
 *
 *  Then add the pointer to istepNTaskList to the bottom of the g_isteps[]
 *  array below.  IStepDispatcher should pick up the new IStep automagically.
 *
 */

#include    <vector>
#include    <initservice/initsvcstructs.H>

// macro to expand library dependancies
#define DEP_LIB(x)  { #x }

//  -----   istep include files   -----

//  isteps 1-5 run before hostboot

#include    "istep06list.H"
#include    "istep07list.H"
#include    "istep08list.H"
#include    "istep09list.H"
#include    "istep10list.H"
#include    "istep11list.H"
#include    "istep12list.H"
#include    "istep13list.H"
#include    "istep14list.H"
#include    "istep15list.H"
#include    "istep16list.H"
// istep 17, FSP only
#include    "istep18list.H"
// istep 19, FSP only
// istep 20, FSP only
#include    "istep21list.H"

namespace   INITSERVICE
{

// initialize an array of ExtTaskInfo
const  ExtTaskInfo  g_isteps[]    =   {
        { NULL, 0, NULL },                              //  dummy IStep 0
        { NULL, 0, NULL },                              //  dummy IStep 1
        { NULL, 0, NULL },                              //  dummy IStep 2
        { NULL, 0, NULL },                              //  dummy IStep 3
        { NULL, 0, NULL },                              //  dummy IStep 4
        { NULL, 0, NULL },                              //  dummy IStep 5
        INITSERVICE::g_istep06TaskList,                 //  HWAS  IStep 6
        INITSERVICE::g_istep07TaskList,                 //        IStep 7
        INITSERVICE::g_istep08TaskList,                 //        IStep 8
        INITSERVICE::g_istep09TaskList,                 //        IStep 9
        INITSERVICE::g_istep10TaskList,                 //        IStep 10
        INITSERVICE::g_istep11TaskList,                 //        IStep 11
        INITSERVICE::g_istep12TaskList,                 //        IStep 12
        INITSERVICE::g_istep13TaskList,                 //        IStep 13
        INITSERVICE::g_istep14TaskList,                 //        IStep 14
        INITSERVICE::g_istep15TaskList,                 //        IStep 15
        INITSERVICE::g_istep16TaskList,                 //        IStep 16
        { NULL, 0, NULL},                               //  FSP   IStep 17
        INITSERVICE::g_istep18TaskList,                 //        IStep 18
        { NULL, 0, NULL },                              //  FSP   IStep 19
        { NULL, 0, NULL },                              //  FSP   IStep 20
        INITSERVICE::g_istep21TaskList                  //        IStep 21
        //
        // add further istep lists at the end.
};

const   uint64_t    MAX_SUBSTEPS =  25;

// publish the size of the g_isteps array
const   uint64_t    MaxISteps   =  sizeof(g_isteps)/sizeof(ExtTaskInfo) ;


};  // namespace

#endif
OpenPOWER on IntegriCloud