blob: 1941e29a38c6db91772c23fd6a30472e9a67c0b8 [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) 2011
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 * l4_ps_api.h
40 *
41 * Project:
42 * --------
43 * MAUI
44 *
45 * Description:
46 * ------------
47 * API provided by L4 task and inside-PS task uses only
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 *
63 * removed!
64 * removed!
65 *
66 * removed!
67 * removed!
68 *
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 * removed!
84 *
85 * removed!
86 * removed!
87 * removed!
88 *
89 * removed!
90 * removed!
91 * removed!
92 *
93 * removed!
94 * removed!
95 * removed!
96 *
97 * removed!
98 * removed!
99 * removed!
100 *
101 * removed!
102 * removed!
103 *
104 * removed!
105 * removed!
106 * removed!
107 *
108 * removed!
109 * removed!
110 *
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 *
127 * removed!
128 * removed!
129 * removed!
130 *
131 * removed!
132 * removed!
133 * removed!
134 *
135 * removed!
136 * removed!
137 * removed!
138 *
139 * removed!
140 * removed!
141 * removed!
142 *
143 * removed!
144 * removed!
145 * removed!
146 *
147 * removed!
148 * removed!
149 * removed!
150 *
151 * removed!
152 * removed!
153 * removed!
154 *
155 *------------------------------------------------------------------------------
156 * Upper this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
157 *==============================================================================
158 *******************************************************************************/
159#ifndef L4_PS_API_H
160#define L4_PS_API_H
161
162#include "ps_em_enum.h"
163#include "ps_public_enum.h"
164#ifdef __DIALUP_GPRS_COUNTER_SUPPORT__
165#include "l4c_ratdm_struct.h"
166#endif
167#include "ims_common_def.h"
168#include "l3_inc_enums_public.h"
169
170extern kal_bool is_ps_conf_test_xta_mode_internal(void);
171extern kal_bool is_ps_conf_test_xta_mode(void);
172extern ps_conf_test_mode_enum query_ps_conf_test_mode_internal(void);
173extern ps_conf_test_mode_enum query_ps_conf_test_mode(void);
174extern kal_uint32 query_ps_conf_test_profile_setting(void);
175
176#if 0
177/* under construction !*/
178#else
179#define l4c_cross_core_update_ps_conf_info(xta_mode, mode, profile) NULL
180#endif
181
182extern ps_conf_test_mode_enum test_mode_consider_sim(kal_uint8 simInterface);
183
184#ifdef __DIALUP_GPRS_COUNTER_SUPPORT__
185extern void ratdm_l4c_query_pdp_statistics_table( single_pdp_call_history_info_struct *query_result );
186#endif
187
188
189
190
191#if defined(__DUAL_SIM_PROJECT_SUPPORT_SGLTE_WORLD_PHONE_NVRAM__) && defined(__GEMINI__)
192/**************************************************************************************************************
193 * FUNCTION
194 * gemini_double_write_nvram_para()
195 * DESCRIPTION
196 * In GEMINI load:
197 * (1)Whether the protocol need double write nvram record.
198 * (2)If needed, which nvram record should be written.
199 * PARAMETERS
200 * sim_interface: the protocol stack's sim_interface, which calls the function.
201 * RETURNS
202 * if (not 4G switched)
203 * if (sim_interface == 0) return 3;
204 * else if (sim_interface == 1) return 4;
205 * else return 0xFFFF; //other protocol, should not occur
206 * else //4G switched
207 * if (sim_interface == 0) return 4;
208 * else if (sim_interface == 1) return 3;
209 * else return 0xFFFF; //other protocol, should not occur
210 **************************************************************************************************************/
211extern kal_uint16 gemini_double_write_nvram_para(kal_uint8 sim_interface);
212#endif
213
214extern kal_bool is_RRM_test(void);
215
216extern void l4c_resend_afr_req();
217extern kal_bool l4c_is_hvolte_enable(void);
218extern hvolte_enable_status_enum l4c_query_hvolte_enable_status(protocol_id_enum ps_id);
219extern hvolte_enable_status_enum l4c_query_hvolte_enable_for_roaming_status(protocol_id_enum ps_id);
220extern hvolte_mode_enum l4c_query_hvolte_mode(protocol_id_enum ps_id);
221extern rat_enum l4c_query_global_rat_mode(void);
222extern rat_enum l4c_query_global_rat_mode_by_idx(sim_interface_enum simInterface);
223extern kal_bool l4bpwr_get_op01_sim_lock_state();
224extern kal_bool l4bpwr_get_op01_rat_lock_state();
225
226
227#endif