summaryrefslogtreecommitdiffstats
path: root/src/usr/initservice/baseinitsvc/initsvctasks.H
blob: 297386ab734108090b06f80baa3cc8486f09ce9d (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
/****************************************************************************
 * $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 __INIT_SVC_TASKS_H
#define __INIT_SVC_TASKS_H

/**
 * @file    initsvctasks.H
 *
 *  TaskInfo structs for each task that will run.
 */

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

namespace   INITSERVICE
{

const   uint64_t MAX_TASKS   =   10;

const TaskInfo    g_taskinfolist[]   =   {

        /**
         *  @brief  Errorlog    Task
         */
        {
                "liberrl.so" ,                  // taskname
                NULL,                           // no ptr to fn
                {
                        NONE,                        // don't start
                        BASE_IMAGE,             // Base Module
                        START_ERRL_ERRL_ID,     // module id for errorlog

                }
        },


        /**
         * @brief   PNOR    Driver  Task
         */
        {
                "libpnor.so" ,                        // taskname
                NULL,                                   // no pointer to fn
                {
                        START_TASK,                      // start
                        BASE_IMAGE,                     // Base Module
                        START_PNORDD_ERRL_ID,                // module id for errorlog
                }
        },

        /**
         * @brief  Extended VFS module
         */
        {
                "libvfs.so",                            // taskname
                NULL,
                {
                        START_TASK,                     // start task
                        BASE_IMAGE,                     // Base Module
                        START_VFS_ERRL_ID,              // module id for error log
                }
        },

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

        /**
         * @brief   extinitsvc, initializes extended module area
         */
        {
                "libextinitsvc.so" ,                    // taskname
                NULL,                                   // no pointer to fn
                {
                        START_TASK,                     // call start()
                        BASE_IMAGE,                     // TODO EXT_IMAGE
                        START_EXTINITSVC_ERRL_ID,       // module id for errorlog
                }
        },


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

};


};  // namespace
#endif  //
OpenPOWER on IntegriCloud