blob: 20b678699679e08e744c3e6d5dd5766133cef992 [file] [log] [blame]
/*****************************************************************************
* Copyright Statement:
* --------------------
* This software is protected by Copyright and the information contained
* herein is confidential. The software may not be copied and the information
* contained herein may not be used or disclosed except with the written
* permission of MediaTek Inc. (C) 2016
*
* BY OPENING THIS FILE, BUYER HEREBY UNEQUIVOCALLY ACKNOWLEDGES AND AGREES
* THAT THE SOFTWARE/FIRMWARE AND ITS DOCUMENTATIONS ("MEDIATEK SOFTWARE")
* RECEIVED FROM MEDIATEK AND/OR ITS REPRESENTATIVES ARE PROVIDED TO BUYER ON
* AN "AS-IS" BASIS ONLY. MEDIATEK EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT.
* NEITHER DOES MEDIATEK PROVIDE ANY WARRANTY WHATSOEVER WITH RESPECT TO THE
* SOFTWARE OF ANY THIRD PARTY WHICH MAY BE USED BY, INCORPORATED IN, OR
* SUPPLIED WITH THE MEDIATEK SOFTWARE, AND BUYER AGREES TO LOOK ONLY TO SUCH
* THIRD PARTY FOR ANY WARRANTY CLAIM RELATING THERETO. MEDIATEK SHALL ALSO
* NOT BE RESPONSIBLE FOR ANY MEDIATEK SOFTWARE RELEASES MADE TO BUYER'S
* SPECIFICATION OR TO CONFORM TO A PARTICULAR STANDARD OR OPEN FORUM.
*
* BUYER'S SOLE AND EXCLUSIVE REMEDY AND MEDIATEK'S ENTIRE AND CUMULATIVE
* LIABILITY WITH RESPECT TO THE MEDIATEK SOFTWARE RELEASED HEREUNDER WILL BE,
* AT MEDIATEK'S OPTION, TO REVISE OR REPLACE THE MEDIATEK SOFTWARE AT ISSUE,
* OR REFUND ANY SOFTWARE LICENSE FEES OR SERVICE CHARGE PAID BY BUYER TO
* MEDIATEK FOR SUCH MEDIATEK SOFTWARE AT ISSUE.
*
* THE TRANSACTION CONTEMPLATED HEREUNDER SHALL BE CONSTRUED IN ACCORDANCE
* WITH THE LAWS OF THE STATE OF CALIFORNIA, USA, EXCLUDING ITS CONFLICT OF
* LAWS PRINCIPLES. ANY DISPUTES, CONTROVERSIES OR CLAIMS ARISING THEREOF AND
* RELATED THERETO SHALL BE SETTLED BY ARBITRATION IN SAN FRANCISCO, CA, UNDER
* THE RULES OF THE INTERNATIONAL CHAMBER OF COMMERCE (ICC).
*
*****************************************************************************/
#ifndef _CL1TSTPHYUTMAIN_H_
#define _CL1TSTPHYUTMAIN_H_
#ifndef MTK_PLT_ON_PC_IT
typedef enum
{
CL1_PHYUT_MOD_EVL1_FLBSRP,
CL1_PHYUT_MOD_EVL1_SCH,
CL1_PHYUT_MOD_EVL1_RLBSRP,
CL1_PHYUT_MOD_1XL1_FLBSRP,
CL1_PHYUT_MOD_1XL1_SCH,
CL1_PHYUT_MOD_1XL1_RLBSRP,
CL1_PHYUT_MOD_EVL1_FRONTEND,
CL1_PHYUT_MOD_1XL1_FRONTEND,
CL1_PHYUT_MOD_DUAL_MODE,
CL1_PHYUT_MOD_COSIM,
CL1_PHYUT_MOD_RXTIMER,
CL1_PHYUT_MOD_SLPCTRL,
CL1_PHYUT_MOD_NUM
} Cl1PhyUtModIdT;
typedef enum
{
CL1_PHYUT_MOD_CASE_01,
CL1_PHYUT_MOD_CASE_02,
CL1_PHYUT_MOD_CASE_03,
CL1_PHYUT_MOD_CASE_04,
CL1_PHYUT_MOD_CASE_05,
CL1_PHYUT_MOD_CASE_06,
CL1_PHYUT_MOD_CASE_07,
CL1_PHYUT_MOD_CASE_08,
CL1_PHYUT_MOD_CASE_09,
CL1_PHYUT_MOD_CASE_10,
CL1_PHYUT_MOD_CASE_11,
CL1_PHYUT_MOD_CASE_12,
CL1_PHYUT_MOD_CASE_13,
CL1_PHYUT_MOD_CASE_14,
CL1_PHYUT_MOD_CASE_15,
CL1_PHYUT_MOD_CASE_16,
CL1_PHYUT_MOD_CASE_17,
CL1_PHYUT_MOD_CASE_18,
CL1_PHYUT_MOD_CASE_19,
CL1_PHYUT_MOD_CASE_20,
CL1_PHYUT_MOD_CASE_21,
CL1_PHYUT_MOD_CASE_22,
CL1_PHYUT_MOD_CASE_23,
CL1_PHYUT_MOD_CASE_24,
CL1_PHYUT_MOD_CASE_25,
CL1_PHYUT_MOD_CASE_26,
CL1_PHYUT_MOD_CASE_27,
CL1_PHYUT_MOD_CASE_28,
CL1_PHYUT_MOD_CASE_29,
CL1_PHYUT_MOD_CASE_30,
CL1_PHYUT_MOD_CASE_NUM
} Cl1PhyUtModCaseIdT;
typedef struct
{
kal_uint32 OperationType; /* 0: off 1: on */
kal_uint32 RfMode; /* 0: RTT 1: EVDO */
kal_uint32 PathBmp; /* bit0: main bit1:div bit2:sec */
kal_uint32 RxAgcState; /* 0:FAST 1:STEADY 2:ICS 3:FHC */
kal_uint32 PwrMode; /* 0:HPM 1:LPM */
kal_int32 InitRssidBmQ5[3];
} Cl1PhyUtParamRxAgcT;
typedef struct
{
kal_uint32 OperationType; /* 0: off 1: on */
kal_uint32 RfMode; /* 0: RTT 1: EVDO */
kal_uint32 PathBmp; /* bit0: main bit1:div bit2:sec */
kal_uint32 RxAgcState; /* 0:FAST 1:STEADY 2:ICS 3:FHC */
kal_uint32 PwrMode; /* 0:HPM 1:LPM */
kal_int32 InitRssidBmQ5[3];
kal_int32 FoeHz;
} Cl1PhyUtParamAfcNcoT;
typedef struct
{
kal_uint32 OperationType; /* 0: off 1: on */
kal_uint32 RfMode; /* 0: RTT 1: EVDO */
kal_uint32 PathBmp; /* bit0: main bit1:div bit2:sec */
kal_uint32 RxAgcState; /* 0:FAST 1:STEADY 2:ICS 3:FHC */
kal_uint32 PwrMode; /* 0:HPM 1:LPM */
kal_int32 InitRssidBmQ5[3];
kal_uint32 NbifBmp;
kal_int32 FoeHz[3];
} Cl1PhyUtParamAfcNbifT;
typedef struct
{
kal_uint32 ModeBmp; /* Bit0: 1X; Bit1: EVDO
1: 1X only; 2: DO only; 3: 1X and DO */
kal_uint32 CaseBmp[2]; /* [0]: 1X; [1]: DO */
} Cl1PhyUtParamRxTimerT;
typedef struct
{
kal_uint32 ModeBmp; /* Bit0: 1X; Bit1: EVDO
1: 1X only; 2: DO only; 3: 1X and DO */
kal_uint32 CaseBmp[2]; /* [0]: 1X; [1]: DO */
} Cl1PhyUtParamSlpCtrlT;
typedef union
{
kal_uint32 Reserved; /* Reserved */
Cl1PhyUtParamRxAgcT ParamRxAgc;
Cl1PhyUtParamAfcNcoT ParamAfcNco;
Cl1PhyUtParamAfcNbifT ParamAfcNbif;
Cl1PhyUtParamRxTimerT ParamRxTimer;
Cl1PhyUtParamSlpCtrlT ParamSlpCtrl;
} Cl1PhyUtParamU;
typedef struct
{
Cl1PhyUtModIdT ModId;
Cl1PhyUtModCaseIdT CaseId; /* Case ID in module */
Cl1PhyUtParamU Param;
} Cl1PhyUtTrigCmdT;
#endif
extern void Cl1TstPhyUtMsgHandler(void *pMsg);
#endif /* #ifndef _CL1TSTPHYUTMAIN_H_ */