summaryrefslogtreecommitdiffstats
path: root/src/usr/initservice/extinitsvc/extinitsvctasks.H
blob: d65abb9141a8e54a6e754ef23e7cd97f245035e9 (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
/****************************************************************************
 * $IBMCopyrightBlock:
 * 
 *  IBM Confidential
 * 
 *  Licensed Internal Code Source Materials
 * 
 *  IBM Flexible Support Processor Licensed Internal Code
 * 
 *  (C) Copyright IBM Corp. 2011
 * 
 *  The source code for this program is not published or other-
 *  wise divested of its trade secrets, irrespective of what has
 *  been deposited with the U.S. Copyright Office.
 * $
****************************************************************************/

#ifndef __EXT_INIT_SVC_TASKS_H
#define __EXT_INIT_SVC_TASKS_H

/**
 * @file    extinitsvctasks.H
 *
 *  TaskInfo structs for each task that will run in the extended image.
 */

#include    <initservice/initsvcreasoncodes.H>
#include    "extinitsvc.H"

namespace   INITSERVICE
{

    // TODO all these will eventuall be in BASE_IMAGE instead of BASE_IMAGE

const   uint64_t MAX_EXT_TASKS   =   25;

const TaskInfo g_exttaskinfolist[]   =   {

        //  -----   Extended Image  ------------------------------------------

        /**
         * @brief   targeting task, initializes extended module area
         */
        {
                "libtargeting.so" ,                         // taskname
                NULL,                                       // no pointer to fn
                {
                        START_TASK,                         // task type
                        BASE_IMAGE,                         // Extended Module
                        START_TARGETING_ERRL_ID,            // module id
                }
        },

        /**
          * @brief   IStep Dispatcher task, runs ISteps
          */
         {
                 "libistepdisp.so" ,                         // taskname
                 NULL,                                       // no pointer to fn
                 {
                         START_TASK,                         // task type
                         BASE_IMAGE,                          // Extended Module
                         EXECUTE_ISTEPS_ERRL_ID,             // module id
                 }
         },

        //  ---------------------------------------------------------------
        //  -----   END OF LIST!!!  ---------------------------------------
        //  ---------------------------------------------------------------

        /**
         * @brief   last task in the list
         */
        {
                "end" ,                                 // dummy string
                NULL,                                   // pointer to fn
                {
                        END_TASK_LIST,                       // end of list
                        UNDEFINED_MT,                   // dummy module type
                        UNDEFINED_MODULE_ERRL_ID,            // dummy errorlog
                }
        },

};


//  -----   UNIT    TESTS   -------------------------------------------------
const   TaskInfo    CXXTEST_TASK    =   {
                "libcxxtest.so" ,                           // taskname
                NULL,                                       // no pointer to fn
                {
                        START_TASK,                         // task type
                        BASE_IMAGE,                          // Extended Module
                        START_CXXTEST_ERRL_ID,              // module id
                }
        };


};  // namespace

#endif  // __EXT_INIT_SVC_TASKS_H
OpenPOWER on IntegriCloud