rjw | 6c1fd8f | 2022-11-30 14:33:01 +0800 | [diff] [blame] | 1 | /***************************************************************************** |
| 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 | * Modification Notice: |
| 37 | * -------------------------- |
| 38 | * This software is modified by MediaTek Inc. and the information contained |
| 39 | * herein is confidential. The software may not be copied and the information |
| 40 | * contained herein may not be used or disclosed except with the written |
| 41 | * permission of MediaTek Inc. (C) 2001 |
| 42 | * |
| 43 | *******************************************************************************/ |
| 44 | |
| 45 | /******************************************************************************* |
| 46 | * Filename: |
| 47 | * --------- |
| 48 | * ft_private.h |
| 49 | * |
| 50 | * Project: |
| 51 | * -------- |
| 52 | * MAUI |
| 53 | * |
| 54 | * Description: |
| 55 | * ------------ |
| 56 | * FT private stuff |
| 57 | * |
| 58 | * Author: |
| 59 | * ------- |
| 60 | * ------- |
| 61 | * |
| 62 | *============================================================================== |
| 63 | * HISTORY |
| 64 | * Below this line, this part is controlled by PVCS VM. DO NOT MODIFY!! |
| 65 | *------------------------------------------------------------------------------ |
| 66 | * removed! |
| 67 | * removed! |
| 68 | * removed! |
| 69 | * |
| 70 | * removed! |
| 71 | * removed! |
| 72 | * removed! |
| 73 | * removed! |
| 74 | * |
| 75 | * removed! |
| 76 | * removed! |
| 77 | * removed! |
| 78 | * |
| 79 | * removed! |
| 80 | * removed! |
| 81 | * removed! |
| 82 | * |
| 83 | * removed! |
| 84 | * removed! |
| 85 | * removed! |
| 86 | * removed! |
| 87 | * removed! |
| 88 | * |
| 89 | * removed! |
| 90 | * removed! |
| 91 | * removed! |
| 92 | * |
| 93 | * removed! |
| 94 | * removed! |
| 95 | * removed! |
| 96 | * removed! |
| 97 | * |
| 98 | * removed! |
| 99 | * removed! |
| 100 | * removed! |
| 101 | * removed! |
| 102 | * removed! |
| 103 | * |
| 104 | * removed! |
| 105 | * removed! |
| 106 | * removed! |
| 107 | * |
| 108 | * removed! |
| 109 | * removed! |
| 110 | * removed! |
| 111 | * removed! |
| 112 | * removed! |
| 113 | * removed! |
| 114 | * removed! |
| 115 | * removed! |
| 116 | * removed! |
| 117 | * removed! |
| 118 | * removed! |
| 119 | * |
| 120 | * removed! |
| 121 | * removed! |
| 122 | * removed! |
| 123 | * |
| 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 | * |
| 168 | *------------------------------------------------------------------------------ |
| 169 | * Upper this line, this part is controlled by PVCS VM. DO NOT MODIFY!! |
| 170 | *============================================================================== |
| 171 | *******************************************************************************/ |
| 172 | |
| 173 | #ifndef FT_PRIVATE_H |
| 174 | #define FT_PRIVATE_H |
| 175 | |
| 176 | #include "ft_msg.h" |
| 177 | #include "kal_public_api.h" |
| 178 | #include "kal_public_defs.h" //MSBB change #include "stack_config.h" |
| 179 | #include "kal_public_defs.h" //MSBB change #include "stack_msgs.h" |
| 180 | #include "kal_public_defs.h" //MSBB change #include "stack_common.h" |
| 181 | #ifndef L1_SIM |
| 182 | #include "nvram_struct.h" |
| 183 | #include "fs_type.h" |
| 184 | #endif // #ifndef L1_SIM |
| 185 | #include "kal_general_types.h" |
| 186 | #include "kal_public_defs.h" |
| 187 | #if defined(__UMTS_RAT__) && defined(__MTK_UL1_FDD__) |
| 188 | #include "ul1cal.h" |
| 189 | #endif // #if defined(__UMTS_RAT__) && defined(__MTK_UL1_FDD__) |
| 190 | /*********************** |
| 191 | * TST module APIs |
| 192 | **********************/ |
| 193 | #include "kal_trace.h" |
| 194 | |
| 195 | #ifdef __cplusplus |
| 196 | extern "C" { |
| 197 | #endif |
| 198 | |
| 199 | extern kal_uint16 ft_gl_token; |
| 200 | extern kal_uint16 ft_gl_rf_token; |
| 201 | extern kal_uint16 ft_gl_l4aud_token; |
| 202 | extern kal_uint16 ft_gl_l4aud_ind_token; |
| 203 | extern kal_uint16 ft_gl_l4aud_current_volume; |
| 204 | extern peer_buff_struct *ft_gl_l4aud_peer_buf; |
| 205 | extern kal_uint16 ft_gl_nvram_token; |
| 206 | |
| 207 | //extern kal_bool g_META_DLL_Version_Incorrect; |
| 208 | extern kal_bool g_b_ft_assert_check_enable; |
| 209 | extern kal_bool g_b_ver_Incorrect; |
| 210 | extern kal_uint8 g_u1_msg_recv_times; |
| 211 | |
| 212 | #ifndef L1_SIM |
| 213 | /* for build warning */ |
| 214 | extern void FT_FtPMICRegisterRead(ft_PMICRegisterRead_req_T* req, unsigned char RegType); |
| 215 | extern void FT_FtPMICRegisterWrite(ft_PMICRegisterWrite_req_T* req, unsigned char RegType); |
| 216 | #endif // #ifndef L1_SIM |
| 217 | |
| 218 | /* for backup and restore calibration data */ |
| 219 | extern kal_uint8 ft_gl_path_check_flag; |
| 220 | /* for ft event group pointer */ |
| 221 | #define FT_EVENT_TIMEOUT 5000 // 10 sec |
| 222 | extern kal_uint32 ft_event_group_ptr; // event bit map in ft_public.h |
| 223 | /* ------------------------------------------------------------------------- */ |
| 224 | /******************************************************************************* |
| 225 | * |
| 226 | * ft_fnc.c |
| 227 | * |
| 228 | *******************************************************************************/ |
| 229 | void FT_DispatchMessage(ilm_struct* ptrMsg); |
| 230 | void FT_InitCalibrationData(task_entry_struct *task_entry_ptr); |
| 231 | void FT_InitFtData(void); |
| 232 | #ifndef L1_SIM |
| 233 | /* BaseBand Testing */ |
| 234 | void FT_FtRegisterRead (ft_RegisterRead_req_T *req, unsigned char RegType); |
| 235 | void FT_FtRegisterWrite (ft_RegisterWrite_req_T *req, unsigned char RegType); |
| 236 | void FT_FtADC_GetMeaData (ft_FtADC_GetMeaData_req_T *req); |
| 237 | #endif // #ifndef L1_SIM |
| 238 | /* Version Info */ |
| 239 | extern void FT_GetVersionInfo(void); |
| 240 | |
| 241 | /* FT task test alive */ |
| 242 | extern void FT_TestAlive(void); |
| 243 | |
| 244 | #ifndef L1_SIM |
| 245 | /* FT task Power Off */ |
| 246 | extern void FT_PowerOff(void); |
| 247 | |
| 248 | /* SLA */ |
| 249 | extern void FT_GetSlaStatus(void); |
| 250 | extern void FT_CheckSlaVer(FT_CHECK_SLA_VER_REQ *ft_check_sla_ver_op); |
| 251 | extern void FT_GetSlaPara(void); |
| 252 | extern void FT_VerifySla(FT_VERIFY_SLA_RND_REQ *ft_verify_sla_op); |
| 253 | extern kal_bool FT_MetaSLA_Is_Enabled(void); |
| 254 | |
| 255 | #endif // #ifndef L1_SIM |
| 256 | |
| 257 | |
| 258 | /* FT task utility command */ |
| 259 | extern void FT_UtilityCommand(ilm_struct *ptrMsg); |
| 260 | |
| 261 | /******************************************************************************* |
| 262 | * |
| 263 | * other module's api |
| 264 | * |
| 265 | *******************************************************************************/ |
| 266 | extern kal_uint32 SaveAndSetIRQMask(void); |
| 267 | /*************************** |
| 268 | * FT task self message API |
| 269 | **************************/ |
| 270 | typedef void (*ft_in_proc_call_type) (kal_uint32 arg1, void *arg2); |
| 271 | typedef struct |
| 272 | { |
| 273 | LOCAL_PARA_HDR |
| 274 | ft_in_proc_call_type func; |
| 275 | kal_uint32 func_arg1; |
| 276 | void *func_arg2; |
| 277 | } ft_in_proc_call_req_struct; |
| 278 | typedef enum |
| 279 | { |
| 280 | MSG_ID_FT_IN_PROC_CALL_REQ, |
| 281 | MSG_ID_FT_IN_PROC_CALL_CNF |
| 282 | }FT_TASK_MESSAGE_TYPE; |
| 283 | void ft_send_in_proc_call_req(ft_in_proc_call_type func, kal_uint32 func_arg1, void *func_arg2); |
| 284 | void ft_in_proc_call_handler(ilm_struct *ilm_ptr); |
| 285 | extern kal_char g_FT_debug_buf[128]; |
| 286 | #ifndef L1_SIM |
| 287 | /*********************** |
| 288 | * NVRAM module APIs |
| 289 | **********************/ |
| 290 | extern kal_bool nvram_get_disk_file_info(kal_uint32 *diskfilesize, kal_uint32 *freespace, kal_uint32 *overhead); |
| 291 | /*********************** |
| 292 | * CCT module APIs |
| 293 | **********************/ |
| 294 | kal_uint8 ft_cct_check_op_is_support(kal_uint32 query_op_code); |
| 295 | #endif // #ifndef L1_SIM |
| 296 | |
| 297 | #ifdef __cplusplus |
| 298 | } |
| 299 | #endif // #ifdef __cplusplus |
| 300 | |
| 301 | #endif // #ifndef FT_PRIVATE_H |
| 302 | |