blob: 34102055a77f9a13b3e4220d6cec08aae0ed029f [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 * as2l4c_struct.h
41 *
42 * Project:
43 * --------
44 * MAUI
45 *
46 * Description:
47 * ------------
48 *
49 * Author:
50 * -------
51 * -------
52 *
53 *============================================================================
54 * HISTORY
55 * Below this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
56 *------------------------------------------------------------------------------
57 * removed!
58 *
59 * removed!
60 * removed!
61 * removed!
62 * removed!
63 *
64 * removed!
65 * removed!
66 * removed!
67 * removed!
68 * removed!
69 *
70 * removed!
71 * removed!
72 * removed!
73 * removed!
74 *
75 * removed!
76 * removed!
77 * removed!
78 * removed!
79 *
80 * removed!
81 * removed!
82 * removed!
83 * removed!
84 *
85 * removed!
86 * removed!
87 * removed!
88 * removed!
89 *
90 * removed!
91 * removed!
92 * removed!
93 *
94 * removed!
95 * removed!
96 * removed!
97 * removed!
98 *
99 * removed!
100 * removed!
101 *
102 * removed!
103 * removed!
104 * removed!
105 * removed!
106 *
107 * removed!
108 * removed!
109 *
110 * removed!
111 * removed!
112 * removed!
113 * removed!
114 *
115 * removed!
116 * removed!
117 * removed!
118 *
119 * removed!
120 * removed!
121 * removed!
122 *
123 * removed!
124 * removed!
125 * removed!
126 * removed!
127 *
128 * removed!
129 * removed!
130 * removed!
131 *
132 * removed!
133 * removed!
134 * removed!
135 *
136 * removed!
137 * removed!
138 * removed!
139 *
140 * removed!
141 * removed!
142 * removed!
143 *
144 * removed!
145 * removed!
146 * removed!
147 *
148 * removed!
149 * removed!
150 * removed!
151 *
152 * removed!
153 * removed!
154 * removed!
155 *
156 * removed!
157 * removed!
158 * removed!
159 *
160 * removed!
161 * removed!
162 * removed!
163 *
164 * removed!
165 * removed!
166 * removed!
167 * removed!
168 * removed!
169 * removed!
170 * removed!
171 * removed!
172 * removed!
173 * removed!
174 * removed!
175 * removed!
176 * removed!
177 * removed!
178 *
179 * removed!
180 * removed!
181 * removed!
182 *
183 * removed!
184 * removed!
185 * removed!
186 *
187 * removed!
188 * removed!
189 * removed!
190 *
191 * removed!
192 * removed!
193 * removed!
194 *
195 * removed!
196 * removed!
197 * removed!
198 *
199 * removed!
200 * removed!
201 * removed!
202 *
203 * removed!
204 * removed!
205 * removed!
206 *
207 * removed!
208 * removed!
209 * removed!
210 *
211 * removed!
212 * removed!
213 * removed!
214 *
215 * removed!
216 * removed!
217 * removed!
218 *
219 * removed!
220 * removed!
221 * removed!
222 *
223 * removed!
224 * removed!
225 * removed!
226 *
227 * removed!
228 * removed!
229 * removed!
230 *
231 * removed!
232 * removed!
233 * removed!
234 *
235 * removed!
236 * removed!
237 * removed!
238 *
239 * removed!
240 * removed!
241 * removed!
242 *
243 * removed!
244 * removed!
245 * removed!
246 *
247 * removed!
248 * removed!
249 * removed!
250 *
251 * removed!
252 * removed!
253 * removed!
254 *
255 * removed!
256 * removed!
257 * removed!
258 *
259 * removed!
260 * removed!
261 * removed!
262 *
263 * removed!
264 * removed!
265 * removed!
266 *
267 * removed!
268 * removed!
269 * removed!
270 *
271 * removed!
272 * removed!
273 * removed!
274 *
275 * removed!
276 * removed!
277 * removed!
278 *
279 * removed!
280 * removed!
281 * removed!
282 *
283 * removed!
284 * removed!
285 * removed!
286 *
287 * removed!
288 * removed!
289 * removed!
290 *
291 * removed!
292 * removed!
293 * removed!
294 *
295 * removed!
296 * removed!
297 * removed!
298 *
299 * removed!
300 * removed!
301 * removed!
302 *
303 * removed!
304 * removed!
305 *
306 * removed!
307 *
308 *------------------------------------------------------------------------------
309 * Upper this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
310 *============================================================================
311 ****************************************************************************/
312
313/********************************************************************************
314* Copyright Statement:
315* --------------------
316*
317* This product has been developed using a protocol stack
318* developed by Sasken Communication Technologies Limited.
319*
320********************************************************************************/
321
322/*******************************************************************************
323* Copyright Statement:
324* --------------------
325* This software is protected by Copyright and the information contained
326* herein is confidential. The software may not be copied and the information
327* contained herein may not be used or disclosed except with the written
328* permission of MediaTek Inc. (C) 2002
329*
330*******************************************************************************
331 * FILENAME : as2l4c_struct.h
332 * SYNOPSIS :
333 *
334 * R E V I S I O N H I S T O R Y
335 *
336 */
337#ifndef _AS2L4C_STRUCT_H
338#define _AS2L4C_STRUCT_H
339
340//#include "kal_non_specific_general_types.h"
341#include "l3_inc_enums.h"
342#include "nbr_public_struct.h"
343#include "kal_general_types.h"
344#include "ps_public_enum.h"
345#include "kal_public_defs.h"
346
347#include "l3_inc_local.h"
348
349typedef struct
350{
351 LOCAL_PARA_HDR
352} l4cps_nbr_cell_info_start_req_struct, l4cps_nbr_cell_info_stop_req_struct;
353
354typedef l4c_nbr_cell_info_reg_cnf_struct l4cps_nbr_cell_info_start_cnf_struct;
355typedef l4c_nbr_cell_info_ind_struct l4cps_nbr_cell_info_ind_struct;
356typedef l4c_nw_band_info_ind_struct l4cps_nw_band_info_ind_struct;
357
358//#ifdef __PLMN_LIST_PREF_SUPPORT__
359typedef struct
360{
361 LOCAL_PARA_HDR
362 plmn_list_preference_enum preference;
363} l4cas_set_plmn_list_preference_req_struct;
364//#endif
365
366#ifdef __DYNAMIC_HSPA_PREFERENCE__
367typedef struct
368{
369 LOCAL_PARA_HDR
370 #if defined(__RMMI_UT__) || defined(__L1_STANDALONE__)
371 kal_uint8 hspa_preference;
372 #else
373 hspa_preference_enum hspa_preference;
374 #endif
375} l4cas_set_hspa_preference_req_struct;
376#endif /* __DYNAMIC_HSPA_PREFERENCE__ */
377
378/* rx_level revision -------------------------------- */
379
380typedef struct
381{
382 LOCAL_PARA_HDR
383 kal_uint8 current_band;
384 kal_int32 rssi_in_qdbm; /* 1 means invalid */
385 kal_uint8 ber;
386 target_module_enum target_module;
387} l4cps_gas_cell_power_level_ind_struct;
388
389typedef struct
390{
391 LOCAL_PARA_HDR
392 kal_uint8 ber; /* 99 means invalid */
393 kal_int32 rssi_in_qdbm; /* valid range: -101*4 ~ -25*4 */
394 kal_int32 RSCP_in_qdbm; /* valid range: -120*4 ~ -20*4 */
395 kal_int32 EcN0_in_qdbm; /* valid range: - 25*4 ~ 0*4 */
396
397 target_module_enum target_module;
398 kal_uint16 Intra_UARFCN;
399 kal_uint8 band;
400} l4cps_uas_cell_power_level_ind_struct;
401
402/* -------------------------------- rx_level revision */
403#if defined(__AT_RRC_TRACE_SUPPORT__)
404typedef struct
405{
406 LOCAL_PARA_HDR
407 kal_bool trace_on;
408}l4cas_set_rrc_peer_trace_req_struct;
409
410#define RRC_PEER_TRACE_MAX_MESSAGE_LEN 30
411#define RRC_PEER_TRACE_MAX_MESSAGE_TYPE_LEN 50
412
413typedef struct
414{
415 LOCAL_PARA_HDR
416 kal_uint8 message[RRC_PEER_TRACE_MAX_MESSAGE_LEN];
417 kal_uint8 message_type[RRC_PEER_TRACE_MAX_MESSAGE_TYPE_LEN];
418
419}l4cas_rrc_peer_trace_ind_struct;
420#endif
421
422typedef enum
423{
424 IQ_CHANNEL_BCCH = 0,
425 IQ_CHANNEL_PCH,
426 IQ_CHANNEL_RACH,
427 IQ_CHANNEL_AGCH,
428 IQ_CHANNEL_NCH,
429 IQ_CHANNEL_SACCH,
430 IQ_CHANNEL_FACCH,
431 IQ_CHANNEL_SDCCH,
432 IQ_CHANNEL_PBCCH,
433 IQ_CHANNEL_PPCH,
434 IQ_CHANNEL_PRACH,
435 IQ_CHANNEL_PAGCH,
436 IQ_CHANNEL_PACCH,
437 IQ_CHANNEL_CCCH_RACH,
438 IQ_CHANNEL_DCCH_RACH,
439 IQ_CHANNEL_DCCH_DCH,
440 IQ_CHANNEL_DCCH_EDCH,
441 IQ_CHANNEL_BCCH_BCH,
442 IQ_CHANNEL_BCCH_FACH,
443 IQ_CHANNEL_BCCH_HSDSCH,
444 IQ_CHANNEL_PCCH_PCH,
445 IQ_CHANNEL_PCCH_HSDSCH,
446 IQ_CHANNEL_CCCH_FACH,
447 IQ_CHANNEL_CCCH_HSDSCH,
448 IQ_CHANNEL_DCCH_FACH,
449 IQ_CHANNEL_DCCH_HSDSCH,
450 IQ_CHANNEL_NOT_APPLICABLE = 255
451}l4cas_iq_channel_t;
452
453
454
455typedef struct
456{
457 LOCAL_PARA_HDR
458 kal_bool is_abort_molr;
459} l4c_lcsp_agps_cp_abort_req_struct;
460
461typedef struct
462{
463 LOCAL_PARA_HDR
464 kal_bool is_etws_needed; /* KAL_FALSE = ETWS off, KAL_TRUE = ETWS on */
465 kal_bool is_etws_security_needed; /* KAL_FALSE = ETWS security off, KAL_TRUE = ETWS security off */
466 kal_bool is_etws_testing_on; /* KAL_FALSE = don't send test purpose ETWS to MMI, KAL_TRUE= send test purpose ETWS to MMI*/
467} l4cas_etws_setting_req_struct;
468
469typedef struct
470{
471 LOCAL_PARA_HDR
472 kal_uint16 warning_type; /*Byte 0 is MSB*, format follows 23.041 9.3.24*/
473 kal_uint16 message_id; /*Byte 0 is MSB*/
474 kal_uint16 serial_nubmer; /*Byte 0 is MSB*/
475 kal_bool is_security_information_valid;
476 kal_uint8 etws_security_information[L4C_MAX_ETWS_SECURITY_INFO_LEN]; /* Only valid when is_security_information_valid = KAL_TRUE, format follows 23.041 9.3.25 */
477} l4cas_etws_information_ind_struct;
478
479//#ifdef __CSG_SUPPORT__
480#if defined(__CSG_SUPPORT__) || defined(__LTE_RAT__)
481typedef struct
482{
483 LOCAL_PARA_HDR
484 kal_bool is_enabled;
485} l4cas_csg_auto_search_req_struct;
486#endif
487
488typedef struct
489{
490 lai_struct lai;
491 kal_uint16 cell_id;
492 kal_uint32 bar_time;
493} l4cas_bar_cell_control_info_struct;
494
495
496typedef struct
497{
498 LOCAL_PARA_HDR
499 bar_cell_control_enum control;
500 kal_uint8 num;
501 l4cas_bar_cell_control_info_struct info[RR_NUM_OF_MAX_BAR_CELL];
502} l4cas_bar_cell_control_req_struct;
503
504typedef struct
505{
506 LOCAL_PARA_HDR
507 kal_uint8 num;
508 l4cas_bar_cell_control_info_struct info[RR_NUM_OF_MAX_BAR_CELL];
509} l4cas_bar_cell_control_cnf_struct;
510
511
512#if defined(__GEMINI__)
513typedef struct {
514 LOCAL_PARA_HDR
515 kal_bool is_turn_on;
516} rsvas_monitor_peer_pch_switch_req_struct;
517#endif /* __GEMINI__ */
518
519#if defined(__SINGLE_AP_DUAL_MODEM__)
520typedef struct {
521 LOCAL_PARA_HDR
522 kal_uint8 sim_config; /* bitmap */
523} rsvas_sim_status_config_req_struct;
524#endif /* __SINGLE_AP_DUAL_MODEM__ */
525
526typedef struct {
527 LOCAL_PARA_HDR
528 kal_bool is_start_fast_mode_switch;
529} rsvas_fast_mode_switch_req_struct;
530
531typedef struct {
532 LOCAL_PARA_HDR
533 l4c_prefer_rat_enum prefer_rat;
534} l4cas_set_prefer_rat_req_struct;
535
536/* for Thermal begin */
537typedef struct
538{
539 LOCAL_PARA_HDR
540}l4cps_meas_info_req_struct;
541
542typedef struct
543{
544 LOCAL_PARA_HDR
545 kal_int8 tx_power; //tx power: -50 ~ 24, -127: invalid
546}l4cps_meas_info_cnf_struct;
547/* for Thermal end */
548
549
550/* INVALID_TX_FREQ represents the invalid value of TX frequency
551 tx_freq list starts from tx_freq[0], and ends at tx_freq[63]
552 or tx_freq[n] where ((n<64) && (tx_freq[n]==INVALID_TX_FREQ))
553*/
554#define INVALID_TX_FREQ 0xFFFF
555typedef struct
556{
557 LOCAL_PARA_HDR
558 kal_uint16 tx_freq[64]; //MAX_NUM_OF_HOPPING_FREQ defined in rr_mpal_interface.h
559}l4cps_rf_info_ind_struct;
560
561typedef struct
562{
563 LOCAL_PARA_HDR
564 umts_rrc_state_enum umts_rrc_state;
565 kal_bool dl64qam;
566 ps_conn_status_enum ps_conn_status;
567} l4c_rrce_rrc_state_ind_struct;
568
569
570typedef struct
571{
572 LOCAL_PARA_HDR
573 kal_bool is_afr_triggered;
574}l4cps_gas_auto_fast_return_ind_struct;
575
576typedef struct
577{
578 LOCAL_PARA_HDR
579 kal_bool is_afr_triggered;
580}l4cps_uas_auto_fast_return_ind_struct;
581
582typedef struct
583{
584 LOCAL_PARA_HDR
585 kal_bool ims_support;
586}l4cas_ims_config_ind_struct;
587
588typedef struct
589{
590 LOCAL_PARA_HDR
591 kal_bool is_dedicated;
592 gsm_rrm_state_enum gas_rrm_state;
593}l4c_rrm_rrms_state_ind_struct;
594
595typedef struct
596{
597 LOCAL_PARA_HDR
598 kal_uint8 hopping_flag;
599 kal_uint8 num_of_hopping_carrier;
600 kal_uint16 arfcn[64];
601 kal_uint8 freq_band[64];
602 kal_uint16 serv_arfcn;
603 kal_uint8 serv_arfcn_band;
604}l4c_rrm_channel_param_ind_struct;
605
606
607typedef struct
608{
609 LOCAL_PARA_HDR
610 kal_uint16 disc_cause;
611}l4cas_cc_error_ind_struct;
612
613typedef struct
614{
615 LOCAL_PARA_HDR
616 kal_bool voice_over_ims_ongoing;/*true:call start,false: call end*/
617}l4cas_ims_call_info_ind_struct;
618
619typedef struct
620{
621 LOCAL_PARA_HDR
622 kal_bool sib19_present; //To notify L4C that SIB19 is present in the serving cell.
623}l4cas_sib19_info_ind_struct;
624#define MAX_NUM_OF_PSEUDO_BS 2
625typedef struct
626{
627 LOCAL_PARA_HDR
628 kal_uint8 src_id;
629 kal_uint8 apc_feature_type;
630 kal_bool enable_auto_report;
631 kal_uint16 auto_report_period;
632}l4cas_rr_apc_ctrl_info_req_struct;
633
634typedef struct
635{
636 LOCAL_PARA_HDR
637 kal_uint8 src_id;
638 kal_bool set_result;
639}l4cas_rr_apc_ctrl_info_cnf_struct;
640
641typedef struct
642{
643 kal_bool result;
644 lai_struct Lai;
645 kal_uint16 Cell_id;
646 kal_uint16 Arfcn;
647 kal_uint8 bsic;
648 kal_uint8 si3_raw_data[23];
649}l4cas_rr_pseudo_bs_struct;
650
651typedef struct
652{
653 LOCAL_PARA_HDR
654 kal_uint8 src_id;
655 kal_uint8 apc_feature_type;
656 kal_bool fake_cell_auto_report;
657 kal_uint16 auto_report_period;
658 kal_uint8 count;
659 l4cas_rr_pseudo_bs_struct pseudo_bs_list[MAX_NUM_OF_PSEUDO_BS];
660}l4c_rrm_pseudo_bs_detect_ind_struct,l4cas_rr_pseudo_bs_query_cnf_struct;
661
662typedef struct
663{
664 LOCAL_PARA_HDR
665 kal_uint8 src_id;
666}l4cas_rr_pseudo_bs_query_req_struct;
667
668typedef struct
669{
670 LOCAL_PARA_HDR
671 kal_uint32 arfcn;
672}l4c_rrc_cur_freq_ind_struct;
673
674typedef struct
675{
676 LOCAL_PARA_HDR
677 kal_bool is_enabled; /* If enabled then don't check barr criteria for camping */
678} l4cps_gsm_bar_control_req_struct;
679
680typedef struct
681{
682 LOCAL_PARA_HDR
683 kal_bool is_enabled;
684} l4cuas_set_rach_test_mode_req_struct;
685
686typedef struct {
687 LOCAL_PARA_HDR
688 kal_uint32 src_id;
689 kal_bool integrity_status; //{0x0: Disable 0x1: Enable}
690 kal_bool ciphering_status; //{0x0: Disable 0x1: Enable}
691 kal_bool fake_security_status; //{0x0: Disable 0x1: Enable}
692} l4cas_set_wcdma_security_mode_param_req_struct;
693
694typedef struct {
695 LOCAL_PARA_HDR
696 kal_uint32 src_id; // piggyback src_id in req.
697 kal_bool result;
698} l4cas_set_wcdma_security_mode_param_cnf_struct;
699
700typedef struct {
701 LOCAL_PARA_HDR
702 kal_uint32 src_id;
703} l4cas_get_wcdma_security_mode_param_req_struct;
704
705typedef struct {
706 LOCAL_PARA_HDR
707 kal_uint32 src_id; // piggyback src_id in req.
708 kal_bool result;
709 kal_bool integrity_status; //{0x0: Disable 0x1: Enable}
710 kal_bool ciphering_status; //{0x0: Disable 0x1: Enable}
711 kal_bool fake_security_status; //{0x0: Disable 0x1: Enable}
712} l4cas_get_wcdma_security_mode_param_cnf_struct;
713
714typedef struct
715{
716 LOCAL_PARA_HDR
717 kal_uint8 mode; /* 0 - Power monitoring disable, 1 - Power monitoring enable */
718 kal_uint8 signal_type; /* 0 - RSCP, 1 - ECNO */
719 kal_int16 tin_threshold; /*Unit - qdbm*/
720 kal_int16 tout_threshold; /*Unit - qdbm*/
721 kal_uint32 timer;
722}l4cas_cell_power_threshold_config_req_struct;
723
724typedef struct
725{
726 LOCAL_PARA_HDR
727 kal_uint8 signal_type; /* 0 - RSCP, 1 - ECNO, 2 - Both*/
728 kal_int16 rscp_signal_value; /* signal value of RSCP. Applicable only if <signal_type> is 0 or 2*/
729 kal_int16 ecno_signal_value; /* signal value of ECNO. Applicable only if <signal_type> is 1 or 2*/
730}l4cas_cell_power_threshold_ind_struct;
731
732typedef l4cps_gas_cell_power_level_ind_struct l4cps_gas_report_signal_level_ind_struct;
733typedef l4cps_uas_cell_power_level_ind_struct l4cps_uas_report_signal_level_ind_struct;
734
735#endif /* _AS2L4C_STRUCT_H */