blob: c56fa3ce7b4101e1277adbbd481f531b4a5cf8de [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 * Filename:
38 * --------------------------------------------------------
39 * ratdm_multimode.h
40 *
41 * Project:
42 * --------------------------------------------------------
43 *
44 *
45 * Description:
46 * --------------------------------------------------------
47 *
48 *
49 * Author:
50 * --------------------------------------------------------
51 * -------
52 *
53 * --------------------------------------------------------
54 * $Log$
55 *
56 * 04 03 2019 meghana.ganji
57 * [MOLY00393568] [CODE SYNC] [TSD] [KB3] [network] [FieldTest] [PR2] Main card Unicom 3G adhesion test, adhesion delay followed by more than 1 minute (73.42)
58 *
59 * 08 01 2017 ravitej.ballakur
60 * [MOLY00268053] [Gen93] Miscelleneous changes in RATDM UG
61 * .
62 *
63 * 07 06 2017 head.hsu
64 * [MOLY00261868] [6293]UL SIT new handling
65 * RATDM-UG, RATDM-CMN-SIG part
66 *
67 * 03 30 2017 ravitej.ballakur
68 * [MOLY00238716] [Gen93] 6M RATDM Multiple PS feature sync
69 * M-PS changes for UMOLYA.
70 *
71 * 09 26 2016 ravitej.ballakur
72 * [MOLY00195360] [3G][RATDM][PDCP] - Gen93 3G RATDM and PDCP code modification for new HW and MCU Archi
73 * Merging 2G and WCDMA RATDM and PDCP changes from merge_CBr.
74 *
75 * 08 03 2016 ravitej.ballakur
76 * [MOLY00195360] [3G][RATDM][PDCP] - Gen93 3G RATDM and PDCP code modification for new HW and MCU Archi
77 * 3G RATDM and PDCP changes.
78 *
79 * 05 20 2015 head.hsu
80 * [MOLY00089131] [MT6291 Gemini] L+W+W+W code revision check in
81 * ;RATDM/RABM/PDCP/CSR part check-in
82 *
83 * 02 13 2015 yungfu.chen
84 * [MOLY00091822] RATDM reorganization
85 *
86 * 08 25 2014 head.hsu
87 * [MOLY00074929] [Multimode] UAS related header split
88 *
89 * 06 25 2014 johnson.liu
90 * [MOLY00070329] [MT6595TDD][SS][CMCC Case][NS-IOT][R&S CMW500][29.33.2][4GSM][E38][5.2.7]FAIL,????iperf_TCP??
91 * .
92 *
93 * 05 07 2013 jl.hsiao
94 * [MOLY00018567] [MT7208][NW-UE SIM][MM][TC 13.3.2.1] 4G23 IR_TYPE_SEARCH re-design
95 * .
96 *
97 * 04 24 2013 johnson.liu
98 * [MOLY00020653] [TDD][RATDM][PDCP]UT Code Integration and VC Build Warning Remove
99 * .
100 *
101 * 03 19 2013 jl.hsiao
102 * [MOLY00009170] LTE Multimode Merge to MOLY
103 * .
104 *
105 * 01 31 2013 jl.hsiao
106 * [MOLY00009170] LTE Multimode Merge to MOLY
107 * .
108 *
109 * 01 22 2013 jl.hsiao
110 * [MOLY00009170] LTE Multimode Merge to MOLY
111 * .
112 *
113 * 12 04 2012 jl.hsiao
114 * [MOLY00003699] [RATDM] Multimode code check-in
115 * .
116 *
117 * 10 24 2012 jl.hsiao
118 * [MOLY00003699] [RATDM] Multimode code check-in
119 * .
120 *
121 * 09 17 2012 jl.hsiao
122 * [MOLY00003699] [RATDM] Multimode code check-in
123 * .
124 *
125 ******************************************************************************/
126#ifndef _RATDM_MULTIMODE_H
127#define _RATDM_MULTIMODE_H
128
129#ifndef __USE_LEGACY_23G_DATAPATH__
130#include "ratdm_shaq_application_api.h"
131#include "kal_general_types.h"
132#include "kal_public_defs.h"
133#include "mcd_l3_inc_gprs_struct.h"
134#include "stack_ltlcom.h"
135#include "l3_inc_local.h"
136#include "mmi_l3_enums.h"
137#include "kal_public_api.h"
138#include "ps_ratdm_struct.h"
139#include "global_def.h"
140#include "flc2_ent_functions.h"
141#include "l3_inc_enums.h"
142#include "mcd_l3_inc_struct.h"
143#include "ratdm_utils.h"
144
145#ifdef __GEMINI__
146#include "sim_common_enums.h"
147#endif
148
149#ifdef __DIALUP_GPRS_COUNTER_SUPPORT__
150#include "l4c_ratdm_struct.h"
151#endif
152
153#ifdef __UMTS_RAT__
154#include "uas_common_enums.h"
155#endif
156
157/* MACRO DEFINITION */
158
159/* EXPORT FUNCTIONS */
160extern void ratdm_multimode_ps_dscr_data_ind_hdlr(ilm_struct *ilm_ptr);
161extern kal_uint8 ratdm_multimode_assign_pcid(kal_uint8 nsapi, kal_uint8 sim_interface);
162extern kal_uint8 ratdm_multimode_remove_pcid(kal_uint8 nsapi, kal_uint8 sim_interface);
163extern void ratdm_multimode_ug_data_req_hdlr(kal_uint8 nsapi, ratdm_ps_data_req_struct *pPeer, flc2_pool_id_enum pool_id, SHAQ_ENQUEUE_WHICH_QUEUE enqueue_decision, kal_uint8 sim_interface);
164extern kal_bool ratdm_multimode_init(void);
165extern void ratdm_multimode_on_ilm(ilm_struct *ilm);
166extern kal_bool ratdm_multimode_reset(void);
167extern void ratdm_sm_update_max_traffic_class_req(ilm_struct *ilm_ptr);
168extern void ratdm_handle_ps_dscr_data_93_ind(ilm_struct *ilm_ptr);
169extern void ratdm_switch_on_dpcopro(kal_uint8 mod_id);
170extern void ratdm_switch_off_dpcopro(kal_uint8 mod_id);
171
172#endif // ~ #ifndef __USE_LEGACY_23G_DATAPATH__
173extern void ratcm_ratdm_virtual_mode_ind_hdlr (ilm_struct *ilm_ptr);
174
175#endif /* _RATDM_MULTIMODE_H */