blob: bbaf458bb38eba2ec7f26fe3d9ffa88845801310 [file] [log] [blame]
yu.dongc33b3072024-08-21 23:14:49 -07001/*****************************************************************************
2* Copyright Statement:
3* --------------------
4* This software is protected by Copyright and the information contained
5* herein is confidential. The software may not be copied and the information
6* contained herein may not be used or disclosed except with the written
7* permission of MediaTek Inc. (C) 2005
8*
9* BY OPENING THIS FILE, BUYER HEREBY UNEQUIVOCALLY ACKNOWLEDGES AND AGREES
10* THAT THE SOFTWARE/FIRMWARE AND ITS DOCUMENTATIONS ("MEDIATEK SOFTWARE")
11* RECEIVED FROM MEDIATEK AND/OR ITS REPRESENTATIVES ARE PROVIDED TO BUYER ON
12* AN "AS-IS" BASIS ONLY. MEDIATEK EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES,
13* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF
14* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT.
15* NEITHER DOES MEDIATEK PROVIDE ANY WARRANTY WHATSOEVER WITH RESPECT TO THE
16* SOFTWARE OF ANY THIRD PARTY WHICH MAY BE USED BY, INCORPORATED IN, OR
17* SUPPLIED WITH THE MEDIATEK SOFTWARE, AND BUYER AGREES TO LOOK ONLY TO SUCH
18* THIRD PARTY FOR ANY WARRANTY CLAIM RELATING THERETO. MEDIATEK SHALL ALSO
19* NOT BE RESPONSIBLE FOR ANY MEDIATEK SOFTWARE RELEASES MADE TO BUYER'S
20* SPECIFICATION OR TO CONFORM TO A PARTICULAR STANDARD OR OPEN FORUM.
21*
22* BUYER'S SOLE AND EXCLUSIVE REMEDY AND MEDIATEK'S ENTIRE AND CUMULATIVE
23* LIABILITY WITH RESPECT TO THE MEDIATEK SOFTWARE RELEASED HEREUNDER WILL BE,
24* AT MEDIATEK'S OPTION, TO REVISE OR REPLACE THE MEDIATEK SOFTWARE AT ISSUE,
25* OR REFUND ANY SOFTWARE LICENSE FEES OR SERVICE CHARGE PAID BY BUYER TO
26* MEDIATEK FOR SUCH MEDIATEK SOFTWARE AT ISSUE.
27*
28* THE TRANSACTION CONTEMPLATED HEREUNDER SHALL BE CONSTRUED IN ACCORDANCE
29* WITH THE LAWS OF THE STATE OF CALIFORNIA, USA, EXCLUDING ITS CONFLICT OF
30* LAWS PRINCIPLES. ANY DISPUTES, CONTROVERSIES OR CLAIMS ARISING THEREOF AND
31* RELATED THERETO SHALL BE SETTLED BY ARBITRATION IN SAN FRANCISCO, CA, UNDER
32* THE RULES OF THE INTERNATIONAL CHAMBER OF COMMERCE (ICC).
33*
34*****************************************************************************/
35
36/*****************************************************************************
37 *
38 * Filename:
39 * ---------
40 * stack_config.h
41 *
42 * Project:
43 * --------
44 * Maui_Software
45 *
46 * Description:
47 * ------------
48 * This file provides the task index and module index configuration.
49 *
50 * Author:
51 * -------
52 * -------
53 *
54 *============================================================================
55 * HISTORY
56 * Below this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
57 *------------------------------------------------------------------------------
58 * removed!
59 * removed!
60 * removed!
61 *
62 * removed!
63 * removed!
64 * removed!
65 * removed!
66 *
67 * removed!
68 * removed!
69 * removed!
70 * removed!
71 *
72 * removed!
73 * removed!
74 * removed!
75 *
76 * removed!
77 * removed!
78 * removed!
79 *
80 * removed!
81 * removed!
82 * removed!
83 *
84 * removed!
85 * removed!
86 * removed!
87 *
88 * removed!
89 * removed!
90 * removed!
91 *
92 * removed!
93 * removed!
94 * removed!
95 *
96 * removed!
97 * removed!
98 * removed!
99 * removed!
100 *
101 * removed!
102 * removed!
103 * removed!
104 * removed!
105 *
106 * removed!
107 * removed!
108 * removed!
109 *
110 * removed!
111 * removed!
112 * removed!
113 *
114 * removed!
115 * removed!
116 *
117 * removed!
118 * removed!
119 * removed!
120 *
121 * removed!
122 * removed!
123 * removed!
124 *
125 * removed!
126 * removed!
127 * removed!
128 * removed!
129 * removed!
130 * removed!
131 * removed!
132 * removed!
133 * removed!
134 * removed!
135 * removed!
136 * removed!
137 * removed!
138 * removed!
139 * removed!
140 * removed!
141 * removed!
142 * removed!
143 * removed!
144 * removed!
145 * removed!
146 * removed!
147 * removed!
148 *
149 * removed!
150 * removed!
151 * removed!
152 *
153 * removed!
154 * removed!
155 *------------------------------------------------------------------------------
156 * Upper this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
157 *============================================================================
158 ****************************************************************************/
159
160#ifndef _STACK_CONFIG_H
161#define _STACK_CONFIG_H
162
163#include "isr_modid.h"
164#include "hisr_modid.h"
165#include "srv_modid.h"
166#include "modem_2g3g_modid.h"
167#include "modem_4g_modid.h"
168#include "modem_5g_modid.h"
169#include "middleware_modid.h"
170#include "drv_modid.h"
171
172/*************************************************************************
173 * Constant Definition
174 *************************************************************************/
175#define MAX_CUSTOM_TASKS 16 /* Maximum custom tasks number */
176#define MAX_CUSTOM_MODS 16 /* Maximum custom modules number */
177
178/* Maximum tasks number: remember that this macro is defined for ftl_task_bitmap[] */
179#define KAL_MAX_NUM_TASKS 255
180/* KAL_TASK_INITIAL_PRIORITY is used for configuration task's minus priority for task mode switch.*/
181#if defined(__MD95__)
182#define KAL_TASK_INITIAL_PRIORITY 256
183#else
184#define KAL_TASK_INITIAL_PRIORITY 512
185#endif
186
187#define NORMAL_M 1
188#define FACTORY_M 2
189#define USB_M 4
190
191typedef enum {
192 KAL_PRIORITY_CLASS0 = 0,
193 KAL_PRIORITY_CLASS1 = 10,
194 KAL_PRIORITY_CLASS2 = 20,
195 KAL_PRIORITY_CLASS3 = 30,
196 KAL_PRIORITY_CLASS4 = 40,
197 KAL_PRIORITY_CLASS5 = 50,
198 KAL_PRIORITY_CLASS6 = 60,
199 KAL_PRIORITY_CLASS7 = 70,
200 KAL_PRIORITY_CLASS8 = 80,
201 KAL_PRIORITY_CLASS9 = 90,
202 KAL_PRIORITY_CLASS10 = 100,
203 KAL_PRIORITY_CLASS11 = 110,
204 KAL_PRIORITY_CLASS12 = 120,
205 KAL_PRIORITY_CLASS13 = 130,
206 KAL_PRIORITY_CLASS14 = 140,
207 KAL_PRIORITY_CLASS15 = 150,
208 KAL_PRIORITY_CLASS16 = 160,
209 KAL_PRIORITY_CLASS17 = 170,
210 KAL_PRIORITY_CLASS18 = 180,
211 KAL_PRIORITY_CLASS19 = 190,
212 KAL_PRIORITY_CLASS20 = 200,
213 KAL_PRIORITY_CLASS21 = 210,
214 KAL_PRIORITY_CLASS22 = 220,
215 KAL_PRIORITY_CLASS23 = 230,
216 KAL_PRIORITY_CLASS24 = 240,
217 KAL_PRIORITY_CLASS25 = 250,
218#if !defined(__MD95__)
219 KAL_PRIORITY_CLASS26 = 260,
220 KAL_PRIORITY_CLASS27 = 270,
221 KAL_PRIORITY_CLASS28 = 280,
222 KAL_PRIORITY_CLASS29 = 290,
223 KAL_PRIORITY_CLASS30 = 300,
224 KAL_PRIORITY_CLASS31 = 310,
225 KAL_PRIORITY_CLASS32 = 320,
226 KAL_PRIORITY_CLASS33 = 330,
227 KAL_PRIORITY_CLASS34 = 340,
228 KAL_PRIORITY_CLASS35 = 350,
229 KAL_PRIORITY_CLASS36 = 360,
230 KAL_PRIORITY_CLASS37 = 370,
231 KAL_PRIORITY_CLASS38 = 380,
232 KAL_PRIORITY_CLASS39 = 390,
233 KAL_PRIORITY_CLASS40 = 400,
234 KAL_PRIORITY_CLASS41 = 410,
235 KAL_PRIORITY_CLASS42 = 420,
236 KAL_PRIORITY_CLASS43 = 430,
237 KAL_PRIORITY_CLASS44 = 440,
238 KAL_PRIORITY_CLASS45 = 450,
239 KAL_PRIORITY_CLASS46 = 460,
240 KAL_PRIORITY_CLASS47 = 470,
241 KAL_PRIORITY_CLASS48 = 480,
242 KAL_PRIORITY_CLASS49 = 490,
243 KAL_PRIORITY_CLASS50 = 500,
244 KAL_PRIORITY_CLASS51 = 510,
245#endif
246 KAL_PRIORITY_MAX
247} kal_priority_type;
248
249/*Expand Task priority macro here*/
250#define TASK_PRIORITY_MACRO
251
252#include "srv_task_config.h"
253#include "modem_2g3g_task_config.h"
254#include "modem_4g_task_config.h"
255#include "modem_5g_task_config.h"
256#include "middleWare_task_config.h"
257#include "drv_task_config.h"
258
259#undef TASK_PRIORITY_MACRO
260
261#define RPS_MAX_MODULES_IN_TASK 12
262#define RPS_NO_TASK_NAME ""
263#define RPS_QNAME_NIL ""
264#define RPS_TASK_PRIORITY_NIL 0
265#define RPS_STACK_SIZE_NIL 0
266#define RPS_QSIZE_NIL 0
267
268/*************************************************************************
269 * Total HISR number boundary check
270 * Don't use this array in your code
271 *************************************************************************/
272/* if you change maximum system HISR number(NOW is 20), please also modify INDX_NIL number in mod_task_g[]*/
273typedef unsigned int hisr_max_num_check[(KAL_MAX_NUM_HISRS - (89 + 40)) *
274 ((91 + 40) - KAL_MAX_NUM_HISRS)];
275/************************************************************************/
276
277#endif /* _STACK_CONFIG_H */