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) 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 | /* Doxygen Group Header ****************************************************//** |
| 37 | * @addtogroup EL1D_TAILCB |
| 38 | * @{ |
| 39 | ******************************************************************************/ |
| 40 | |
| 41 | //Doxygen file documentation block example: |
| 42 | /***************************************************************************//** |
| 43 | * @file ltailcbregtbl.h |
| 44 | * @author YuLern Chu (MTK12318) |
| 45 | * @date 2016.10.14 |
| 46 | * @brief Header file of EL1D TailCB |
| 47 | ******************************************************************************/ |
| 48 | |
| 49 | /***************************************************************************//** |
| 50 | * @brief Registration table of TailCB users |
| 51 | * @date 2017.10.12 |
| 52 | ******************************************************************************/ |
| 53 | #if defined(__MD97__) || defined(__MD97P__)////////////////////////////////////////////////////////////////////////////////////////////////// |
| 54 | /**************************************************************************************** |
| 55 | Do NOT use compile option in here |
| 56 | *****************************************************************************************/ |
| 57 | /* |
| 58 | For registration of callback functions running on TailCB entry at Core1 EL1D CSMP End. Example: |
| 59 | EL1D_TAILCB_REGISTER( CSMP_END, Your_CallBack_Function_Name )EL1D_MT_MOD(Your_Module_ID) */ |
| 60 | EL1D_TAILCB_REGISTER( CSMP_END, EL1D_CS_Main_Abort_Tailcb )EL1D_MT_MOD(EL1D_MT_MOD_CS) |
| 61 | EL1D_TAILCB_REGISTER( CSMP_END, EL1D_CS_Main_Sf_Tick )EL1D_MT_MOD(EL1D_MT_MOD_CS) |
| 62 | EL1D_TAILCB_REGISTER( CSMP_END, EL1D_POS_Meas_Fsm )EL1D_MT_MOD(EL1D_MT_MOD_POS) |
| 63 | |
| 64 | /* |
| 65 | For registration of callback functions running on TailCB entry at Core1 EL1D RX End. Example: |
| 66 | EL1D_TAILCB_REGISTER( RX_END, Your_CallBack_Function_Name )EL1D_MT_MOD(Your_Module_ID) */ |
| 67 | EL1D_TAILCB_REGISTER( RX_END, EL1D_RxLPwr_Set_RRC_State_Change )EL1D_MT_MOD(EL1D_MT_MOD_RX) |
| 68 | EL1D_TAILCB_REGISTER( RX_END, EL1D_RxPreSync_Set_Force_Pre_Sync_Mode )EL1D_MT_MOD(EL1D_MT_MOD_RX) |
| 69 | EL1D_TAILCB_REGISTER( RX_END, EL1D_RxPreSync_Set_Force_Using_RS_EN )EL1D_MT_MOD(EL1D_MT_MOD_RX) |
| 70 | EL1D_TAILCB_REGISTER( RX_END, EL1D_RxPreSync_Set_Dump_Allowed )EL1D_MT_MOD(EL1D_MT_MOD_RX) |
| 71 | EL1D_TAILCB_REGISTER( RX_END, EL1D_RxLPwr_Set_LoRX_Test_Pattern )EL1D_MT_MOD(EL1D_MT_MOD_RX) |
| 72 | EL1D_TAILCB_REGISTER( RX_END, EL1D_RxLPwr_Set_Low_Power_Allowed )EL1D_MT_MOD(EL1D_MT_MOD_RX) |
| 73 | EL1D_TAILCB_REGISTER( RX_END, EL1D_RxLPwr_Set_LoRX_Allow_In_Test_Mode )EL1D_MT_MOD(EL1D_MT_MOD_RX) |
| 74 | EL1D_TAILCB_REGISTER( RX_END, EL1D_RxLPwr_Set_Factory_RX_Mode )EL1D_MT_MOD(EL1D_MT_MOD_RX) |
| 75 | EL1D_TAILCB_REGISTER( RX_END, EL1D_RxDspRpt_Set_Rx_Self_Test )EL1D_MT_MOD(EL1D_MT_MOD_RX) |
| 76 | EL1D_TAILCB_REGISTER( RX_END, EL1D_RxPublic_Set_Inject )EL1D_MT_MOD(EL1D_MT_MOD_RX) |
| 77 | EL1D_TAILCB_REGISTER( RX_END, EL1D_RxFsm_Force_TBMIMO_Enable_Flag )EL1D_MT_MOD(EL1D_MT_MOD_RX) |
| 78 | //EL1D_TAILCB_REGISTER( RX_END, EL1D_Nbi_Set_INJ_Force_All_On_Off )EL1D_MT_MOD(EL1D_MT_MOD_RX) |
| 79 | //EL1D_TAILCB_REGISTER( RX_END, EL1D_Nbi_Set_INJ_Force_CC_Off_Bmp )EL1D_MT_MOD(EL1D_MT_MOD_RX) |
| 80 | EL1D_TAILCB_REGISTER( RX_END, EL1D_Usip_BootStateUpdate )EL1D_MT_MOD(EL1D_MT_MOD_DSP_BOOTUP) |
| 81 | EL1D_TAILCB_REGISTER( RX_END, EL1D_Dsp_BootInit )EL1D_MT_MOD(EL1D_MT_MOD_DSP_BOOTUP) |
| 82 | EL1D_TAILCB_REGISTER( RX_END, EL1D_MT_Inject_Enable )EL1D_MT_MOD(EL1D_MT_MOD_OTHERS) |
| 83 | #if (__IS_EL1D_RX_MT6295_LoSX_SUPPORT__) |
| 84 | EL1D_TAILCB_REGISTER( RX_END, EL1D_RxLPwr_Set_LoSX_Test_Pattern )EL1D_MT_MOD(EL1D_MT_MOD_RX) |
| 85 | EL1D_TAILCB_REGISTER( RX_END, EL1D_RxLPwr_Set_LoSX_Qi_Threshold )EL1D_MT_MOD(EL1D_MT_MOD_RX) |
| 86 | #endif |
| 87 | |
| 88 | #elif defined(__MD95__)////////////////////////////////////////////////////////////////////////////////////////////////// |
| 89 | /**************************************************************************************** |
| 90 | Do NOT use compile option in here |
| 91 | *****************************************************************************************/ |
| 92 | /* |
| 93 | For registration of callback functions running on TailCB entry at Core1 EL1D CSMP End. Example: |
| 94 | EL1D_TAILCB_REGISTER( CSMP_END, Your_CallBack_Function_Name )EL1D_MT_MOD(Your_Module_ID) */ |
| 95 | EL1D_TAILCB_REGISTER( CSMP_END, EL1D_CS_Main_Abort_Tailcb )EL1D_MT_MOD(EL1D_MT_MOD_CS) |
| 96 | EL1D_TAILCB_REGISTER( CSMP_END, EL1D_CS_Main_Sf_Tick )EL1D_MT_MOD(EL1D_MT_MOD_CS) |
| 97 | EL1D_TAILCB_REGISTER( CSMP_END, EL1D_POS_Meas_Fsm )EL1D_MT_MOD(EL1D_MT_MOD_POS) |
| 98 | |
| 99 | /* |
| 100 | For registration of callback functions running on TailCB entry at Core1 EL1D RX End. Example: |
| 101 | EL1D_TAILCB_REGISTER( RX_END, Your_CallBack_Function_Name )EL1D_MT_MOD(Your_Module_ID) */ |
| 102 | EL1D_TAILCB_REGISTER( RX_END, EL1D_RxLPwr_Set_RRC_State_Change )EL1D_MT_MOD(EL1D_MT_MOD_RX) |
| 103 | EL1D_TAILCB_REGISTER( RX_END, EL1D_RxPreSync_Set_Force_Pre_Sync_Mode )EL1D_MT_MOD(EL1D_MT_MOD_RX) |
| 104 | EL1D_TAILCB_REGISTER( RX_END, EL1D_RxPreSync_Set_Force_Using_RS_EN )EL1D_MT_MOD(EL1D_MT_MOD_RX) |
| 105 | EL1D_TAILCB_REGISTER( RX_END, EL1D_RxPreSync_Set_Dump_Allowed )EL1D_MT_MOD(EL1D_MT_MOD_RX) |
| 106 | EL1D_TAILCB_REGISTER( RX_END, EL1D_RxLPwr_Set_LoRX_Test_Pattern )EL1D_MT_MOD(EL1D_MT_MOD_RX) |
| 107 | EL1D_TAILCB_REGISTER( RX_END, EL1D_RxLPwr_Set_Low_Power_Allowed )EL1D_MT_MOD(EL1D_MT_MOD_RX) |
| 108 | EL1D_TAILCB_REGISTER( RX_END, EL1D_RxLPwr_Set_LoRX_Allow_In_Test_Mode )EL1D_MT_MOD(EL1D_MT_MOD_RX) |
| 109 | EL1D_TAILCB_REGISTER( RX_END, EL1D_RxLPwr_Set_Factory_RX_Mode )EL1D_MT_MOD(EL1D_MT_MOD_RX) |
| 110 | EL1D_TAILCB_REGISTER( RX_END, EL1D_RxDspRpt_Set_Rx_Self_Test )EL1D_MT_MOD(EL1D_MT_MOD_RX) |
| 111 | EL1D_TAILCB_REGISTER( RX_END, EL1D_RxPublic_Set_Inject )EL1D_MT_MOD(EL1D_MT_MOD_RX) |
| 112 | EL1D_TAILCB_REGISTER( RX_END, EL1D_RxFsm_Force_TBMIMO_Enable_Flag )EL1D_MT_MOD(EL1D_MT_MOD_RX) |
| 113 | //EL1D_TAILCB_REGISTER( RX_END, EL1D_Nbi_Set_INJ_Force_All_On_Off )EL1D_MT_MOD(EL1D_MT_MOD_RX) |
| 114 | //EL1D_TAILCB_REGISTER( RX_END, EL1D_Nbi_Set_INJ_Force_CC_Off_Bmp )EL1D_MT_MOD(EL1D_MT_MOD_RX) |
| 115 | EL1D_TAILCB_REGISTER( RX_END, EL1D_Usip_BootStateUpdate )EL1D_MT_MOD(EL1D_MT_MOD_DSP_BOOTUP) |
| 116 | EL1D_TAILCB_REGISTER( RX_END, EL1D_Dsp_BootInit )EL1D_MT_MOD(EL1D_MT_MOD_DSP_BOOTUP) |
| 117 | EL1D_TAILCB_REGISTER( RX_END, EL1D_MT_Inject_Enable )EL1D_MT_MOD(EL1D_MT_MOD_OTHERS) |
| 118 | #if (__IS_EL1D_RX_MT6295_LoSX_SUPPORT__) |
| 119 | EL1D_TAILCB_REGISTER( RX_END, EL1D_RxLPwr_Set_LoSX_Test_Pattern )EL1D_MT_MOD(EL1D_MT_MOD_RX) |
| 120 | EL1D_TAILCB_REGISTER( RX_END, EL1D_RxLPwr_Set_LoSX_Qi_Threshold )EL1D_MT_MOD(EL1D_MT_MOD_RX) |
| 121 | #endif |
| 122 | |
| 123 | #elif defined(__MD93__)////////////////////////////////////////////////////////////////////////////////////////////////// |
| 124 | /**************************************************************************************** |
| 125 | Do NOT use compile option in here |
| 126 | *****************************************************************************************/ |
| 127 | // for callback function registration on Core0 Symbol11 of TailCB |
| 128 | // example: EL1D_TAILCB_REGISTER( your tail_type, your callback function name )EL1D_MT_MOD(your module id) |
| 129 | EL1D_TAILCB_REGISTER( CORE0_11, EL1D_CS_Main_Abort_Tailcb )EL1D_MT_MOD(EL1D_MT_MOD_CS) |
| 130 | EL1D_TAILCB_REGISTER( CORE0_11, EL1D_CS_Main_Sf_Tick )EL1D_MT_MOD(EL1D_MT_MOD_CS) |
| 131 | EL1D_TAILCB_REGISTER( CORE0_11, EL1D_POS_Meas_Fsm )EL1D_MT_MOD(EL1D_MT_MOD_POS) |
| 132 | EL1D_TAILCB_REGISTER( CORE0_11, EL1D_TX_Dump_Timing_Trace )EL1D_MT_MOD(EL1D_MT_MOD_TX) |
| 133 | |
| 134 | // for callback function registration on Core1 Symbol11.8 of TailCB |
| 135 | // example: EL1D_TAILCB_REGISTER( your tail_type, your callback function name )EL1D_MT_MOD(your module id) |
| 136 | EL1D_TAILCB_REGISTER( CORE1_11_8, EL1D_RxLPwr_Set_RRC_State_Change )EL1D_MT_MOD(EL1D_MT_MOD_RX) |
| 137 | EL1D_TAILCB_REGISTER( CORE1_11_8, EL1D_RxPreSync_Set_Force_Pre_Sync_Mode )EL1D_MT_MOD(EL1D_MT_MOD_RX) |
| 138 | EL1D_TAILCB_REGISTER( CORE1_11_8, EL1D_RxPreSync_Set_Force_Using_RS_EN )EL1D_MT_MOD(EL1D_MT_MOD_RX) |
| 139 | EL1D_TAILCB_REGISTER( CORE1_11_8, EL1D_RxPreSync_Set_Dump_Allowed )EL1D_MT_MOD(EL1D_MT_MOD_RX) |
| 140 | EL1D_TAILCB_REGISTER( CORE1_11_8, EL1D_RxLPwr_Set_LoRX_Test_Pattern )EL1D_MT_MOD(EL1D_MT_MOD_RX) |
| 141 | EL1D_TAILCB_REGISTER( CORE1_11_8, EL1D_RxLPwr_Set_Low_Power_Allowed )EL1D_MT_MOD(EL1D_MT_MOD_RX) |
| 142 | EL1D_TAILCB_REGISTER( CORE1_11_8, EL1D_RxLPwr_Set_LoRX_Allow_In_Test_Mode )EL1D_MT_MOD(EL1D_MT_MOD_RX) |
| 143 | EL1D_TAILCB_REGISTER( CORE1_11_8, EL1D_RxLPwr_Set_Factory_RX_Mode )EL1D_MT_MOD(EL1D_MT_MOD_RX) |
| 144 | EL1D_TAILCB_REGISTER( CORE1_11_8, EL1D_RxDspRpt_Set_Rx_Self_Test )EL1D_MT_MOD(EL1D_MT_MOD_RX) |
| 145 | EL1D_TAILCB_REGISTER( CORE1_11_8, EL1D_RxPublic_Set_Inject )EL1D_MT_MOD(EL1D_MT_MOD_RX) |
| 146 | |
| 147 | |
| 148 | EL1D_TAILCB_REGISTER( CORE1_11_8, EL1D_RxFsm_Force_TBMIMO_Enable_Flag )EL1D_MT_MOD(EL1D_MT_MOD_RX) |
| 149 | EL1D_TAILCB_REGISTER( CORE1_11_8, EL1D_Nbi_Set_INJ_Force_All_On_Off )EL1D_MT_MOD(EL1D_MT_MOD_RX) |
| 150 | EL1D_TAILCB_REGISTER( CORE1_11_8, EL1D_Nbi_Set_INJ_Force_CC_Off_Bmp )EL1D_MT_MOD(EL1D_MT_MOD_RX) |
| 151 | EL1D_TAILCB_REGISTER( CORE1_11_8, EL1D_Usip_BootStateUpdate )EL1D_MT_MOD(EL1D_MT_MOD_DSP_BOOTUP) |
| 152 | EL1D_TAILCB_REGISTER( CORE1_11_8, EL1D_Dsp_BootInit )EL1D_MT_MOD(EL1D_MT_MOD_DSP_BOOTUP) |
| 153 | EL1D_TAILCB_REGISTER( CORE1_11_8, EL1D_MT_Inject_Enable )EL1D_MT_MOD(EL1D_MT_MOD_OTHERS) |
| 154 | #else |
| 155 | #error "Please check the registered TailCB callback functions on this chip." |
| 156 | #endif |
| 157 | |
| 158 | /* Doxygen Group EL1D_TAILCB End ********************************************//** |
| 159 | * @} |
| 160 | ******************************************************************************/ |
| 161 | |