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) 2012 |
| 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 | * errc_mrs_interface.h |
| 40 | * |
| 41 | * Project: |
| 42 | * -------- |
| 43 | * UMOLY |
| 44 | * |
| 45 | * Description: |
| 46 | * ------------ |
| 47 | * ERRC MRS interface functions |
| 48 | * |
| 49 | * Author: |
| 50 | * ------- |
| 51 | * ------- |
| 52 | * |
| 53 | * ========================================================================== |
| 54 | * $Log$ |
| 55 | * |
| 56 | * 05 13 2021 mandy.zheng |
| 57 | * [MOLY00627894] [Blocking][MT6885][Petrus][TMO-US][MP7 Excluded][q0][Lab IOT][Ericsson-Nokia][VoNR]VoNR PSHO to LTE failed because no B2 MR from UE |
| 58 | * R3-interface. |
| 59 | * |
| 60 | * 07 27 2020 po-yu.huang |
| 61 | * [MOLY00545809] [Colgin] Global SKU CA band customization feature - ERRC |
| 62 | * |
| 63 | * . |
| 64 | * |
| 65 | * 06 01 2020 yi-han.chung |
| 66 | * [MOLY00527121] LGE/FCC requirement for Band 41 AMPR |
| 67 | * |
| 68 | * ERRC/MRS |
| 69 | * |
| 70 | * 04 29 2020 plum.tseng |
| 71 | * [MOLY00515893] [HCR][MT6875][Margaux][Q0][MP5][R3][SQC][HQ][MTBF][Lab][Ericsson][ErrorTimes:4][ASSERT] file:mcu/protocol/lte_sec/errc/common/src/errc_asn1_wrapper.c line:159 |
| 72 | * |
| 73 | * [VMOLY_R3] UE capability restriction. (and recover enter connected mode) |
| 74 | * |
| 75 | * 02 07 2020 plum.tseng |
| 76 | * [MOLY00496701] [VMOLY][ERRC&NRRC][Capability] Gemini status sync between ERRC&NRRC |
| 77 | * |
| 78 | * 12 02 2019 yung-chun.chang |
| 79 | * [MOLY00462472] [Gen97][95.OPPO patch back to VMOLY]�i�G?�e?���ѡjFast return to 4G should be disabled on UE |
| 80 | * |
| 81 | * . |
| 82 | * |
| 83 | * 09 25 2019 mandy.zheng |
| 84 | * [MOLY00443402] [Gen97]2019 Jun CR - Clarification on SA fallback BC support |
| 85 | * |
| 86 | * -[ERRC]LTE SA band combination derived from ENDC support check API. |
| 87 | * |
| 88 | * 09 23 2019 yung-chun.chang |
| 89 | * [MOLY00440687] VMOLY code sync CR |
| 90 | * |
| 91 | * 1. CA TBL V2 main part |
| 92 | * 2. fix rf_param_v1390 not reset problem |
| 93 | * |
| 94 | * 06 13 2019 plum.tseng |
| 95 | * [MOLY00413522] [VMOLY][Code Sync][ERRC][RCM] CA HPUE class B/C clarify |
| 96 | * |
| 97 | * 04 10 2019 plum.tseng |
| 98 | * [MOLY00395173] [Gen97][ERRC][MRA_EAS] Assertion removal |
| 99 | * |
| 100 | * and remove some internal info from interface file. |
| 101 | * |
| 102 | * 03 28 2019 morton.lin |
| 103 | * [MOLY00393767] [MT6297] TS 36.331 2018 December baseline migration |
| 104 | * [ERRC][RCM] 2018DEC version upgrading (MPD) |
| 105 | * |
| 106 | * 03 14 2019 plum.tseng |
| 107 | * [MOLY00391178] [MCF][VMOLY][ERRC] custom disable band feature with MCF |
| 108 | * |
| 109 | * [MCF][COSTOM_DISABLE_BAND][RCM & MRS]. |
| 110 | * |
| 111 | * 12 27 2018 morton.lin |
| 112 | * [MOLY00375221] [Gen97][NSA] UE Capability development - Feature Set |
| 113 | * [ERRC][RCM] EUTRA Feature Set development |
| 114 | * |
| 115 | * 12 10 2018 morton.lin |
| 116 | * [MOLY00371624] [VMOLY][ERRC] provide API for NRRC to calculate P_compensation for LTE neighbor cells |
| 117 | * [ERRC][RCM][MRS] Pcompensation retrieval interface for 5G4 IRCR development |
| 118 | * |
| 119 | * 08 20 2018 plum.tseng |
| 120 | * [MOLY00346737] [ERRC][RCM] B41C HPUE |
| 121 | * |
| 122 | * [VMOLY] (OA) |
| 123 | * |
| 124 | * 07 03 2018 yung-chun.chang |
| 125 | * [MOLY00334670] [CV5a] block specific LTE bands for particular roaming plmns |
| 126 | * rcm/mrs part. |
| 127 | * |
| 128 | * 03 09 2018 morton.lin |
| 129 | * [MOLY00309570] [Gen93/95][UMOLYE][ERRC][RCM] WWLTEDB table movement for better customization |
| 130 | * 1. LTEBand and CAComb table movement |
| 131 | * 2. Introduce LTEBandExcl |
| 132 | * 3. Add new DL only bands: B75 & B76 |
| 133 | * |
| 134 | * 12 11 2017 morton.lin |
| 135 | * [MOLY00295077] [Gen93][ERRC][RCM] LTE support band and CA combination customization re-arch |
| 136 | * Common IF and MRS part (LR12A.R3.MP) (Not in V-List) |
| 137 | * |
| 138 | * 11 29 2017 yung-chun.chang |
| 139 | * [MOLY00292082] |
| 140 | * rcm oa part |
| 141 | * |
| 142 | * 01 25 2017 menghau.wu |
| 143 | * [MOLY00217129] [MT6293] code sync from UMOLY (Phase4) |
| 144 | * UMOLY CR : [MOLY00223173] [6292][Gemini][L+L][Merge LR12] |
| 145 | * UMOLY CL : 3370203 |
| 146 | * |
| 147 | * 03 09 2016 sabrina.hsu |
| 148 | * [MOLY00156230] [6292] ERRC code sync LR11 to UMOLY |
| 149 | * merge LR11 CL 1801342 [MOLY00148166] |
| 150 | * |
| 151 | * 02 17 2016 sabrina.hsu |
| 152 | * [MOLY00156230] [6292] ERRC code sync LR11 to UMOLY |
| 153 | * mrs/nvram/sbp merge |
| 154 | * |
| 155 | * |
| 156 | ****************************************************************************/ |
| 157 | |
| 158 | #ifndef _ERRC_MRS_INTERFACE_H_ |
| 159 | #define _ERRC_MRS_INTERFACE_H_ |
| 160 | |
| 161 | #include "kal_general_types.h" |
| 162 | #include "mrs_as_enums.h" |
| 163 | #include "mrs_as_struct.h" |
| 164 | #include "el1d_rf_public.h" |
| 165 | #include "custom_eas_config.h" |
| 166 | #include "errc_nvram_editor.h" |
| 167 | #include "mrs_eas_capability.h" |
| 168 | #include "mcd_l3_inc_struct.h" //plmn_id_struct |
| 169 | |
| 170 | /**************************************************************************** |
| 171 | * FUNCTION |
| 172 | * errc_ue_eutra_capability_get |
| 173 | * |
| 174 | * DESCRIPTION |
| 175 | * Get the encoded UE-EUTRA-Capability IE as defined in 36.311 |
| 176 | * |
| 177 | * PARAMETERS |
| 178 | * @param |
| 179 | * MRS_SIM_INDEX sim_index: |
| 180 | * SIM Index. |
| 181 | * @param |
| 182 | * kal_uint8 **pp_ue_eutra_capa: |
| 183 | * Address of pointer to the encoded UE-EUTRA-Capability IE. |
| 184 | * Function allocates memory for the encoded IE and sets the |
| 185 | * pointer (*pp_ue_eutra_capa) to point to it. |
| 186 | * Caller is responsible for releasing the memory. |
| 187 | * @param |
| 188 | * mrs_plmn_id_list *p_plmn_id_list |
| 189 | * The list of PLMN Id on which UE camped. |
| 190 | * NOTE: The mnc3 should be set to 0x00 or 0x0F if it's not |
| 191 | * being used. (i.e. 5 digits PLMN Id) |
| 192 | * @param |
| 193 | * kal_bool is_disable_gsm |
| 194 | * Flag used by other RATs to tell if 2G is disabled or not. |
| 195 | * |
| 196 | * RETURNS |
| 197 | * @return |
| 198 | * kal_uint32: Length of the encoded UE-EUTRA-Capability IE in bytes. |
| 199 | * |
| 200 | * GLOBALS AFFECTED |
| 201 | ****************************************************************************/ |
| 202 | |
| 203 | kal_uint32 errc_ue_eutra_capability_get( |
| 204 | MRS_SIM_INDEX sim_index, kal_uint8 **pp_ue_eutra_capa, mrs_plmn_id_list *p_plmn_id_list, kal_bool is_disable_gsm); |
| 205 | |
| 206 | |
| 207 | #if (CUR_GEN >= MD_GEN97) |
| 208 | /** |
| 209 | * @brief Function to get UE-EUTRA-Capability for NRRC. |
| 210 | * @param[in] SIM index |
| 211 | * @param[in] The list of PLMN id of serving cell (on which UE camped). Use NULL |
| 212 | * pointer if caller didn't have such a list but bear in mind the |
| 213 | * PLMN-specific filtering is not applied then. |
| 214 | * @param[in] Indicates that if GSM RAT is disabled or not (by operator requirement) |
| 215 | * @param[in] String data of the IE "capabilityRequestFilter" from TS 38.331. |
| 216 | * @param[out] The address of the encoded data of UE-EUTRA-Capability, callers |
| 217 | * shall release this control buffer by themselves. |
| 218 | * @return The data length of encoded UE-EUTRA-Capability. |
| 219 | */ |
| 220 | kal_uint32 errc_ue_eutra_capability_get_for_nr( |
| 221 | MRS_SIM_INDEX sim_index, |
| 222 | mrs_plmn_id_list *p_plmn_id_list, |
| 223 | kal_bool is_disable_gsm, |
| 224 | mrs_nras_octet_string_struct cap_request_filter, |
| 225 | kal_uint8 **pp_ue_eutra_capa, |
| 226 | mrs_gemini_status_enum gemini_status, |
| 227 | kal_bool is_restriction_size_valid, |
| 228 | kal_uint32 restriction_size); |
| 229 | |
| 230 | /***************************************************************************** |
| 231 | * FUNCTION |
| 232 | * errc_is_mrdc_lte_standalone_band_combination_supported |
| 233 | * |
| 234 | * DESCRIPTION |
| 235 | * This function is used to check whether the LTE standalone band-combination |
| 236 | * derived from a given MR-DC band combination is supported. |
| 237 | * |
| 238 | * PARAMETERS |
| 239 | * @param |
| 240 | * MRS_SIM_INDEX sim_index: |
| 241 | * SIM index if Gemini applied. |
| 242 | * |
| 243 | * mrs_plmn_id_list *p_plmn_id_list: |
| 244 | * The list of PLMN id of serving cell (on which UE camped). Use NULL |
| 245 | * pointer if caller didn't have such a list but bear in mind the |
| 246 | * PLMN-specific filtering is not applied then. |
| 247 | * NOTE: The mnc3 should be set to 0x00 or 0x0F if it's not being used. |
| 248 | * (i.e. 5 digits PLMN Id) |
| 249 | * |
| 250 | * mrs_eas_mrdc_lte_standalone_bc_list *p_band_comb_list: |
| 251 | * User should send the LTE SA band combination part, and function will fill |
| 252 | * the support status of the band combination. |
| 253 | * |
| 254 | * |
| 255 | * |
| 256 | *****************************************************************************/ |
| 257 | void errc_is_mrdc_lte_standalone_band_combination_supported( |
| 258 | MRS_SIM_INDEX sim_index, |
| 259 | mrs_plmn_id_list *p_plmn_id_list, |
| 260 | mrs_eas_mrdc_lte_standalone_bc_list *p_band_comb_list); |
| 261 | |
| 262 | #endif /* (CUR_GEN >= MD_GEN97) */ |
| 263 | |
| 264 | |
| 265 | /**************************************************************************** |
| 266 | * FUNCTION |
| 267 | * errc_rcm_any_get_ue_category |
| 268 | * |
| 269 | * DESCRIPTION |
| 270 | * Get the LTE UE category |
| 271 | * |
| 272 | * PARAMETERS |
| 273 | * @param |
| 274 | * void |
| 275 | * RETURNS |
| 276 | * @return |
| 277 | * kal_uint8: LTE UE categoty defined by ERRC RCM |
| 278 | * |
| 279 | * GLOBALS AFFECTED |
| 280 | ****************************************************************************/ |
| 281 | kal_uint8 errc_rcm_any_get_ue_category(void); |
| 282 | |
| 283 | |
| 284 | /**************************************************************************** |
| 285 | * FUNCTION |
| 286 | * errc_rcm_get_lte_support_band_from_table |
| 287 | * |
| 288 | * DESCRIPTION |
| 289 | * Get the LTE Support Band from table |
| 290 | * |
| 291 | * PARAMETERS |
| 292 | * @param |
| 293 | * [in] SIM index |
| 294 | * [in] PLMN Id (MNC part will be skipped) |
| 295 | * [out] Pointer to an array which can hold 32 elements each contains |
| 296 | * kal_uint8 bitmask. The LSB in byte 0 is the Band 1. |
| 297 | * Bit '1': supported ; Bit '0': not supported |
| 298 | * [in] which table: can choose Capability size table/CA selection table |
| 299 | * [in] plmn num for source table |
| 300 | * RETURNS |
| 301 | * @return |
| 302 | * kal_bool: TRUE if valid support band bitmask got successfully, and |
| 303 | * the content of p_lte_band_bitmask is the result. |
| 304 | * FALSE if no valid support band information got. |
| 305 | * |
| 306 | * GLOBALS AFFECTED |
| 307 | ****************************************************************************/ |
| 308 | |
| 309 | kal_bool errc_rcm_get_lte_support_band_from_table( |
| 310 | const MRS_SIM_INDEX sim_idx, |
| 311 | const mrs_plmn_id *p_plmn_id, |
| 312 | kal_uint8 *p_lte_band_bitmask, |
| 313 | const eas_global_support_band_struct *src_table, |
| 314 | kal_uint32 src_table_plmn_num); |
| 315 | |
| 316 | /**************************************************************************** |
| 317 | * FUNCTION |
| 318 | * errc_rcm_get_lte_support_band_for_plmn_list |
| 319 | * |
| 320 | * DESCRIPTION |
| 321 | * Get the World Wide LTE Support Band by Public Land Mobile Network |
| 322 | * Identity list |
| 323 | * |
| 324 | * PARAMETERS |
| 325 | * @param |
| 326 | * [in] SIM index |
| 327 | * [in] PLMN Id List |
| 328 | * [out] Pointer to an array which can hold 32 elements each contains |
| 329 | * kal_uint8 bitmask. The LSB in byte 0 is the Band 1. |
| 330 | * Bit '1': supported ; Bit '0': not supported |
| 331 | * [in] whether support requestFrequencyband(NW+UE) |
| 332 | * RETURNS |
| 333 | * @return |
| 334 | * kal_bool: TRUE if valid support band bitmask got successfully, and |
| 335 | * the content of p_lte_band_bitmask is the result. |
| 336 | * FALSE if no valid support band information got. |
| 337 | * |
| 338 | * GLOBALS AFFECTED |
| 339 | ****************************************************************************/ |
| 340 | kal_bool errc_rcm_get_lte_support_band_for_plmn_list( |
| 341 | const MRS_SIM_INDEX sim_idx, |
| 342 | const mrs_plmn_id_list *p_plmn_id_list, |
| 343 | kal_uint8 *p_lte_band_bitmask, |
| 344 | kal_bool is_requestfreband); |
| 345 | |
| 346 | /**************************************************************************** |
| 347 | * FUNCTION |
| 348 | * errc_rcm_get_custom_disable_band_list |
| 349 | * |
| 350 | * DESCRIPTION |
| 351 | * Get the custom disable band list setting by nvram |
| 352 | * |
| 353 | * PARAMETERS |
| 354 | * @param |
| 355 | * [in] SIM index |
| 356 | * [out] p_positive_disable_band_list |
| 357 | * [out] p_inverted_disable_band_list |
| 358 | * RETURNS |
| 359 | * @return |
| 360 | * |
| 361 | * GLOBALS AFFECTED |
| 362 | ****************************************************************************/ |
| 363 | void errc_rcm_get_custom_disable_band_list( |
| 364 | const MRS_SIM_INDEX sim_idx, |
| 365 | nvram_errc_custom_disable_band_positive_struct *p_positive_disable_band_list, |
| 366 | nvram_errc_custom_disable_band_inverted_struct *p_inverted_disable_band_list); |
| 367 | |
| 368 | /**************************************************************************** |
| 369 | * FUNCTION |
| 370 | * errc_rcm_check_special_plmn_excluded |
| 371 | * |
| 372 | * DESCRIPTION |
| 373 | * Check if the input PLMN List contains any special PLMN which is set to |
| 374 | * be excluded from being filtered by global LTE support band table. |
| 375 | * |
| 376 | * PARAMETERS |
| 377 | * @param |
| 378 | * [in] SIM index |
| 379 | * [in] PLMN Id List |
| 380 | * |
| 381 | * RETURNS |
| 382 | * @return |
| 383 | * kal_bool: TRUE if the input PLMN list contains one or more special |
| 384 | * PLMN identities. |
| 385 | * |
| 386 | * GLOBALS AFFECTED |
| 387 | ****************************************************************************/ |
| 388 | kal_bool errc_rcm_check_special_plmn_excluded( |
| 389 | const MRS_SIM_INDEX sim_idx, |
| 390 | const mrs_plmn_id_list *p_plmn_id_list); |
| 391 | |
| 392 | |
| 393 | #if defined(__GEMINI_LTE__) && defined(UNIT_TEST) //Gemini Multi LTE UT |
| 394 | /**************************************************************************** |
| 395 | * FUNCTION |
| 396 | * errc_ut_duplicate_nvram_for_multiSIM |
| 397 | * |
| 398 | * DESCRIPTION |
| 399 | * Function called by MRS_EAS to get ERRC MoDIS ut_duplicate_nvram_multiSIM setting |
| 400 | * |
| 401 | * PARAMETERS |
| 402 | * @param |
| 403 | * void |
| 404 | * RETURNS |
| 405 | * @return |
| 406 | * 0: default duplicate NVRAM fro other SIM; 1: no duplicating, setting nvram is invoked by MSC |
| 407 | * |
| 408 | * GLOBALS AFFECTED |
| 409 | ****************************************************************************/ |
| 410 | kal_uint8 errc_ut_duplicate_nvram_for_multiSIM(void); |
| 411 | #endif // defined(__GEMINI_LTE__) && defined(UNIT_TEST) |
| 412 | |
| 413 | /**************************************************************************** |
| 414 | * FUNCTION |
| 415 | * errc_is_any_lte_band_exist |
| 416 | * |
| 417 | * DESCRIPTION |
| 418 | * |
| 419 | * |
| 420 | * PARAMETERS |
| 421 | * @param |
| 422 | * void |
| 423 | * RETURNS |
| 424 | * |
| 425 | * |
| 426 | * GLOBALS AFFECTED |
| 427 | ****************************************************************************/ |
| 428 | |
| 429 | kal_bool errc_is_any_lte_band_exist(MRS_SIM_INDEX sim_index, mrs_plmn_id_list *p_plmn_list); |
| 430 | |
| 431 | /**************************************************************************** |
| 432 | * FUNCTION |
| 433 | * errc_com_get_hplmn |
| 434 | * |
| 435 | * DESCRIPTION |
| 436 | * To get hplmn |
| 437 | * |
| 438 | * PARAMETERS |
| 439 | * @param |
| 440 | * void |
| 441 | * RETURNS |
| 442 | * whether get hplmn successfully |
| 443 | * |
| 444 | * GLOBALS AFFECTED |
| 445 | ****************************************************************************/ |
| 446 | |
| 447 | kal_bool errc_com_get_hplmn(plmn_id_struct *plmn_id, MRS_SIM_INDEX sim_idx); |
| 448 | |
| 449 | /**************************************************************************** |
| 450 | * FUNCTION |
| 451 | * errc_com_get_splmn |
| 452 | * |
| 453 | * DESCRIPTION |
| 454 | * To get splmn |
| 455 | * |
| 456 | * PARAMETERS |
| 457 | * @param |
| 458 | * void |
| 459 | * RETURNS |
| 460 | * whether get splmn successfully |
| 461 | * |
| 462 | * GLOBALS AFFECTED |
| 463 | ****************************************************************************/ |
| 464 | |
| 465 | kal_bool errc_com_get_splmn(plmn_id_struct *plmn_id, MRS_SIM_INDEX sim_idx); |
| 466 | |
| 467 | #ifdef __NR_RAT__ |
| 468 | /**************************************************************************** |
| 469 | * FUNCTION |
| 470 | * errc_calculate_p_compensation |
| 471 | * |
| 472 | * DESCRIPTION |
| 473 | * calculate p_compensation for NRRC |
| 474 | * |
| 475 | * PARAMETERS |
| 476 | * @param |
| 477 | * sim_idx |
| 478 | * target_earfcn |
| 479 | * p_max |
| 480 | * *p_multi_band_list |
| 481 | * RETURNS |
| 482 | * @return |
| 483 | * Pcompensation |
| 484 | ****************************************************************************/ |
| 485 | kal_int8 errc_calculate_p_compensation( |
| 486 | MRS_SIM_INDEX sim_idx, |
| 487 | EARFCN target_earfcn, |
| 488 | kal_int8 p_max, |
| 489 | eutra_multibandinfo_list_struct *p_multi_band_list, |
| 490 | const plmn_id_struct *p_plmn_id); |
| 491 | #endif /* __NR_RAT__ */ |
| 492 | |
| 493 | #ifdef __NVM_GLOBAL_CABC__ |
| 494 | /**************************************************************************** |
| 495 | * FUNCTION |
| 496 | * errc_rcm_chk_nvram_global_band_ca_custom |
| 497 | * |
| 498 | * DESCRIPTION |
| 499 | * API for checking if Global Band CA custom actiavted |
| 500 | * |
| 501 | * PARAMETERS |
| 502 | * @param |
| 503 | * [in] p_plmn_id_list |
| 504 | * RETURNS |
| 505 | * @return |
| 506 | * TRUE means Global Band CA Custom actiavted |
| 507 | ****************************************************************************/ |
| 508 | kal_bool errc_rcm_chk_is_global_band_ca_custom(const mrs_plmn_id_list *p_plmn_id_list); |
| 509 | /**************************************************************************** |
| 510 | * FUNCTION |
| 511 | * errc_rcm_get_lte_band_from_nvram_global |
| 512 | * |
| 513 | * DESCRIPTION |
| 514 | * API for geting LTE support band by filtering of Global Band CA Custom |
| 515 | * |
| 516 | * PARAMETERS |
| 517 | * @param |
| 518 | * [in] p_plmn_id_list |
| 519 | * [out] p_lte_band_bitmask |
| 520 | * RETURNS |
| 521 | * @return |
| 522 | * void |
| 523 | ****************************************************************************/ |
| 524 | void errc_rcm_get_lte_band_from_nvram_global(mrs_plmn_id_list *p_plmn_id_list, kal_uint8 *p_lte_band_bitmask); |
| 525 | #endif |
| 526 | |
| 527 | /**************************************************************************** |
| 528 | * FUNCTION |
| 529 | * errc_check_eutra_capability_supported |
| 530 | * |
| 531 | * DESCRIPTION |
| 532 | * API for checking eutra capability support status |
| 533 | * |
| 534 | * PARAMETERS |
| 535 | * @param |
| 536 | * [in] eutra feature |
| 537 | * RETURNS |
| 538 | * @return |
| 539 | * TRUE means the feature is supported |
| 540 | ****************************************************************************/ |
| 541 | kal_bool errc_check_eutra_capability_supported(eas_cap_feature_enum feature); |
| 542 | #endif /* _ERRC_MRS_INTERFACE_H_ */ |