blob: 1c25a3450df74edc31e6e2f4b0a2d21884553f2b [file] [log] [blame]
rjw6c1fd8f2022-11-30 14:33:01 +08001/*****************************************************************************
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 * tl1d_mmrf_interface.h
41 *
42 * Project:
43 * --------
44 * TK6291
45 *
46 * Description:
47 * ------------
48 * TL1D interface to Multi-Mode Multi-RAT RF Central Control
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 *
66 * removed!
67 * removed!
68 *
69 * removed!
70 * removed!
71 *
72 * removed!
73 * removed!
74 *
75 * removed!
76 * removed!
77 *
78 * removed!
79 * removed!
80 * removed!
81 * removed!
82 *
83 * removed!
84 * removed!
85 * removed!
86 * removed!
87 *
88 * removed!
89 * removed!
90 * removed!
91 * removed!
92 *
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 * removed!
110 *
111 * removed!
112 * removed!
113 *
114 * removed!
115 * removed!
116 *
117 * removed!
118 * removed!
119 * removed!
120 * removed!
121 *
122 * removed!
123 * removed!
124 * removed!
125 *
126 * removed!
127 * removed!
128 * removed!
129 * removed!
130 *
131 * removed!
132 * removed!
133 * removed!
134 * removed!
135 *
136 * removed!
137 * removed!
138 * removed!
139 * removed!
140 *
141 * removed!
142 * removed!
143 *
144 * removed!
145 * removed!
146 * removed!
147 * removed!
148 *
149 * removed!
150 * removed!
151 * removed!
152 * removed!
153 *
154 * removed!
155 * removed!
156 * removed!
157 * removed!
158 * removed!
159 * removed!
160 *
161 * removed!
162 * removed!
163 * removed!
164 *
165 * removed!
166 * removed!
167 * removed!
168 *
169 * removed!
170 * removed!
171 * removed!
172 * removed!
173 *
174 * removed!
175 * removed!
176 * removed!
177 *
178 * removed!
179 * removed!
180 * removed!
181 *
182 * removed!
183 * removed!
184 * removed!
185 *
186 * removed!
187 * removed!
188 * removed!
189 *
190 * removed!
191 * removed!
192 *
193 * removed!
194 *
195 * removed!
196 * removed!
197 *
198 * removed!
199 *
200 * removed!
201 * removed!
202 *
203 * removed!
204 *
205 * removed!
206 * removed!
207 *
208 * removed!
209 *
210 * removed!
211 * removed!
212 *
213 * removed!
214 *
215 * removed!
216 * removed!
217 *
218 * removed!
219 *
220 * removed!
221 * removed!
222 *
223 * removed!
224 *
225 * removed!
226 * removed!
227 *
228 * removed!
229 *
230 * removed!
231 * removed!
232 *
233 * removed!
234 *
235 * removed!
236 * removed!
237 *
238 * removed!
239 *
240 * removed!
241 * removed!
242 *
243 * removed!
244 *
245 * removed!
246 * removed!
247 *
248 * removed!
249 *
250 * removed!
251 * removed!
252 *
253 * removed!
254 *
255 * removed!
256 * removed!
257 *
258 * removed!
259 *
260 * removed!
261 * removed!
262 *
263 * removed!
264 *
265 * removed!
266 * removed!
267 *
268 * removed!
269 *
270 * removed!
271 * removed!
272 *
273 * removed!
274 *
275 * removed!
276 * removed!
277 * removed!
278 *
279 * removed!
280 * removed!
281 * removed!
282 * removed!
283 *
284 * removed!
285 * removed!
286 * removed!
287 *
288 * removed!
289 * removed!
290 * removed!
291 * removed!
292 *
293 * removed!
294 * removed!
295 *
296 * removed!
297 *
298 * removed!
299 * removed!
300 *
301 * removed!
302 *
303 * removed!
304 * removed!
305 * removed!
306 *
307 * removed!
308 * removed!
309 *
310 * removed!
311 *
312 * removed!
313 * removed!
314 *
315 * removed!
316 * removed!
317 *
318 * removed!
319 *
320 * removed!
321 * removed!
322 *
323 * removed!
324 * removed!
325 * removed!
326 *
327 * removed!
328 * removed!
329 * removed!
330 *
331 * removed!
332 * removed!
333 * removed!
334 *
335 * removed!
336 * removed!
337 * removed!
338 *
339 * removed!
340 * removed!
341 * removed!
342 *
343 * removed!
344 * removed!
345 * removed!
346 *
347 * removed!
348 * removed!
349 * removed!
350 *
351 * removed!
352 * removed!
353 * removed!
354 *
355 * removed!
356 * removed!
357 * removed!
358 *
359 * removed!
360 * removed!
361 * removed!
362 *
363 * removed!
364 * removed!
365 * removed!
366 *
367 *----------------------------------------------------------------------------
368 * Upper this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
369 *============================================================================
370 ****************************************************************************/
371
372#ifndef _TL1D_MMRF_INTERFACE_H_
373#define _TL1D_MMRF_INTERFACE_H_
374
375#ifdef __AST_TL1_TDD__
376
377/*===============================================================================*/
378#include "kal_general_types.h"
379#include "mml1_rf_interface.h"
380#include "mml1_rf_cal_interface.h"
381#include "mml1_rf_calpocif.h"
382#include "tl1d_rf_cid.h"
383#include "tl1d_rf_cal_poc_data.h"
384
385#if IS_TL1D_RF_MT6186ME1
386#include "tl1d_mmrf_interface_mt6186me1.h"
387#elif defined(__MD97__) || defined(__MD97P__)
388#include "tl1d_mmrf_interface_md97.h"
389#else
390#include "tl1d_mmrf_interface_org.h"
391#endif
392extern void TL1D_MMRF_L1coreSHMUpdate2Local(void);
393extern void TL1D_MMRF_L1CoreSHMDataInit(void);
394extern kal_uint32 TL1D_MMRF_UpdateRuntimeHandler( kal_uint32 nvram_lid, kal_uint32 record_idx, kal_uint8 *data, kal_uint16 nvram_size );
395
396#ifdef __TAS_SUPPORT__
397extern kal_bool TL1D_RF_TAS_Support(void);
398
399extern kal_uint16 TL1D_IsQueryingTasStateInfoSupported(void);
400extern kal_uint16 TL1D_QueryTasVersion(void);
401extern kal_uint16 TL1D_GetTasStateConfigBandNum(void);
402extern void TL1D_GetTasStateConfig(kal_uint16 buf_length, kal_uint16* band_list, kal_uint16* state_limit, kal_uint16* tas_state );
403
404
405extern kal_uint16 TL1D_GetTasStateConfigBandList(kal_uint16* band_list);
406extern void TL1D_GetTasStateConfigByBand(kal_uint16 band,kal_uint16* cal_default_state, kal_uint16* toggled_state_num, kal_uint16* toggled_state_list);
407
408
409
410
411
412#ifdef __MD95__
413
414extern void TL1D_RF_Force_TAS(kal_bool force_tas_enable, kal_uint8 tas_idx);
415
416extern kal_uint32 TL1D_Get_Ant_FE_Layout_Group(kal_uint32 band);
417
418
419extern kal_uint32 TL1D_Get_META_Default_TAS_State(kal_uint32 band);
420
421extern kal_uint8 TL1TST_Supported_Band_Query(kal_uint8*band_info);
422#endif
423
424
425
426#else
427#define TL1D_RF_TAS_Support NULL
428#define TL1D_RF_Force_TAS NULL
429#define TL1D_IsQueryingTasStateInfoSupported NULL
430#define TL1D_QueryTasVersion NULL
431#define TL1D_GetTasStateConfigBandNum NULL
432#define TL1D_GetTasStateConfig NULL
433#define TL1D_GetTasStateConfigBandList NULL
434#define TL1D_GetTasStateConfigByBand NULL
435#define TL1D_Get_Ant_FE_Layout_Group NULL
436#define TL1TST_Supported_Band_Query NULL
437
438#endif
439
440#endif
441
442#endif //#ifdef __AST_TL1_TDD__
443