tizen 2.4 release
[profile/mobile/platform/kernel/u-boot-tm1.git] / arch / arm / include / asm / arch-sc8810 / tasks_id.h
1 /******************************************************************************
2  ** File Name:      block_id.h                                                *
3  ** Author:         Richard Yang                                              *
4  ** DATE:           16/10/2001                                                *
5  ** Copyright:      2001 Spreatrum, Incoporated. All Rights Reserved.         *
6  ** Description:                                                              *
7  ******************************************************************************
8
9  ******************************************************************************
10  **                        Edit History                                       *
11  ** ------------------------------------------------------------------------- *
12  ** DATE           NAME             DESCRIPTION                               *
13  ** 16/10/2001     Richard.Yang     Create.                                   *
14  ******************************************************************************/
15
16 #ifndef _TASKS_ID_H
17 #define _TASKS_ID_H
18
19 #include "tasks_def.h"
20 #include "oscfg.h"
21
22 /**---------------------------------------------------------------------------*
23  **                         Dependencies                                      *
24  **---------------------------------------------------------------------------*/
25
26 /**---------------------------------------------------------------------------*
27  **                         Compiler Flag                                     *
28  **---------------------------------------------------------------------------*/
29 #ifdef __cplusplus
30     extern   "C"
31     {
32 #endif
33
34
35 /**---------------------------------------------------------------------------*
36  **                         Constant Variables                                *
37  **---------------------------------------------------------------------------*/
38 // User can define other static task ids 
39 // from USER_CUSTOMIZE_TASK_ID_START 
40 // to   USER_CUSTOMIZE_TASK_ID_END
41 // NOTE: The number of static tasks user defined 
42 //       MUST be no more than USER_CUSTOMIZE_TASK_MAX_NUM
43 #define USER_CUSTOMIZE_TASK_MAX_NUM             7
44 #define USER_CUSTOMIZE_TASK_ID_START    93
45 #define USER_CUSTOMIZE_TASK_ID_END      99 
46
47 #define SYSTEM_STATIC_THREAD_MAX_NUM    93
48
49 typedef enum
50 {
51 /* Here is for Refence design. From 0 to 11*/   
52     CM = 0,                             // Channel manager thread defination.
53     DIAG = 1,                       // Diagnostic thread defination.   
54     KPDSVR = 2, 
55     RESERVED3 = 3,                              
56     AUDIO = 4,                  // AUDIO,
57     VIDEO = 5,                  // VIDEO,
58     EFS = 6,              
59     CHR_SVR = 7,        
60     UDISK = 8,                          
61     TIMESVR = 9,
62     FORBIDDEN_USE10,                    // Reserved for MIDI(for D platform) and MP3,           
63     P_TPP,                                  // Touch Panel Task
64
65 /* Here is for Layer1 design. From 12 to 14*/   
66     P_LAYER1 = 12,
67     TESTDSPTOL1 = 13,                   // just for test 
68     TESTPSTOL1 = 14,                    // just for test
69
70 /* Here is for simat design. From 15 to 17*/    
71     P_SIMAT_IMPL = 15,
72     P_SIMAT_DUM = 16,
73     P_SIMAT = 17, 
74
75 /* Here is for Protocol Stack design. From 18 to 20*/   
76     P_RRA = 18,                 
77     P_MN = 19,
78     RECORD = 20,    
79     
80     P_APP = 21,         // used for APP
81     
82 /* Here is for SIM design. From 22 to 23*/      
83     P_SIM = 22,
84     P_SIM_WIN_DUMMY = 23,               
85
86     P_ATC = 24,
87     FFS =25,// RESERVED25 = 25, 
88     MPEG = 26,    
89     
90     CUSTOMIZED_STATIC_TASKS             // 12 tasks id
91
92     // Add your tasks id here.
93     // But all static tasks MUST be less than SYSTEM_STATIC_THREAD_MAX_NUM !!!
94     // .....
95     STL_COMPACTION = 39,
96         P_CPANEL = 40,
97         P_PSDummy = 41,
98
99         P_NVSMS        = 42,
100         P_MN_2         = 43,
101         P_MN_3         = 44,
102         P_SIM_2        = 45,
103         P_SIM_3        = 46,
104         P_processMM_2  = 47,
105         P_processMM_3  = 48,
106         P_GMM_2        = 49,
107         P_GMM_3        = 50,
108         P_RlRouter_2   = 51,
109         P_RlRouter_3   = 52,
110         P_RRC_2        = 53,
111         P_RRC_3        = 54,
112         P_cmrouter_2   = 55,
113         P_cmrouter_3   = 56,
114         P_LOGSAVE      = 57,
115         P_MN_4         = 58,
116         P_SIM_4        = 59,
117         P_processMM_4  = 60,
118         P_GMM_4        = 61,
119         P_RlRouter_4   = 62,
120         P_RRC_4        = 63,
121         P_cmrouter_4   = 64,
122     MAX_BLOCK_NUM = USER_CUSTOMIZE_TASK_ID_START
123 } thread_id_type;
124
125 #define UPM UDISK   // UPM is used for M platform
126                     // UDISK is used for D platform
127 #define MIDI FORBIDDEN_USE10 // MIDI is used for D platform
128
129 #define P_TP P_TPP // Touch Panel task used in SC6800 platform
130
131 typedef enum
132 {
133     STARUP_DYNA_TASK_ID = USER_CUSTOMIZE_TASK_ID_END + 1,
134     CUSTOMIZED_DYNAMIC_TASKS
135     P_TL,
136     P_SMS, 
137     P_NETWORK,
138     MSG_BUF,
139     SIO,
140         P_SN,
141         P_DSP,
142     GPRS_LOG_MSG_ID = 0x90
143 }dyna_thread_id_type;
144
145
146 #ifndef _SUPPORT_GPRS_       
147 #ifndef P_Llentity
148 #define P_Llentity      0
149 #endif
150
151 #ifndef P_SMentity
152 #define P_SMentity      0
153 #endif
154
155 #ifndef P_SNDCPEntity
156 #define P_SNDCPEntity   0
157 #endif
158 #endif
159
160 /**---------------------------------------------------------------------------*
161  **                         Data Structures                                   *
162  **---------------------------------------------------------------------------*/
163
164 /**---------------------------------------------------------------------------*
165  **                         Global Variables                                  *
166  **---------------------------------------------------------------------------*/
167
168 /**---------------------------------------------------------------------------*
169  **                         External Functions                                *
170  **---------------------------------------------------------------------------*/
171
172 /**---------------------------------------------------------------------------*
173  **                         Function Prototypes                               *
174  **---------------------------------------------------------------------------*/
175
176 /**---------------------------------------------------------------------------*
177  **                         Compiler Flag                                     *
178  **---------------------------------------------------------------------------*/
179 #ifdef __cplusplus
180     }
181 #endif
182
183 #endif /* End block_id.h*/