| /***************************************************************************** |
| * 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) 2005 |
| * |
| * 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). |
| * |
| *****************************************************************************/ |
| |
| /***************************************************************************** |
| * |
| * Filename: |
| * --------- |
| * nl1d_mmrf_pcore_interface.h |
| * |
| * Project: |
| * -------- |
| * MT6297 |
| * |
| * Description: |
| * ------------ |
| * NL1D interface to Multi-Mode Multi-RAT RF Central Control |
| * |
| * Author: |
| * ------- |
| * ------- |
| * |
| *============================================================================ |
| * HISTORY |
| * Below this line, this part is controlled by PVCS VM. DO NOT MODIFY!! |
| *---------------------------------------------------------------------------- |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * |
| * removed! |
| * |
| * removed! |
| * removed! |
| * |
| * removed! |
| * |
| * removed! |
| * removed! |
| * |
| * removed! |
| * |
| * removed! |
| * removed! |
| * |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * |
| * removed! |
| * removed! |
| * |
| * removed! |
| * |
| * |
| *---------------------------------------------------------------------------- |
| * Upper this line, this part is controlled by PVCS VM. DO NOT MODIFY!! |
| *============================================================================ |
| ****************************************************************************/ |
| |
| #ifndef _NL1D_MMRF_INTERFACE_H_ |
| #define _NL1D_MMRF_INTERFACE_H_ |
| |
| /*===============================================================================*/ |
| |
| #include "kal_general_types.h" |
| #include "nl1d_fe_cal_custom_data.h" |
| #include "nl1_rfd_custom_data_et.h" |
| #include "nl1_etdpd_public.h" |
| #include "nl1_rfd_custom_data_dpd.h" |
| #include "mml1_rf_cal_interface.h" |
| #include "mml1_etdpd_custom_data.h" |
| #include "mml1_cdf_sku_mgr.h" |
| #include "mml1_tpc_custom_data.h" |
| |
| #include "nl1_comm_inter_core_public.h" //for NL1_BAND_E |
| |
| /*===============================================================================*/ |
| |
| /******************************************************************************* |
| * #include |
| ******************************************************************************/ |
| |
| /******************************************************************************* |
| * #define |
| ******************************************************************************/ |
| #define NL1D_CAL_BITMAP (MMRFC_POC_CAL_ORDER_START_CAL_MODE |\ |
| MMRFC_POC_CAL_ORDER_DET_CDCOC |\ |
| MMRFC_POC_CAL_ORDER_TX_ABB_3dB |\ |
| MMRFC_POC_CAL_ORDER_DET_DC |\ |
| MMRFC_POC_CAL_ORDER_DET_IQ |\ |
| MMRFC_POC_CAL_ORDER_DET_FDADPCB |\ |
| MMRFC_POC_CAL_ORDER_TX_CDCOC |\ |
| MMRFC_POC_CAL_ORDER_TX_RC_3dB |\ |
| MMRFC_POC_CAL_ORDER_TX_PRE_CAP_TUNING |\ |
| MMRFC_POC_CAL_ORDER_TX_FD_IQ |\ |
| MMRFC_POC_CAL_ORDER_TX_FI_IQ_DC |\ |
| MMRFC_POC_CAL_ORDER_TX_GA |\ |
| MMRFC_POC_CAL_ORDER_TX_DNL |\ |
| MMRFC_POC_CAL_ORDER_TX_CAP_TUNING |\ |
| MMRFC_POC_CAL_ORDER_TX_IRR |\ |
| MMRFC_POC_CAL_ORDER_END_CAL_MODE |\ |
| MMRFC_POC_CAL_ORDER_RX_DCOC |\ |
| MMRFC_POC_CAL_ORDER_RX_LC |\ |
| MMRFC_POC_CAL_ORDER_RX_IRR |\ |
| MMRFC_POC_CAL_ORDER_RX_ABB |\ |
| MMRFC_POC_CAL_ORDER_RX_IIP2 |\ |
| MMRFC_POC_CAL_ORDER_RX_TX_LEAKAGE) |
| |
| /******************************************************************************* |
| * typedef |
| ******************************************************************************/ |
| /** Structure Prototypes can be seen by other files**/ |
| typedef enum |
| { |
| NL1_RFD_CONNECTION_TYPE_UL, |
| NL1_RFD_CONNECTION_TYPE_DL, |
| NL1_RFD_CONNECTION_TYPE_MAX_NUM, |
| } NL1_RFD_CONNECTION_TYPE_E; |
| |
| /******************************************************************************* |
| * Global Functions Prototype (Interface) |
| ******************************************************************************/ |
| /** Function Prototypes can be used by other files **/ |
| |
| |
| NR_RF_CAL_DATA_T* NL1_RFD_Get_RF_CAL_DATA_Addr(void); |
| void NL1_RFD_Get_Band_Freq_Boundary(MMRF_COMMON_BAND_IDX_E band, NL1_RFD_CONNECTION_TYPE_E indicator, kal_uint32* p_low_freq_bd, kal_uint32* p_high_freq_bd); |
| void NL1_RFD_SAR_Query_Custom_Setting(MML1_CDF_SKU_MGR_QUERY_USAGE_LIST_PARAM_T *usage_list_param_p, const void **tx_sar_tbl_addr, const void **sul_sar_tbl_addr); |
| |
| MMET_CTRL_DATABASE_T* NL1_ET_Get_Ctrl_Data_Addr(void); |
| MMDPD_CTRL_DATABASE_T* NL1_DPD_Get_Ctrl_Data_Addr(void); |
| MML1_RFFE_CAL_TX_DEFAULT_TBL_T* NL1_ET_Get_Cal_Map_Tbl_Addr(MML1_CDF_SKU_MGR_COMP_ROUTE_E comp_route_idx); |
| MML1_RFFE_CAL_TX_DEFAULT_TBL_T* NL1_DPD_Get_Cal_Map_Tbl_Addr(MML1_CDF_SKU_MGR_COMP_ROUTE_E comp_route_idx); |
| MMET_CAL_DATABASE_T* NL1_ET_Get_Cal_Data_Addr(kal_uint16 blk_idx); |
| MMDPD_CAL_DATABASE_T* NL1_DPD_Get_Cal_Data_Addr(kal_uint16 blk_idx); |
| MMETDPD_SUBBAND_FREQUENCY_T* NL1_ET_Get_Frequency_Tbl_Addr(MML1_CDF_SKU_MGR_COMP_ROUTE_E comp_route_idx); |
| MMETDPD_SUBBAND_FREQUENCY_T* NL1_DPD_Get_Frequency_Tbl_Addr(MML1_CDF_SKU_MGR_COMP_ROUTE_E comp_route_idx); |
| |
| void NL1_TX_LPWR_Notify_TXDFE_Calibration_Download_Start(void); |
| void NL1_TX_LPWR_Notify_TXDFE_Calibration_Done(void); |
| |
| kal_int16 Nl1D_RF_ET_Default_Delay(kal_uint32 carrier_freq_Mhz , kal_uint32 fe_bw_idx, kal_uint8 cbw_idx); |
| MMET_DBG_T* NL1D_ET_DBG_Addr(void); |
| MMDPD_DBG_T* NL1_DPD_Get_Debug_Param_Addr(void); |
| MMET_CTRL_DATABASE_T* NL1_ET_Get_Ctrl_Data_Addr(void); |
| MMDPD_CTRL_DATABASE_T* NL1_DPD_Get_Ctrl_Data_Addr(void); |
| NR_ET_NORMAL_CTRL_DATA_ALL_T* NL1D_ET_Normal_Ctrl_Database_Data_Addr(void); |
| NR_DPD_NORMAL_CTRL_DATA_ALL_T* NL1_DPD_Normal_Ctrl_Database_Data_Addr(void); |
| kal_uint32 NL1D_MMRF_UpdateRuntimeHandler( kal_uint32 nvram_lid, kal_uint32 record_idx, kal_uint8 *data, kal_uint16 nvram_size ); |
| kal_uint32 NL1_TPC_MMRF_UpdateRuntimeHandler( kal_uint32 nvram_lid, kal_uint32 record_idx, kal_uint8 *data, kal_uint16 nvram_size ); |
| |
| |
| void NL1_RFC_Cal_L1coreshmupdate2local_Txtpc(void); |
| void NL1_RFC_Cal_L1coreshmupdate2local_Rxagc(void); |
| |
| void NL1_TST_Rf_Force_Tas(kal_bool force_tas_enable, MMRFD_CUSTOM_TAS_STATE_E tx_state, MMRFD_CUSTOM_TAS_STATE_E rx_state); |
| |
| kal_bool NL1_RFD_Is_Tdd_Band(NL1_BAND_E band); |
| kal_bool NL1_ETDPD_Get_Processing_Cal_Flag(void); |
| |
| kal_uint32 NL1_ET_Get_Current_Dpd_Lut_Dimension(MMRF_COMMON_BAND_IDX_E band,MML1_RFFE_CAL_TX_BW_STEP_E fe_bw_idx,kal_bool is_edge, kal_uint32 cbw_lp_idx,kal_uint32 edge_lp_idx,kal_uint32 subband_lp_idx); |
| kal_uint32 NL1_RFD_Get_Fake_Tx_Freq_For_Gapless_Meas(kal_uint32 dl_freq, NL1_BAND_E band); |
| |
| kal_uint32 NL1_ETDPD_Get_DPD_OTFC_Ctrl_Table_Size(void); |
| const MMETDPD_DPD_OTFC_CTRL_T* NL1_ETDPD_Get_DPD_OTFC_Ctrl_Table_Addr(kal_uint32 tbl_idx); |
| |
| kal_uint32 NL1_ETDPD_Get_DPD_Risk_Ctrl_Table_Size(void); |
| const MMETDPD_DPD_RISK_CTRL_T* NL1_ETDPD_Get_DPD_Risk_Ctrl_Table_Addr(kal_uint32 tbl_idx); |
| |
| kal_uint32 NL1_ETDPD_Get_DPD_Disable_Ctrl_Table_Size(void); |
| const MMETDPD_DPD_DISABLE_CTRL_T* NL1_ETDPD_Get_DPD_Disable_Ctrl_Table_Addr(kal_uint32 tbl_idx); |
| kal_bool NL1_ETDPD_DPD_Disable_Ctrl_DRDI_Check(kal_uint16 drdi_set_idx); |
| |
| #endif /* End of #ifndef _NL1D_MMRF_INTERFACE_H_ */ |
| |