yu.dong | c33b307 | 2024-08-21 23:14:49 -0700 | [diff] [blame^] | 1 | /******************************************************************************* |
| 2 | * Modification Notice: |
| 3 | * -------------------------- |
| 4 | * This software is modified by MediaTek Inc. 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) 2016 |
| 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 | * cl1tsteltif.h |
| 41 | * |
| 42 | * Project: |
| 43 | * -------- |
| 44 | * MTXXXX Project |
| 45 | * |
| 46 | * Description: |
| 47 | * ------------ |
| 48 | * This file contains the elt if functions declare. |
| 49 | * |
| 50 | * Author: |
| 51 | * ------- |
| 52 | * |
| 53 | * |
| 54 | *============================================================================== |
| 55 | * HISTORY |
| 56 | * Below this line, this part is controlled by PVCS VM. DO NOT MODIFY!! |
| 57 | *------------------------------------------------------------------------------ |
| 58 | * removed! |
| 59 | * removed! |
| 60 | * removed! |
| 61 | * |
| 62 | * removed! |
| 63 | * removed! |
| 64 | * removed! |
| 65 | * removed! |
| 66 | * |
| 67 | * removed! |
| 68 | * removed! |
| 69 | * |
| 70 | * removed! |
| 71 | * removed! |
| 72 | * removed! |
| 73 | * |
| 74 | * removed! |
| 75 | * removed! |
| 76 | * removed! |
| 77 | * removed! |
| 78 | * |
| 79 | * removed! |
| 80 | * removed! |
| 81 | * removed! |
| 82 | * removed! |
| 83 | * |
| 84 | * removed! |
| 85 | * removed! |
| 86 | * removed! |
| 87 | * |
| 88 | * removed! |
| 89 | * removed! |
| 90 | * removed! |
| 91 | * |
| 92 | * removed! |
| 93 | * removed! |
| 94 | * removed! |
| 95 | * |
| 96 | * removed! |
| 97 | * removed! |
| 98 | * removed! |
| 99 | * removed! |
| 100 | * |
| 101 | * removed! |
| 102 | * removed! |
| 103 | * removed! |
| 104 | * |
| 105 | * removed! |
| 106 | * removed! |
| 107 | * |
| 108 | * removed! |
| 109 | * removed! |
| 110 | * removed! |
| 111 | * removed! |
| 112 | * |
| 113 | * removed! |
| 114 | * removed! |
| 115 | * |
| 116 | * removed! |
| 117 | * removed! |
| 118 | * removed! |
| 119 | * removed! |
| 120 | * |
| 121 | * removed! |
| 122 | * removed! |
| 123 | * |
| 124 | * removed! |
| 125 | * removed! |
| 126 | * removed! |
| 127 | * removed! |
| 128 | * |
| 129 | * removed! |
| 130 | * removed! |
| 131 | * removed! |
| 132 | * removed! |
| 133 | * |
| 134 | * removed! |
| 135 | * removed! |
| 136 | * removed! |
| 137 | * |
| 138 | * removed! |
| 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 | * removed! |
| 155 | * |
| 156 | * removed! |
| 157 | * removed! |
| 158 | * |
| 159 | * removed! |
| 160 | * removed! |
| 161 | * removed! |
| 162 | * |
| 163 | * removed! |
| 164 | * removed! |
| 165 | * |
| 166 | * removed! |
| 167 | * removed! |
| 168 | * |
| 169 | * removed! |
| 170 | * removed! |
| 171 | * |
| 172 | * removed! |
| 173 | * removed! |
| 174 | * removed! |
| 175 | * removed! |
| 176 | * removed! |
| 177 | * |
| 178 | * removed! |
| 179 | * removed! |
| 180 | * |
| 181 | * removed! |
| 182 | * removed! |
| 183 | * removed! |
| 184 | * removed! |
| 185 | * |
| 186 | * removed! |
| 187 | * removed! |
| 188 | * |
| 189 | * removed! |
| 190 | * removed! |
| 191 | * |
| 192 | * removed! |
| 193 | * removed! |
| 194 | * |
| 195 | * |
| 196 | * |
| 197 | * |
| 198 | * |
| 199 | * |
| 200 | *------------------------------------------------------------------------------ |
| 201 | * Upper this line, this part is controlled by PVCS VM. DO NOT MODIFY!! |
| 202 | *============================================================================== |
| 203 | ******************************************************************************/ |
| 204 | |
| 205 | #ifndef _CL1TST_ELT_IF_H_ |
| 206 | #define _CL1TST_ELT_IF_H_ |
| 207 | |
| 208 | /*---------------------------------------------------------------------------- |
| 209 | Include Files |
| 210 | ----------------------------------------------------------------------------*/ |
| 211 | #include "cl1tstmetaif.h" |
| 212 | |
| 213 | /* RCP_ETS_TX_AVAILABLE_PWR_TEST_MODE_MSG*/ |
| 214 | typedef enum |
| 215 | { |
| 216 | TXAGC_CTRL_TYPE_STOP = 0, |
| 217 | TXAGC_CTRL_TYPE_START = 1, |
| 218 | TXAGC_CTRL_TYPE_GET_TX_PWR = 2, |
| 219 | TXAGC_CTRL_TYPE_INVALID = 0xFF |
| 220 | } RcpTstTxAgcCtrlTypeT; |
| 221 | |
| 222 | /** define the transmission signal type enumeration */ |
| 223 | typedef enum |
| 224 | { |
| 225 | CL1TST_ELT_TX_SIG_TYPE_1X = 1, |
| 226 | CL1TST_ELT_TX_SIG_TYPE_DO_PILOT = 2, |
| 227 | CL1TST_ELT_TX_SIG_TYPE_DO_ST2 = 3, |
| 228 | CL1TST_ELT_TX_SIG_TYPE_DO_PHYUT = 4, |
| 229 | CL1TST_ELT_TX_SIG_TYPE_RF_TONE = 6, |
| 230 | CL1TST_ELT_TX_SIG_TYPE_BB_TONE = 7 |
| 231 | } Cl1TstEltTxSigTypeT; |
| 232 | |
| 233 | |
| 234 | typedef enum |
| 235 | { |
| 236 | CL1TST_NULL = 0, |
| 237 | CL1TST_OVERHEADMESSAGE_TEST = 1, |
| 238 | CL1TST_FTCCRC_TEST = 2, |
| 239 | CL1TST_PHY_UT_TEST = 3, |
| 240 | CL1TST_FTCCRC_SINGLE_TEST = 4, |
| 241 | CL1TST_FCCCRC_TEST = 5 |
| 242 | } Cl1TstCfgTypeT; |
| 243 | |
| 244 | typedef enum |
| 245 | { |
| 246 | CL1TST_SUCCESSFULL = 0, |
| 247 | CL1TST_FAIL = 1 |
| 248 | } Cl1TstRspResultT; |
| 249 | |
| 250 | /** define the Pwr mode enumeration (Or APT, DPD) */ |
| 251 | typedef enum |
| 252 | { |
| 253 | CL1TST_PWR_MODE_ETM, |
| 254 | CL1TST_PWR_MODE_APT, |
| 255 | CL1TST_PWR_MODE_DPD |
| 256 | } Cl1TstPwrModeT; |
| 257 | |
| 258 | typedef struct |
| 259 | { |
| 260 | kal_uint16 FtcPerStatic; |
| 261 | kal_uint16 FccPerStatic; |
| 262 | kal_uint32 FtcTotalFwdPacketsCount; |
| 263 | kal_uint32 FtcTotalFwdGoodPacketsCount; |
| 264 | kal_uint32 FccTotalFwdPacketsCount; |
| 265 | kal_uint8 PreambleMacId; |
| 266 | kal_uint8 DrcIndex; |
| 267 | kal_uint32 RspFramConut; |
| 268 | }Cl1TstRspInfoT; |
| 269 | |
| 270 | |
| 271 | /** define RF transmitter control command structure */ |
| 272 | typedef struct |
| 273 | { |
| 274 | /* 0: 1xRTT, 1: EVDO */ |
| 275 | kal_uint8 RfMode; |
| 276 | |
| 277 | /* 0: OFF, 1: ON */ |
| 278 | kal_uint8 Action; |
| 279 | |
| 280 | /* 0: TXDFE RF tone for 1xRTT and EVDO |
| 281 | 1: TXDFE BB signal tone for 1xRTT and EVDO |
| 282 | 2: reverse 1xRTT signal for 1xRTT |
| 283 | 3: reverse EVDO pilot only for EVDO |
| 284 | 4: reverse EVDO subtype2 for EVDO */ |
| 285 | kal_uint8 SigType; |
| 286 | |
| 287 | /* CDMA Band Class to turn on*/ |
| 288 | kal_uint8 BandClass; |
| 289 | |
| 290 | /* Channel Number to turn on*/ |
| 291 | kal_uint16 ChannelNum; |
| 292 | |
| 293 | /* Power reference used for open loop estimation in 1/64dBm@S9.6 unit.*/ |
| 294 | kal_int16 PwrRef; |
| 295 | |
| 296 | /* Frequency offset for RF tone transmission */ |
| 297 | kal_uint32 FreqOffset; |
| 298 | |
| 299 | /* BB tone configuration parameters */ |
| 300 | kal_uint32 BbToneCfg; |
| 301 | |
| 302 | Cl1Tst1xSigParaT RttSigPara; |
| 303 | |
| 304 | /* total frequency offset error in Hz*/ |
| 305 | kal_int32 FoeHz; |
| 306 | |
| 307 | /* Open loop correct gain with S0.16 unit*/ |
| 308 | kal_int32 OlCorrGain; |
| 309 | |
| 310 | /* Open loop max slew with S2.6 unit*/ |
| 311 | kal_int32 OlMaxSlew; |
| 312 | |
| 313 | /* RPC combine with U5.0*/ |
| 314 | kal_uint16 RpcCombThr; |
| 315 | |
| 316 | /* RSSI value with filter in 1/64dBm@S7.6 unit.*/ |
| 317 | kal_int16 RssiWiFilter; |
| 318 | |
| 319 | /* TXAGC SW mode control |
| 320 | bit[7:0]: rpc_bit_src_sel, 1: sw mode, 0: normal mode |
| 321 | bit[15:8]: ks_value_src_sel, 1: sw mode, 0: normal mode |
| 322 | bit[23:16]: rpc_sym_pos_sel, 1: sw mode, 0: normal mode |
| 323 | */ |
| 324 | kal_uint32 TxAgcSwMode; |
| 325 | |
| 326 | /* Tx Agc control flag */ |
| 327 | kal_uint8 TxAgcFlag; |
| 328 | |
| 329 | /* TX AGC control type, |
| 330 | 0: stop sw txagc, |
| 331 | 1: start sw txagc */ |
| 332 | kal_uint8 CtrlType; |
| 333 | |
| 334 | /* Access/ Traffic channel */ |
| 335 | kal_uint8 ChanType; |
| 336 | |
| 337 | /* PHY subtype */ |
| 338 | kal_uint8 PhySubType; |
| 339 | |
| 340 | /* Power reference used for open loop estimation in 1/64dBm@S9.6 unit.*/ |
| 341 | kal_int16 PowerBase; /* Q6 dB */ |
| 342 | |
| 343 | /* Bit0: trans ind TRUE/FALSE, |
| 344 | Bit4: Close loop parameters enable/disable */ |
| 345 | kal_uint16 TestBmp; |
| 346 | |
| 347 | /* close loop step up size in 1/64dB@S2.6 unit */ |
| 348 | kal_int16 ClStepUp; |
| 349 | |
| 350 | /* close loop step down size in 1/64dB@S2.6 unit */ |
| 351 | kal_int16 ClStepDown; |
| 352 | |
| 353 | /* close loop adjustment limited in 1/64dB@S8.6 unit */ |
| 354 | kal_int16 ClAdjMax; |
| 355 | |
| 356 | /* close loop adjustment limited in 1/64dB@S8.6 unit */ |
| 357 | kal_int16 ClAdjMin; |
| 358 | |
| 359 | /* maximum transmit power adjustment in 1/64dB@S5.6 unit, set zero |
| 360 | if not use it */ |
| 361 | kal_int16 MaxPwrAdj; |
| 362 | |
| 363 | /* KS value in SW mode with S6.6 unit*/ |
| 364 | kal_uint16 PcgVldPat; //Indicate PCG valid pattern |
| 365 | |
| 366 | /* RPC bit in SW mode with U2.0 unit*/ |
| 367 | kal_uint16 RpcBitSw; |
| 368 | |
| 369 | /* KS value in SW mode with S6.6 unit*/ |
| 370 | kal_int16 KsValueSw; |
| 371 | |
| 372 | /* Indicate RPC symbol position */ |
| 373 | kal_uint16 RpcSymPosSw[16]; //1xRTT only |
| 374 | |
| 375 | /* bitmap indicate RC configuration for 16 PCGs */ |
| 376 | kal_uint16 RcCfgPat; // 1xRTT only, bitmap indicate RC configuration for 16 PCGs |
| 377 | |
| 378 | kal_uint16 Reserved; |
| 379 | |
| 380 | } Cl1TstTransmitCtrlEltCmdT; |
| 381 | |
| 382 | typedef struct |
| 383 | { |
| 384 | /*For EVDO*/ |
| 385 | Cl1TstTransmitCtrlCmdT Msg; |
| 386 | kal_uint16 EvChannelType; |
| 387 | kal_uint16 EvProtocolSubtype; |
| 388 | kal_uint16 EvAuxPilotMiniPayload; |
| 389 | kal_uint16 EvDrcGating; |
| 390 | kal_uint16 EvDrcBoostLength; |
| 391 | kal_uint16 EvDscBoostLength; |
| 392 | kal_uint16 EvDrcLength; |
| 393 | kal_uint16 EvFrameOffset; |
| 394 | /*subype0:0,0,1:9.6K,2:19.2k,3:38.4k,4:76.8k, 5:153.6 */ |
| 395 | kal_uint16 EvDataRate; |
| 396 | kal_uint16 EvDRCCover; |
| 397 | kal_uint16 EvDRCCover1; |
| 398 | kal_uint16 EvDRCCover2; |
| 399 | kal_uint16 EvDRCValue; |
| 400 | kal_uint16 EvDRCValue1; |
| 401 | kal_uint16 EvDSCValue; |
| 402 | kal_uint16 EvDSCValue1; |
| 403 | kal_uint16 EvDSCValue2; |
| 404 | kal_uint16 EvAckEnalble; |
| 405 | kal_uint16 EvAckUserType; |
| 406 | kal_uint16 EvAckBits; |
| 407 | kal_uint16 EvAckBits1; |
| 408 | kal_uint16 EvAckSuScale; |
| 409 | kal_uint16 EvAckMuScale; |
| 410 | kal_uint16 EvPreSlot; |
| 411 | kal_uint16 EvCapFrame; |
| 412 | } Cl1TstTransmitCtrlCmdPhyUT; |
| 413 | |
| 414 | /** define temperature back off data structure */ |
| 415 | typedef struct |
| 416 | { |
| 417 | kal_uint8 Band; |
| 418 | kal_int8 Temperature; |
| 419 | kal_int16 BackOff; |
| 420 | } Cl1TstTempBackOffDataT; |
| 421 | |
| 422 | /** define temperature back off set command structure */ |
| 423 | typedef struct |
| 424 | { |
| 425 | Cl1TstTempBackOffDataT BackOffData; |
| 426 | } Cl1TstTempBackOffSetCmdT; |
| 427 | |
| 428 | /** define temperature back off set response structure */ |
| 429 | typedef struct |
| 430 | { |
| 431 | /* Request execute status */ |
| 432 | Cl1TstReqStatusE Status; |
| 433 | } Cl1TstTempBackOffSetRspT; |
| 434 | |
| 435 | /** define temperature back off get command structure */ |
| 436 | typedef struct |
| 437 | { |
| 438 | /* band class */ |
| 439 | kal_uint8 Band; |
| 440 | kal_uint8 Reserved1; |
| 441 | kal_uint16 Reserved2; |
| 442 | } Cl1TstTempBackOffGetCmdT; |
| 443 | |
| 444 | /** define temperature back off get response structure */ |
| 445 | typedef struct |
| 446 | { |
| 447 | /* Request execute status */ |
| 448 | Cl1TstReqStatusE Status; |
| 449 | |
| 450 | /* Back off data */ |
| 451 | Cl1TstTempBackOffDataT BackOffData; |
| 452 | } Cl1TstTempBackOffGetRspT; |
| 453 | |
| 454 | typedef struct |
| 455 | { |
| 456 | /* TX AGC control type, |
| 457 | 0: stop sw txagc, |
| 458 | 1: start sw txagc, |
| 459 | 2: obtain current request power */ |
| 460 | kal_uint8 CtrlType; |
| 461 | |
| 462 | /* Tx slot */ |
| 463 | kal_uint8 TxSlot; |
| 464 | |
| 465 | /* Access/ Traffic channel */ |
| 466 | kal_uint8 ChanType; |
| 467 | |
| 468 | /* PHY subtype */ |
| 469 | kal_uint8 PhySubType; |
| 470 | |
| 471 | /* Power reference used for open loop estimation in 1/64dBm@S9.6 unit.*/ |
| 472 | kal_int16 PowerBase; /* Q6 dB */ |
| 473 | |
| 474 | /* Bit0: trans ind TRUE/FALSE, |
| 475 | Bit4: Close loop parameters enable/disable */ |
| 476 | kal_uint16 TestBmp; |
| 477 | |
| 478 | /* close loop step up size in 1/64dB@S2.6 unit */ |
| 479 | kal_int16 ClStepUp; |
| 480 | |
| 481 | /* close loop step down size in 1/64dB@S2.6 unit */ |
| 482 | kal_int16 ClStepDown; |
| 483 | |
| 484 | /* close loop adjustment limited in 1/64dB@S8.6 unit */ |
| 485 | kal_int16 ClAdjMax; |
| 486 | |
| 487 | /* close loop adjustment limited in 1/64dB@S8.6 unit */ |
| 488 | kal_int16 ClAdjMin; |
| 489 | |
| 490 | /* maximum transmit power adjustment in 1/64dB@S5.6 unit, set zero |
| 491 | if not use it */ |
| 492 | kal_int16 MaxPwrAdj; |
| 493 | |
| 494 | /* RPC bit in SW mode with U2.0 unit*/ |
| 495 | kal_uint16 RpcBitSw; /* Q6 dB */ |
| 496 | |
| 497 | /* KS value in SW mode with S6.6 unit*/ |
| 498 | kal_int16 KsValueSw; /* Q6 dB */ |
| 499 | |
| 500 | /* Reserved */ |
| 501 | kal_uint16 Reserved; |
| 502 | |
| 503 | } RcpTstTxAgcCtrlCmdT; |
| 504 | |
| 505 | /** define Tx AGC test ctrl message */ |
| 506 | typedef struct |
| 507 | { |
| 508 | kal_uint16 CtrlType; //1: start TxAGC test, 0: Stop TxAGC test |
| 509 | kal_uint16 PcgVldPat; //Indicate PCG valid pattern |
| 510 | kal_uint16 RpcBitSw; //RPC bit in SW mode with U2.0 unit |
| 511 | kal_uint16 RpcSymPosSw[16]; //Indicate RPC symbol position |
| 512 | kal_int16 KsValueSw; //KS value in SW mode with S6.6 unit |
| 513 | kal_uint16 ClStepUp; //Step size of close loop adjustment for increment |
| 514 | kal_uint16 ClStepDown; //Step size of close loop adjustment for decrement |
| 515 | kal_uint16 GatePat; //GateOn/Off pattern |
| 516 | kal_int16 ClAdjMax; //Maximum close loop accumulation |
| 517 | kal_int16 ClAdjMin; //Minimum close loop accumulation |
| 518 | kal_int16 MaxPwrAdj; //Maximum power adjustment |
| 519 | kal_uint16 RcCfgPat; //RC configuration per slot basis |
| 520 | kal_uint16 TxAgcCfgSlot;//Indicate TxAGC configuration start Slot |
| 521 | |
| 522 | } L1dTstTxAgcCtrlCmdT; |
| 523 | |
| 524 | |
| 525 | /** define Tx AGC test ctrl message response */ |
| 526 | typedef struct |
| 527 | { |
| 528 | /* Request execute status */ |
| 529 | Cl1TstReqStatusE Status; |
| 530 | } L1dTstTxAgcCtrlRspT; |
| 531 | |
| 532 | typedef struct |
| 533 | { |
| 534 | /* Preemption type:, |
| 535 | 0: stop preemption, |
| 536 | 1: start RTB/HSC preemption, */ |
| 537 | kal_uint8 Preempt; |
| 538 | } RcpTxSthRtbHscPreemptCtrlCmdT; |
| 539 | |
| 540 | typedef struct |
| 541 | { |
| 542 | /* Request execute status */ |
| 543 | Cl1TstReqStatusE Status; |
| 544 | } Cl1TstRxAntennaTestModeRspT; |
| 545 | |
| 546 | typedef struct |
| 547 | { |
| 548 | kal_uint32 CfgData; |
| 549 | } TxDfeBbToneCfgCmdT; |
| 550 | |
| 551 | |
| 552 | typedef struct |
| 553 | { |
| 554 | /* Request execute status */ |
| 555 | Cl1TstReqStatusE Status; |
| 556 | } TxDfeBbToneCfgRspT; |
| 557 | |
| 558 | typedef struct |
| 559 | { |
| 560 | kal_uint32 CfgData; |
| 561 | } TxDfeBbNcoCfgCmdT; |
| 562 | |
| 563 | typedef struct |
| 564 | { |
| 565 | /* Request execute status */ |
| 566 | Cl1TstReqStatusE Status; |
| 567 | } TxDfeBbNcoCfgRspT; |
| 568 | |
| 569 | /** define SNR query command structure */ |
| 570 | typedef struct |
| 571 | { |
| 572 | /* 0: 1xRTT, 1: EVDO */ |
| 573 | kal_uint8 RfMode; |
| 574 | |
| 575 | /* Bit0: main antenna, Bit1: diversity antenna, Bit2: SHDR */ |
| 576 | kal_uint8 PathBitMap; |
| 577 | } Cl1TstRxSnrQueryCmdT; |
| 578 | |
| 579 | /** define SNR query confirm structure */ |
| 580 | typedef struct |
| 581 | { |
| 582 | /* Request execute status */ |
| 583 | Cl1TstReqStatusE Status; |
| 584 | |
| 585 | /* Main antenna Rx Main Ant SNR, unit is Q5 dBm */ |
| 586 | kal_uint16 RxMainAntSnr; |
| 587 | |
| 588 | /* Diversity antenna Rx power, unit is Q5 dBm */ |
| 589 | kal_uint16 RxDivAntSnr; |
| 590 | |
| 591 | } Cl1TstRxSnrQueryRspT; |
| 592 | |
| 593 | /** define Ec/Io query command structure */ |
| 594 | typedef struct |
| 595 | { |
| 596 | /* 0: 1xRTT, 1: EVDO */ |
| 597 | kal_uint8 RfMode; |
| 598 | |
| 599 | /* Bit0: main antenna, Bit1: diversity antenna, Bit2: SHDR */ |
| 600 | kal_uint8 PathBitMap; |
| 601 | } Cl1TstRxEcIoQueryCmdT; |
| 602 | |
| 603 | /** define Ec/Io query confirm structure */ |
| 604 | typedef struct |
| 605 | { |
| 606 | /* Request execute status */ |
| 607 | Cl1TstReqStatusE Status; |
| 608 | |
| 609 | /* Main antenna Rx power, unit is Q5 dBm */ |
| 610 | kal_int16 RxMainAntEcIo; |
| 611 | |
| 612 | /* Diversity antenna Rx power, unit is Q5 dBm */ |
| 613 | kal_int16 RxDivAntEcIo; |
| 614 | |
| 615 | } Cl1TstRxEcIoQueryRspT; |
| 616 | |
| 617 | /** define ICS SYNC command ELT msg */ |
| 618 | typedef struct |
| 619 | { |
| 620 | /* |
| 621 | 0: ics wo afc wo 1x |
| 622 | 1: ics wi afc wo 1x |
| 623 | 2: ics wo afc wi 1x |
| 624 | 3: ics wi afc wi 1x |
| 625 | 4: ics wo signal |
| 626 | 5: ics wi strong signal |
| 627 | 6: ics foe |
| 628 | 7: ics preempt |
| 629 | 0xf----->valid(no test )*/ |
| 630 | kal_uint16 caseId ; |
| 631 | kal_uint16 Dummy ; |
| 632 | |
| 633 | } EltTstIcsTstCaseIdCfgT; |
| 634 | |
| 635 | typedef struct |
| 636 | { |
| 637 | kal_bool RcpDbgEn; /* 1->RCP subchannel in Debug mode, 0->normal mode */ |
| 638 | kal_bool RcpDbgVal; |
| 639 | kal_bool ArqDbgEn; /* 1->H/LARQ subchannel in Debug mode, 0->normal mode */ |
| 640 | kal_bool ArqDbgVal; |
| 641 | }EltTstMcdDebugMsgT; |
| 642 | |
| 643 | |
| 644 | typedef struct |
| 645 | { |
| 646 | SysCdmaBandT Band; |
| 647 | kal_uint16 Chan; |
| 648 | kal_uint8 TriggerSource; /* 0->IDP; 1->RUP */ |
| 649 | }EltRmcInterhoTstCfgT; |
| 650 | |
| 651 | typedef struct |
| 652 | { |
| 653 | kal_uint16 ResePilotPN; |
| 654 | }EltRmcIntrahoTstCfgT; |
| 655 | |
| 656 | |
| 657 | typedef struct |
| 658 | { |
| 659 | kal_uint8 DoSignalValidFlag; |
| 660 | } EltTstStbDoSignalCfgT; |
| 661 | |
| 662 | |
| 663 | typedef struct |
| 664 | { |
| 665 | kal_uint8 RttTimingValid; |
| 666 | kal_uint8 DoTimingValid; |
| 667 | } EltTstStbTimingCfgT; |
| 668 | |
| 669 | typedef struct |
| 670 | { |
| 671 | kal_uint8 temp_type; |
| 672 | } EltTstReadTempT; |
| 673 | |
| 674 | |
| 675 | /** define temperature get response structure */ |
| 676 | typedef struct |
| 677 | { |
| 678 | /* Request execute status */ |
| 679 | Cl1TstReqStatusE Status; |
| 680 | |
| 681 | /* Get temperature*/ |
| 682 | CL1D_RF_TEMPERATURE_QUERY_T Temperature; |
| 683 | } Cl1TstReadTempRspT; |
| 684 | |
| 685 | typedef struct |
| 686 | { |
| 687 | kal_uint8 State; |
| 688 | kal_uint8 DfsType; |
| 689 | kal_uint8 ChanIndex; |
| 690 | } Cl1TstRmcDfsMeasDoneRspT; |
| 691 | |
| 692 | |
| 693 | typedef struct |
| 694 | { |
| 695 | kal_bool result;/* 1->Pass, 0->Fail */ |
| 696 | }EltC2kPhyUtTstRptT; |
| 697 | |
| 698 | typedef struct |
| 699 | { |
| 700 | kal_bool CrcResult;/* 1->Pass, 0->Fail */ |
| 701 | kal_uint8 PreambleMacId; |
| 702 | kal_uint8 DrcIndex; |
| 703 | }EltC2kPhyUtRxCaseTstRptT; |
| 704 | |
| 705 | typedef struct |
| 706 | { |
| 707 | kal_bool RESET_EN; |
| 708 | kal_bool EQ_MODE_L1_EN; |
| 709 | kal_uint32 EQ_MODE; |
| 710 | kal_bool MMSE_FLAG_L1_EN; |
| 711 | kal_uint32 MMSE_FLAG; |
| 712 | kal_bool ITER_NUM_L1_EN; |
| 713 | kal_uint32 ITER_NUM; |
| 714 | kal_bool ALPHA_FILTER_MODE_L1_EN; |
| 715 | kal_uint32 ALPHA_FILTER_MODE; |
| 716 | kal_bool DATA_FTM_L1_EN; |
| 717 | kal_uint32 DATA_FRAC; |
| 718 | kal_uint32 C2I_FRAC; |
| 719 | kal_bool PRE_COURSE_L1_EN; |
| 720 | kal_uint32 PRE_COURSE; |
| 721 | kal_bool CORR_LEN_L1_EN; |
| 722 | kal_uint32 CORR_LEN; |
| 723 | kal_bool ALPHA_SHIFT_L1_EN; |
| 724 | kal_uint32 ALPHA_SHIFT; |
| 725 | kal_bool WIN_ADD_BD_L1_EN; |
| 726 | kal_uint32 WIN_ADD_BD; |
| 727 | kal_bool PD_MATRIX_NOISE_L1_EN; |
| 728 | kal_uint32 PD_MATRIX_NOISE; |
| 729 | }EltTstCuifCfgT; |
| 730 | |
| 731 | |
| 732 | typedef struct |
| 733 | { |
| 734 | Cl1TstCfgTypeT TestType; |
| 735 | }EltTstCfgT; |
| 736 | |
| 737 | typedef struct |
| 738 | { |
| 739 | Cl1TstCfgTypeT TestType; |
| 740 | Cl1TstRspResultT TestResult; |
| 741 | Cl1TstRspInfoT TestRspInfo; |
| 742 | }EltTstRspT; |
| 743 | |
| 744 | typedef struct |
| 745 | { |
| 746 | kal_uint8 IsStbOnlyMode; |
| 747 | } EltTstStbOnlyModeCfgT; |
| 748 | |
| 749 | typedef struct |
| 750 | { |
| 751 | SysAirInterfaceT Mode; |
| 752 | kal_uint32 Cl1RcdPwrCtrlPartialBypassConf; |
| 753 | kal_uint32 Cl1RcdClkCtrlPartialBypassConf; |
| 754 | kal_uint32 Cl1RcdSramCtrlPartialBypassConf; |
| 755 | } Cl1RcdPartialBypassConfT; |
| 756 | |
| 757 | typedef struct |
| 758 | { |
| 759 | CL1D_RF_TPC_SECTION_TABLE_T Table[C2K_MIPI_SUBBAND_NUM]; |
| 760 | } NvEditorMipiPaSectionDataTableT; |
| 761 | |
| 762 | /** define TPC MIPI codeword Setting command structure */ |
| 763 | typedef struct |
| 764 | { |
| 765 | /* update NVRAM flag, 0: do not update, 1: update */ |
| 766 | kal_uint8 UpdateNvram; |
| 767 | |
| 768 | /* 0: 1xRTT, 1: EVDO */ |
| 769 | kal_uint8 RfMode; |
| 770 | |
| 771 | /* To update, 0:ETM, 1:APT, 2:DPD */ |
| 772 | kal_uint8 PwrMode; |
| 773 | |
| 774 | /* CDMA Band Class to turn on*/ |
| 775 | kal_uint8 BandClass; |
| 776 | |
| 777 | /* TpcMipi*/ |
| 778 | NvEditorMipiPaSectionDataTableT TpcMipi; |
| 779 | |
| 780 | /* Reserved */ |
| 781 | kal_uint8 Reserved; |
| 782 | } Cl1TstSetTpcMipiCwCmdT; |
| 783 | |
| 784 | /** define TPC MIPI codeword setting confirm structure */ |
| 785 | typedef struct |
| 786 | { |
| 787 | /* Request execute status */ |
| 788 | Cl1TstReqStatusE Status; |
| 789 | } Cl1TstSetTpcMipiCwRspT; |
| 790 | |
| 791 | /** define TPC MIPI codeword getting command structure */ |
| 792 | typedef struct |
| 793 | { |
| 794 | /* 0: 1xRTT, 1: EVDO */ |
| 795 | kal_uint8 RfMode; |
| 796 | |
| 797 | /* To update, 0:ETM, 1:APT, 2:DPD */ |
| 798 | kal_uint8 PwrMode; |
| 799 | |
| 800 | /* CDMA Band Class to turn on*/ |
| 801 | kal_uint8 BandClass; |
| 802 | |
| 803 | /* Reserved */ |
| 804 | kal_uint16 Reserved; |
| 805 | |
| 806 | } Cl1TstGetTpcMipiCwCmdT; |
| 807 | |
| 808 | /** define MIPI codeword getting confirm structure */ |
| 809 | typedef struct |
| 810 | { |
| 811 | /* Request execute status */ |
| 812 | Cl1TstReqStatusE Status; |
| 813 | |
| 814 | /* TPC MIPI data */ |
| 815 | NvEditorMipiPaSectionDataTableT TpcMipi; |
| 816 | } Cl1TstGetTpcMipiCwRspT; |
| 817 | |
| 818 | /*---------------------------------------------------------------------------- |
| 819 | Global Typedefs |
| 820 | ----------------------------------------------------------------------------*/ |
| 821 | extern void Cl1TstEltIfGetRfPlatInfo(Cl1TstGetRfPlatInfoCmdT *Ptr); |
| 822 | extern void Cl1TstEltIfRfdTestModeReq(Cl1TstRfdTestModeReqCmdT *Ptr); |
| 823 | extern void Cl1TstEltIfRfdInitReq(Cl1TstRfdInitReqCmdT *Ptr); |
| 824 | extern void Cl1TstEltIfSetMipiCodeWord(Cl1TstSetMipiCodeWordCmdT *Ptr); |
| 825 | extern void Cl1TstEltIfGetMipiCodeWord(Cl1TstGetMipiCodeWordCmdT *Ptr); |
| 826 | extern void Cl1TstEltIfSetSpiData(Cl1TstSetSpiDataCmdT *Ptr); |
| 827 | extern void Cl1TstEltIfGetSpiData(Cl1TstGetSpiDataCmdT *Ptr); |
| 828 | extern void Cl1TstEltIfSetTpcMipiCodeWord(Cl1TstSetTpcMipiCwCmdT *Ptr); |
| 829 | extern void Cl1TstEltIfGetTpcMipiCodeWord(Cl1TstGetTpcMipiCwCmdT *Ptr); |
| 830 | extern void Cl1TstEltIfTransmitCtrl(Cl1TstTransmitCtrlEltCmdT *Ptr); |
| 831 | extern void Cl1TstEltIfReceiveCtrl(Cl1TstReceiveCtrlCmdT *Ptr); |
| 832 | extern void Cl1TstEltIfAfcConfig(Cl1TstAfcConfigCmdT *Ptr); |
| 833 | extern void Cl1TstEltIfTxAgcConfig(Cl1TstTxAgcConfigCmdT *Ptr); |
| 834 | extern void Cl1TstEltIfTxPowerQuery(Cl1TstTxPowerQueryCmdT *Ptr); |
| 835 | extern void Cl1TstEltIfRxAgcConfig(Cl1TstRxAgcConfigCmdT *Ptr); |
| 836 | extern void Cl1TstEltIfRxRssiQuery(Cl1TstRxRssiQueryCmdT *Ptr); |
| 837 | extern void Cl1TstEltIfRxSnrQuery(Cl1TstRxSnrQueryCmdT *Ptr); |
| 838 | extern void Cl1TstEltIfRxEcIoQuery(Cl1TstRxEcIoQueryCmdT *Ptr); |
| 839 | extern void Cl1TstEltIfAfcCalDataSet(Cl1TstAfcCalDataSetCmdT *Ptr); |
| 840 | extern void Cl1TstEltIfAfcCalDataGet(Cl1TstAfcCalDataGetCmdT *Ptr); |
| 841 | extern void Cl1TstEltIfRxCalDataSet(Cl1TstRxCalDataSetCmdT *Ptr); |
| 842 | extern void Cl1TstEltIfRxCalDataGet(Cl1TstRxCalDataGetCmdT *Ptr); |
| 843 | extern void Cl1TstEltIfTxCalDataSet(Cl1TstTxCalDataSetCmdT *Ptr); |
| 844 | extern void Cl1TstEltIfTxCalDataGet(Cl1TstTxCalDataGetCmdT *Ptr); |
| 845 | #ifndef __MD93__ |
| 846 | extern void Cl1TstEltIfLnaCalPwrPointGet(Cl1TstLnaCalPwrPointGetCmdT *Ptr); |
| 847 | #endif |
| 848 | #if (!defined(__MD93__)) && (!defined(__MD95__)) |
| 849 | extern void Cl1TstEltIfRxGainGet(Cl1TstRxGainGetCmdT *Ptr); |
| 850 | extern void Cl1TstEltIfTxGainGet(Cl1TstTxGainGetCmdT *Ptr); |
| 851 | extern void Cl1TstEltIfSetBpiData(Cl1TstSetBpiDataCmdT *Ptr); |
| 852 | extern void Cl1TstEltIfGetBpiData(Cl1TstGetBpiDataCmdT *Ptr); |
| 853 | extern void Cl1TstEltIfRxAgcFixManualConfig(Cl1TstRxAgcFixManualConfigCmdT *MsgPtr); |
| 854 | #endif |
| 855 | extern void Cl1TstEltIfFhcStart(Cl1TstFhcStartCmdT *Ptr); |
| 856 | extern void Cl1TstEltIfTempBackOffSet(Cl1TstTempBackOffSetCmdT *Ptr); |
| 857 | extern void Cl1TstEltIfTempBackOffGet(Cl1TstTempBackOffGetCmdT *Ptr); |
| 858 | extern void Cl1tstEltIfRcpAccRtbPreempt(RcpTxSthRtbHscPreemptCtrlCmdT *Ptr); |
| 859 | extern void Cl1tstEltIfRcpTxAgcCtrl(RcpTstTxAgcCtrlCmdT *Ptr); |
| 860 | extern void Cl1tstEltIfL1dTxAgcCtrl(L1dTstTxAgcCtrlCmdT *Ptr); |
| 861 | extern void Cl1tstEltIfTxDfeBbToneCfg(TxDfeBbToneCfgCmdT *Ptr); |
| 862 | extern void Cl1tstEltIfTxDfeBbNcoCfg(TxDfeBbNcoCfgCmdT *Ptr); |
| 863 | extern void Cl1TstEltIfIcsCaseIdCfg(EltTstIcsTstCaseIdCfgT *Ptr); |
| 864 | extern void Cl1TstEltIfMcdDbgMsg(EltTstMcdDebugMsgT *MsgPtr); |
| 865 | extern void Cl1TstEltRmcInterhoTstCfg(EltRmcInterhoTstCfgT *Ptr); |
| 866 | extern void Cl1TstEltRmcIntrahoTstCfg(EltRmcIntrahoTstCfgT * Ptr); |
| 867 | extern void Cl1TstEltIfStbDoSignalCfg(EltTstStbDoSignalCfgT *Ptr); |
| 868 | extern void Cl1TstEltIfStbTimingCfg(EltTstStbTimingCfgT *Ptr); |
| 869 | extern void Cl1PhyUtRptToScrip(EltC2kPhyUtTstRptT *CheckRptMsg); |
| 870 | extern void Cl1PhyUtRxCaseRptToScript(EltC2kPhyUtRxCaseTstRptT *CheckRptMsg); |
| 871 | extern void Cl1TestDfsMeasDone(Cl1TstRmcDfsMeasDoneRspT *CheckRptMsg); |
| 872 | extern void Cl1TstEltIfSendMsg(ilm_struct *rsp_ilm_ptr); |
| 873 | extern void Cl1TstEltIfCuifCfg(EltTstCuifCfgT *MsgPtr); |
| 874 | extern void Cl1SendTstResp(Cl1TstCfgTypeT Type,Cl1TstRspResultT Result,Cl1TstRspInfoT *RspInfo); |
| 875 | extern void Cl1TstEltIfStbOnlyModeCfg(EltTstStbOnlyModeCfgT *MsgPtr); |
| 876 | extern void Cl1TstEltIfRcPartialBypassConf(Cl1RcdPartialBypassConfT* MsgPtr); |
| 877 | #endif /* _CL1TST_ELT_IF_H_ */ |
| 878 | |