1*53ee8cc1Swenshuai.xi //<MStar Software> 2*53ee8cc1Swenshuai.xi //****************************************************************************** 3*53ee8cc1Swenshuai.xi // MStar Software 4*53ee8cc1Swenshuai.xi // Copyright (c) 2010 - 2012 MStar Semiconductor, Inc. All rights reserved. 5*53ee8cc1Swenshuai.xi // All software, firmware and related documentation herein ("MStar Software") are 6*53ee8cc1Swenshuai.xi // intellectual property of MStar Semiconductor, Inc. ("MStar") and protected by 7*53ee8cc1Swenshuai.xi // law, including, but not limited to, copyright law and international treaties. 8*53ee8cc1Swenshuai.xi // Any use, modification, reproduction, retransmission, or republication of all 9*53ee8cc1Swenshuai.xi // or part of MStar Software is expressly prohibited, unless prior written 10*53ee8cc1Swenshuai.xi // permission has been granted by MStar. 11*53ee8cc1Swenshuai.xi // 12*53ee8cc1Swenshuai.xi // By accessing, browsing and/or using MStar Software, you acknowledge that you 13*53ee8cc1Swenshuai.xi // have read, understood, and agree, to be bound by below terms ("Terms") and to 14*53ee8cc1Swenshuai.xi // comply with all applicable laws and regulations: 15*53ee8cc1Swenshuai.xi // 16*53ee8cc1Swenshuai.xi // 1. MStar shall retain any and all right, ownership and interest to MStar 17*53ee8cc1Swenshuai.xi // Software and any modification/derivatives thereof. 18*53ee8cc1Swenshuai.xi // No right, ownership, or interest to MStar Software and any 19*53ee8cc1Swenshuai.xi // modification/derivatives thereof is transferred to you under Terms. 20*53ee8cc1Swenshuai.xi // 21*53ee8cc1Swenshuai.xi // 2. You understand that MStar Software might include, incorporate or be 22*53ee8cc1Swenshuai.xi // supplied together with third party`s software and the use of MStar 23*53ee8cc1Swenshuai.xi // Software may require additional licenses from third parties. 24*53ee8cc1Swenshuai.xi // Therefore, you hereby agree it is your sole responsibility to separately 25*53ee8cc1Swenshuai.xi // obtain any and all third party right and license necessary for your use of 26*53ee8cc1Swenshuai.xi // such third party`s software. 27*53ee8cc1Swenshuai.xi // 28*53ee8cc1Swenshuai.xi // 3. MStar Software and any modification/derivatives thereof shall be deemed as 29*53ee8cc1Swenshuai.xi // MStar`s confidential information and you agree to keep MStar`s 30*53ee8cc1Swenshuai.xi // confidential information in strictest confidence and not disclose to any 31*53ee8cc1Swenshuai.xi // third party. 32*53ee8cc1Swenshuai.xi // 33*53ee8cc1Swenshuai.xi // 4. MStar Software is provided on an "AS IS" basis without warranties of any 34*53ee8cc1Swenshuai.xi // kind. Any warranties are hereby expressly disclaimed by MStar, including 35*53ee8cc1Swenshuai.xi // without limitation, any warranties of merchantability, non-infringement of 36*53ee8cc1Swenshuai.xi // intellectual property rights, fitness for a particular purpose, error free 37*53ee8cc1Swenshuai.xi // and in conformity with any international standard. You agree to waive any 38*53ee8cc1Swenshuai.xi // claim against MStar for any loss, damage, cost or expense that you may 39*53ee8cc1Swenshuai.xi // incur related to your use of MStar Software. 40*53ee8cc1Swenshuai.xi // In no event shall MStar be liable for any direct, indirect, incidental or 41*53ee8cc1Swenshuai.xi // consequential damages, including without limitation, lost of profit or 42*53ee8cc1Swenshuai.xi // revenues, lost or damage of data, and unauthorized system use. 43*53ee8cc1Swenshuai.xi // You agree that this Section 4 shall still apply without being affected 44*53ee8cc1Swenshuai.xi // even if MStar Software has been modified by MStar in accordance with your 45*53ee8cc1Swenshuai.xi // request or instruction for your use, except otherwise agreed by both 46*53ee8cc1Swenshuai.xi // parties in writing. 47*53ee8cc1Swenshuai.xi // 48*53ee8cc1Swenshuai.xi // 5. If requested, MStar may from time to time provide technical supports or 49*53ee8cc1Swenshuai.xi // services in relation with MStar Software to you for your use of 50*53ee8cc1Swenshuai.xi // MStar Software in conjunction with your or your customer`s product 51*53ee8cc1Swenshuai.xi // ("Services"). 52*53ee8cc1Swenshuai.xi // You understand and agree that, except otherwise agreed by both parties in 53*53ee8cc1Swenshuai.xi // writing, Services are provided on an "AS IS" basis and the warranty 54*53ee8cc1Swenshuai.xi // disclaimer set forth in Section 4 above shall apply. 55*53ee8cc1Swenshuai.xi // 56*53ee8cc1Swenshuai.xi // 6. Nothing contained herein shall be construed as by implication, estoppels 57*53ee8cc1Swenshuai.xi // or otherwise: 58*53ee8cc1Swenshuai.xi // (a) conferring any license or right to use MStar name, trademark, service 59*53ee8cc1Swenshuai.xi // mark, symbol or any other identification; 60*53ee8cc1Swenshuai.xi // (b) obligating MStar or any of its affiliates to furnish any person, 61*53ee8cc1Swenshuai.xi // including without limitation, you and your customers, any assistance 62*53ee8cc1Swenshuai.xi // of any kind whatsoever, or any information; or 63*53ee8cc1Swenshuai.xi // (c) conferring any license or right under any intellectual property right. 64*53ee8cc1Swenshuai.xi // 65*53ee8cc1Swenshuai.xi // 7. These terms shall be governed by and construed in accordance with the laws 66*53ee8cc1Swenshuai.xi // of Taiwan, R.O.C., excluding its conflict of law rules. 67*53ee8cc1Swenshuai.xi // Any and all dispute arising out hereof or related hereto shall be finally 68*53ee8cc1Swenshuai.xi // settled by arbitration referred to the Chinese Arbitration Association, 69*53ee8cc1Swenshuai.xi // Taipei in accordance with the ROC Arbitration Law and the Arbitration 70*53ee8cc1Swenshuai.xi // Rules of the Association by three (3) arbitrators appointed in accordance 71*53ee8cc1Swenshuai.xi // with the said Rules. 72*53ee8cc1Swenshuai.xi // The place of arbitration shall be in Taipei, Taiwan and the language shall 73*53ee8cc1Swenshuai.xi // be English. 74*53ee8cc1Swenshuai.xi // The arbitration award shall be final and binding to both parties. 75*53ee8cc1Swenshuai.xi // 76*53ee8cc1Swenshuai.xi //****************************************************************************** 77*53ee8cc1Swenshuai.xi //<MStar Software> 78*53ee8cc1Swenshuai.xi //////////////////////////////////////////////////////////////////////////////// 79*53ee8cc1Swenshuai.xi // 80*53ee8cc1Swenshuai.xi // Copyright (c) 2006-2007 MStar Semiconductor, Inc. 81*53ee8cc1Swenshuai.xi // All rights reserved. 82*53ee8cc1Swenshuai.xi // 83*53ee8cc1Swenshuai.xi // Unless otherwise stipulated in writing, any and all information contained 84*53ee8cc1Swenshuai.xi // herein regardless in any format shall remain the sole proprietary of 85*53ee8cc1Swenshuai.xi // MStar Semiconductor Inc. and be kept in strict confidence 86*53ee8cc1Swenshuai.xi // ("MStar Confidential Information") by the recipient. 87*53ee8cc1Swenshuai.xi // Any unauthorized act including without limitation unauthorized disclosure, 88*53ee8cc1Swenshuai.xi // copying, use, reproduction, sale, distribution, modification, disassembling, 89*53ee8cc1Swenshuai.xi // reverse engineering and compiling of the contents of MStar Confidential 90*53ee8cc1Swenshuai.xi // Information is unlawful and strictly prohibited. MStar hereby reserves the 91*53ee8cc1Swenshuai.xi // rights to any and all damages, losses, costs and expenses resulting therefrom. 92*53ee8cc1Swenshuai.xi // 93*53ee8cc1Swenshuai.xi //////////////////////////////////////////////////////////////////////////////// 94*53ee8cc1Swenshuai.xi 95*53ee8cc1Swenshuai.xi //////////////////////////////////////////////////////////////////////////////////////////////////// 96*53ee8cc1Swenshuai.xi // file halRASP.h 97*53ee8cc1Swenshuai.xi // @brief RASP HAL 98*53ee8cc1Swenshuai.xi // @author MStar Semiconductor,Inc. 99*53ee8cc1Swenshuai.xi //////////////////////////////////////////////////////////////////////////////////////////////////// 100*53ee8cc1Swenshuai.xi #ifndef __HAL_NDSRASP_H__ 101*53ee8cc1Swenshuai.xi #define __HAL_NDSRASP_H__ 102*53ee8cc1Swenshuai.xi 103*53ee8cc1Swenshuai.xi #include "regNDSRASP.h" 104*53ee8cc1Swenshuai.xi 105*53ee8cc1Swenshuai.xi //-------------------------------------------------------------------------------------------------- 106*53ee8cc1Swenshuai.xi // Driver Compiler Option 107*53ee8cc1Swenshuai.xi //-------------------------------------------------------------------------------------------------- 108*53ee8cc1Swenshuai.xi 109*53ee8cc1Swenshuai.xi //-------------------------------------------------------------------------------------------------- 110*53ee8cc1Swenshuai.xi // RASP Hardware Abstraction Layer 111*53ee8cc1Swenshuai.xi //-------------------------------------------------------------------------------------------------- 112*53ee8cc1Swenshuai.xi 113*53ee8cc1Swenshuai.xi // rasp define 114*53ee8cc1Swenshuai.xi #define RASP_NUM 2 115*53ee8cc1Swenshuai.xi 116*53ee8cc1Swenshuai.xi #define RASP_DBGLV_EMERG 0 //Used for emergency messages, usually those that precede a crash. 117*53ee8cc1Swenshuai.xi #define RASP_DBGLV_ALERT 1 //A situation requiring immediate action. 118*53ee8cc1Swenshuai.xi #define RASP_DBGLV_CRIT 2 //Critical conditions, often related to serious hardware or software failures. 119*53ee8cc1Swenshuai.xi #define RASP_DBGLV_ERR 3 //Used to report error conditions; device drivers often use KERN_ERR to report hardware difficulties. 120*53ee8cc1Swenshuai.xi #define RASP_DBGLV_WARNING 4 //Warnings about problematic situations that do not, in themselves, create serious problems with the system. 121*53ee8cc1Swenshuai.xi #define RASP_DBGLV_NOTICE 5 //Situations that are normal, but still worthy of note. A number of security-related conditions are reported at this level. 122*53ee8cc1Swenshuai.xi #define RASP_DBGLV_INFO 6 //Informational messages. Many drivers print information about the hardware they find at startup time at this level. 123*53ee8cc1Swenshuai.xi #define RASP_DBGLV_DEBUG 7 //Used for debugging messages. 124*53ee8cc1Swenshuai.xi #define RASP_DBGLV_ARRAY 8 //Uesd for array data. 125*53ee8cc1Swenshuai.xi 126*53ee8cc1Swenshuai.xi // TSP Register 127*53ee8cc1Swenshuai.xi #define _TspPid ((REG_Pid*)(REG_PIDFLT_BASE)) 128*53ee8cc1Swenshuai.xi #define _TspSec ((REG_Sec*)(REG_SECFLT_BASE)) 129*53ee8cc1Swenshuai.xi 130*53ee8cc1Swenshuai.xi // HW characteristic 131*53ee8cc1Swenshuai.xi #define MIU(_addr_) ((_addr_)>>4) 132*53ee8cc1Swenshuai.xi 133*53ee8cc1Swenshuai.xi // HW characteristic 134*53ee8cc1Swenshuai.xi #define MIUNDS(_addr_) ((_addr_)>>3) 135*53ee8cc1Swenshuai.xi 136*53ee8cc1Swenshuai.xi //-------------------------------------------------------------------------------------------------- 137*53ee8cc1Swenshuai.xi // Macro of bit operations 138*53ee8cc1Swenshuai.xi //-------------------------------------------------------------------------------------------------- 139*53ee8cc1Swenshuai.xi #define HAS_FLAG(flag, bit) ((flag) & (bit)) 140*53ee8cc1Swenshuai.xi #define SET_FLAG(flag, bit) ((flag)|= (bit)) 141*53ee8cc1Swenshuai.xi #define RESET_FLAG(flag, bit) ((flag)&= (~(bit))) 142*53ee8cc1Swenshuai.xi #define SET_FLAG1(flag, bit) ((flag)| (bit)) 143*53ee8cc1Swenshuai.xi #define RESET_FLAG1(flag, bit) ((flag)& (~(bit))) 144*53ee8cc1Swenshuai.xi 145*53ee8cc1Swenshuai.xi typedef enum 146*53ee8cc1Swenshuai.xi { 147*53ee8cc1Swenshuai.xi RASP_SRC_TS0, 148*53ee8cc1Swenshuai.xi RASP_SRC_TS1, 149*53ee8cc1Swenshuai.xi RASP_SRC_TS2, 150*53ee8cc1Swenshuai.xi RASP_SRC_TS3, 151*53ee8cc1Swenshuai.xi RASP_SRC_TS4, 152*53ee8cc1Swenshuai.xi RASP_SRC_TS5, 153*53ee8cc1Swenshuai.xi RASP_SRC_TS6, 154*53ee8cc1Swenshuai.xi RASP_SRC_DEMOD0, 155*53ee8cc1Swenshuai.xi RASP_SRC_DEMOD1, 156*53ee8cc1Swenshuai.xi } RASP_LIVEIN_SRC_e; 157*53ee8cc1Swenshuai.xi 158*53ee8cc1Swenshuai.xi //////////////////////////////////////////////// 159*53ee8cc1Swenshuai.xi // HAL API 160*53ee8cc1Swenshuai.xi //////////////////////////////////////////////// 161*53ee8cc1Swenshuai.xi void HAL_NDSRASP_SetBank(MS_U32 u32BankAddr); 162*53ee8cc1Swenshuai.xi void HAL_NDSRASP_Init(MS_U32 u32RASPEng); 163*53ee8cc1Swenshuai.xi void HAL_NDSRASP_Exit(MS_U32 u32RASPEng); 164*53ee8cc1Swenshuai.xi void HAL_NDSRASP_Ctrl(MS_U32 u32RASPEng, MS_U16 u16FromTo, MS_U16 u16PktSize2); 165*53ee8cc1Swenshuai.xi void HAL_NDSRASP_Pvr_Enable(MS_U32 u32RASPEng); 166*53ee8cc1Swenshuai.xi void HAL_NDSRASP_Stop(MS_U32 u32RASPEng); 167*53ee8cc1Swenshuai.xi void HAL_NDSRASP_Pause(MS_U32 u32RASPEng , MS_BOOL bPause); 168*53ee8cc1Swenshuai.xi void HAL_NDSRASP_SWReset(MS_U32 u32RASPEng); 169*53ee8cc1Swenshuai.xi void HAL_NDSRASP_SetPidflt(MS_U32 u32RASPEng, MS_U16 u16Fltid, MS_U16 u16Pid); 170*53ee8cc1Swenshuai.xi void HAL_NDSRASP_GetPidflt(MS_U32 u32RASPEng , MS_U16 u16Fltid , MS_U16 *u16Pid); 171*53ee8cc1Swenshuai.xi void HAL_NDSRASP_SetEcmPidflt(MS_U32 u32RASPEng , MS_U16 u16Fltid , MS_U16 u16Pid); 172*53ee8cc1Swenshuai.xi void HAL_NDSRASP_SetECM_Init_1(MS_U32 u32RASPEng); 173*53ee8cc1Swenshuai.xi void HAL_NDSRASP_SetECM_Init_2(MS_U32 u32RASPEng); 174*53ee8cc1Swenshuai.xi MS_U16 HAL_NDSRASP_SetECM_GetHW(MS_U32 u32RASPEng); 175*53ee8cc1Swenshuai.xi void HAL_NDSRASP_SetECM_ResetHW(MS_U32 u32RASPEng, MS_U16 IntStatus); 176*53ee8cc1Swenshuai.xi void HAL_NDSRASP_SetEventMask(MS_U32 u32RASPEng, MS_U16 u16Flt, MS_U32 u32Mask); 177*53ee8cc1Swenshuai.xi void HAL_NDSRASP_SetPayloadMask(MS_U32 u32RASPEng, MS_U16 u16Flt, MS_U32 u32Mask); 178*53ee8cc1Swenshuai.xi void HAL_NDSRASP_SetPayloadPacketMode(MS_U32 u32RASPEng,MS_BOOL bDisable192); 179*53ee8cc1Swenshuai.xi void HAL_NDSRASP_SetECMPacketMode(MS_U32 u32RASPEng,MS_BOOL bDisable192); 180*53ee8cc1Swenshuai.xi 181*53ee8cc1Swenshuai.xi void HAL_NDSRASP_SetCorptData(MS_U32 u32RASPEng, MS_U16 u16From , MS_U16 u16To, MS_U8 u8Data); 182*53ee8cc1Swenshuai.xi void HAL_NDSRASP_SetCorptFlt(MS_U32 u32RASPEng , MS_U16 u16Fltid, MS_BOOL Enable); 183*53ee8cc1Swenshuai.xi 184*53ee8cc1Swenshuai.xi void HAL_NDSRASP_SetStr2Miu_StartAddr(MS_U32 u32RASPEng, MS_U32 u32StartAddr0, MS_U32 u32StartAddr1); 185*53ee8cc1Swenshuai.xi void HAL_NDSRASP_SetStr2Miu_MidAddr(MS_U32 u32RASPEng, MS_U32 u32MidAddr0, MS_U32 u32MidAddr1); 186*53ee8cc1Swenshuai.xi void HAL_NDSRASP_SetStr2Miu_EndAddr(MS_U32 u32RASPEng, MS_U32 u32EndAddr0, MS_U32 u32EndAddr1); 187*53ee8cc1Swenshuai.xi 188*53ee8cc1Swenshuai.xi void HAL_NDSRASP_Payload_Enable(MS_U32 u32RASPEng ,MS_BOOL enable ); 189*53ee8cc1Swenshuai.xi //void HAL_NDSRASP_SetPayload_StartAddr(MS_U32 u32RASPEng, MS_U32 u32StartAddr0, MS_U32 u32StartAddr1); 190*53ee8cc1Swenshuai.xi //void HAL_NDSRASP_SetPayload_MidAddr(MS_U32 u32RASPEng, MS_U32 u32MidAddr0, MS_U32 u32MidAddr1); 191*53ee8cc1Swenshuai.xi //void HAL_NDSRASP_SetPayload_EndAddr(MS_U32 u32RASPEng, MS_U32 u32EndAddr0, MS_U32 u32EndAddr1); 192*53ee8cc1Swenshuai.xi MS_U32 HAL_NDSRASP_GetPayloadWritePtr(MS_U32 u32RASPEng); 193*53ee8cc1Swenshuai.xi 194*53ee8cc1Swenshuai.xi void HAL_NDSRASP_ECM_Enable(MS_U32 u32RASPEng , MS_BOOL enable ); 195*53ee8cc1Swenshuai.xi //void HAL_NDSRASP_SetECM_StartAddr(MS_U32 u32RASPEng, MS_U32 u32StartAddr); 196*53ee8cc1Swenshuai.xi //void HAL_NDSRASP_SetECM_MidAddr(MS_U32 u32RASPEng, MS_U32 u32MidAddr); 197*53ee8cc1Swenshuai.xi //void HAL_NDSRASP_SetECM_EndAddr(MS_U32 u32RASPEng, MS_U32 u32EndAddr); 198*53ee8cc1Swenshuai.xi 199*53ee8cc1Swenshuai.xi //void HAL_NDSRASP_SetECM_Pidflt(MS_U32 u32RASPEng, MS_U16 u16Fltid, MS_U16 u16Pid); 200*53ee8cc1Swenshuai.xi void HAL_NDSRASP_SetStrPacketMode(MS_U32 u32RASPEng, MS_BOOL bSet); 201*53ee8cc1Swenshuai.xi void HAL_NDSRASP_PowerCtrl(MS_U32 u32RASPEng, MS_BOOL bSet); 202*53ee8cc1Swenshuai.xi 203*53ee8cc1Swenshuai.xi void HAL_NDSRASP_SetPVRTimeStamp(MS_U32 u32RASPEng, MS_U32 u32Stamp); 204*53ee8cc1Swenshuai.xi void HAL_NDSRASP_SetECMTimeStamp(MS_U32 u32RASPEng, MS_U32 u32Stamp); 205*53ee8cc1Swenshuai.xi void HAL_NDSRASP_SetPayloadTimeStamp(MS_U32 u32RASPEng, MS_U32 u32Stamp); 206*53ee8cc1Swenshuai.xi //void HAL_NDSRASP_SetTimerWaterMark(MS_U32 u32RASPEng, MS_U16 u16TimerWaterMask); 207*53ee8cc1Swenshuai.xi //void HAL_NDSRASP_SetEventWaterMark(MS_U32 u32RASPEng, MS_U16 u16EventWaterMask); 208*53ee8cc1Swenshuai.xi 209*53ee8cc1Swenshuai.xi void HAL_NDSRASP_Rec_PID(MS_U32 u32RASPEng, MS_BOOL bSet); 210*53ee8cc1Swenshuai.xi 211*53ee8cc1Swenshuai.xi MS_U32 HAL_NDSRASP_GetPVRTimeStamp(MS_U32 u32RASPEng); 212*53ee8cc1Swenshuai.xi MS_U32 HAL_NDSRASP_GetECMTimeStamp(MS_U32 u32RASPEng); 213*53ee8cc1Swenshuai.xi MS_U32 HAL_NDSRASP_GetPayloadTimeStamp(MS_U32 u32RASPEng); 214*53ee8cc1Swenshuai.xi 215*53ee8cc1Swenshuai.xi 216*53ee8cc1Swenshuai.xi MS_U32 HAL_NDSRASP_GetWritePtr(MS_U32 u32RASPEng); 217*53ee8cc1Swenshuai.xi MS_U32 HAL_NDSRASP_GetECMWritePtr(MS_U32 u32RASPEng); 218*53ee8cc1Swenshuai.xi void HAL_NDSRASP_SetFileinStart(MS_U32 u32RASPEng, MS_BOOL bEn); 219*53ee8cc1Swenshuai.xi MS_BOOL HAL_NDSRASP_GetFileinStart(MS_U32 u32RASPEng); 220*53ee8cc1Swenshuai.xi 221*53ee8cc1Swenshuai.xi void HAL_NDSRASP_SetTSIF(MS_U32 u32RASPEng, MS_BOOL bPara, MS_BOOL bExtSync, MS_BOOL bDataSWP); 222*53ee8cc1Swenshuai.xi void HAL_NDSRASP_GetTSIF(MS_U32 u32RASPEng , MS_BOOL* pbPara, MS_BOOL* pbExtSync, MS_BOOL* pbDataSWP); 223*53ee8cc1Swenshuai.xi 224*53ee8cc1Swenshuai.xi 225*53ee8cc1Swenshuai.xi 226*53ee8cc1Swenshuai.xi MS_U16 HAL_NDSRASP_INT_GetHW(MS_U32 u32RASPEng); 227*53ee8cc1Swenshuai.xi void HAL_NDSRASP_INT_ClrHW(MS_U32 u32RASPEng, MS_U16 u16Mask); 228*53ee8cc1Swenshuai.xi void HAL_NDSRASP_INT_Enable(MS_U32 u32RASPEng, MS_U16 u16Mask); 229*53ee8cc1Swenshuai.xi void HAL_NDSRASP_INT_Disable(MS_U32 u32RASPEng, MS_U16 u16Mask); 230*53ee8cc1Swenshuai.xi void HAL_NDSRASP_EVENT_EventWM_Enable(MS_U32 u32RASPEng, MS_BOOL enable); 231*53ee8cc1Swenshuai.xi void HAL_NDSRASP_EVENT_TimeWM_Enable(MS_U32 u32RASPEng, MS_BOOL enable); 232*53ee8cc1Swenshuai.xi void HAL_NDSRASP_SetDataSwap(MS_U32 u32RASPEng, MS_BOOL bEn); 233*53ee8cc1Swenshuai.xi MS_BOOL HAL_NDSRASP_EVENT_GetEventDescriptor(MS_U32 u32RASPEng,MS_U32 *DataArray , MS_U32 ArrSize ); 234*53ee8cc1Swenshuai.xi MS_U16 HAL_NDSRASP_EVENT_GetEventNum(MS_U32 u32RASPEng); 235*53ee8cc1Swenshuai.xi void HAL_NDSRASP_SetBufferBlockLevel(MS_U32 u32RASPEng, MS_U32 bufBlockLv); 236*53ee8cc1Swenshuai.xi MS_BOOL HAL_NDSRASP_EVENT_RstCounter(MS_U32 u32RASPEng); 237*53ee8cc1Swenshuai.xi MS_BOOL HAL_NDSRASP_EVENT_RstTimer(MS_U32 u32RASPEng); 238*53ee8cc1Swenshuai.xi MS_BOOL HAL_NDSRASP_EVENT_EFrame_Read(MS_U32 u32RASPEng); 239*53ee8cc1Swenshuai.xi 240*53ee8cc1Swenshuai.xi 241*53ee8cc1Swenshuai.xi MS_U32 HAL_NDSRASP_GetPktTimer(MS_U32 u32RASPEng); 242*53ee8cc1Swenshuai.xi MS_U32 HAL_NDSRASP_GetPktNum(MS_U32 u32RASPEng); 243*53ee8cc1Swenshuai.xi MS_U32 HAL_NDSRASP_GetEcmPktNum(MS_U32 u32RASPEng); 244*53ee8cc1Swenshuai.xi 245*53ee8cc1Swenshuai.xi MS_U32 HAL_RASP_SetPVRDstBuf(MS_U32 RaspEng, MS_U32 u32StartAddr0, MS_U32 u32EndAddr0, MS_U32 u32StartAddr1, MS_U32 u32EndAddr1); 246*53ee8cc1Swenshuai.xi MS_U32 HAL_RASP_RecOpenPid(MS_U32 RaspEng, MS_U16 Pid, MS_U8 RaspFltId); 247*53ee8cc1Swenshuai.xi MS_U32 HAL_RASP_DisableRec(MS_U32 RaspEng); 248*53ee8cc1Swenshuai.xi MS_U32 HAL_RASP_Close(MS_U32 RaspEng); 249*53ee8cc1Swenshuai.xi 250*53ee8cc1Swenshuai.xi MS_U32 HAL_RASP_SetFileIn_Config(MS_U32 RaspEng, MS_U32 StartAddr, MS_U32 FileInSize); 251*53ee8cc1Swenshuai.xi MS_U32 HAL_RASP_FileIn_Start(MS_U32 RaspEng); 252*53ee8cc1Swenshuai.xi MS_U32 HAL_RASP_SetFileIn_Timer(MS_U32 RaspEng, MS_U16 u16Timer); 253*53ee8cc1Swenshuai.xi MS_U32 HAL_RASP_SetFileIn_PktSize(MS_U32 RaspEng, MS_U16 PktSize); 254*53ee8cc1Swenshuai.xi MS_BOOL HAL_RASP_IsFileIn_Done(MS_U32 RaspEng); 255*53ee8cc1Swenshuai.xi MS_U32 HAL_RASP_FileIn_Flush(MS_U32 RaspEng); 256*53ee8cc1Swenshuai.xi 257*53ee8cc1Swenshuai.xi MS_U32 HAL_RASP_FileIn_BlockTimeStamp(MS_U32 RaspEng,MS_BOOL enbl); 258*53ee8cc1Swenshuai.xi MS_U32 HAL_RASP_FileIn_SetPlaybackTimeStamp(MS_U32 RaspEng,MS_U32 u32Stamp); 259*53ee8cc1Swenshuai.xi MS_U32 HAL_RASP_FileIn_GetPlaybackTimeStamp(MS_U32 RaspEng); 260*53ee8cc1Swenshuai.xi MS_U32 HAL_RASP_FileIn_Timer(MS_U32 RaspEng,MS_BOOL bEnFileinTimer,MS_U16 u16TimerValue); 261*53ee8cc1Swenshuai.xi MS_U32 HAL_RASP_FileIn_Reset_TStamp(MS_U32 RaspEng,MS_BOOL bResetPktTimeStamp); 262*53ee8cc1Swenshuai.xi 263*53ee8cc1Swenshuai.xi MS_U32 HAL_RASP_SetPayloadDstBuf(MS_U32 RaspEng,MS_U32 u32StartAddr0,MS_U32 u32MidAddr0,MS_U32 u32EndAddr0,MS_U32 u32StartAddr1,MS_U32 u32MidAddr1,MS_U32 u32EndAddr1); 264*53ee8cc1Swenshuai.xi MS_U32 HAL_RASP_SetECMDstBuf(MS_U32 RaspEng,MS_U32 u32StartAddr0,MS_U32 u32MidAddr0,MS_U32 u32EndAddr0); 265*53ee8cc1Swenshuai.xi MS_U32 HAL_NDSRASP_GetEVENT_Status(MS_U32 u32RASPEng, MS_U16 *pEventLog , MS_U32 *pEventDescr); 266*53ee8cc1Swenshuai.xi void HAL_NDSRASP_SetDbgLevel(MS_U32 level); 267*53ee8cc1Swenshuai.xi void HAL_NDSRASP_ReadEcmPidflt(MS_U32 u32RASPEng , MS_U16 u16Fltid , MS_U16 *pu16Pid); 268*53ee8cc1Swenshuai.xi 269*53ee8cc1Swenshuai.xi MS_BOOL HAL_RASP_FileIn_IsCMDQ_Full(MS_U32 RaspEng); 270*53ee8cc1Swenshuai.xi MS_BOOL HAL_RASP_FileIn_IsCMDQ_Empty(MS_U32 RaspEng); 271*53ee8cc1Swenshuai.xi MS_BOOL HAL_RASP_FileIn_GetCmdQueueLevel(MS_U32 RaspEng,MS_U8 * CmdQLvl); 272*53ee8cc1Swenshuai.xi MS_BOOL HAL_RASP_FileIn_GetEmptyNum(MS_U32 RaspEng,MS_U8 * CmdQLvl); 273*53ee8cc1Swenshuai.xi MS_BOOL HAL_NDSRASP_Livein_Config(MS_U32 rasp_eng, RASP_LIVEIN_SRC_e InputSrc); 274*53ee8cc1Swenshuai.xi MS_BOOL HAL_NDSRASP_LiveIn_Init(MS_U32 u32RASPEng,MS_U8 u8PacketLength); 275*53ee8cc1Swenshuai.xi MS_BOOL HAL_NDSRASP_FileIn_Init(MS_U32 u32RASPEng,MS_U8 u8PacketLength); 276*53ee8cc1Swenshuai.xi MS_BOOL HAL_NDSRASP_SetFileinConfig(MS_U32 RaspEng, MS_BOOL bFileIn, MS_U16 BlockLevel); 277*53ee8cc1Swenshuai.xi 278*53ee8cc1Swenshuai.xi 279*53ee8cc1Swenshuai.xi MS_BOOL HAL_NDSRASP_EVENT_SetEventThreshold(MS_U32 u32RASPEng,MS_U32 u32threshold); 280*53ee8cc1Swenshuai.xi MS_BOOL HAL_NDSRASP_EVENT_SetTimerThreshold(MS_U32 u32RASPEng,MS_U16 u16timeout); 281*53ee8cc1Swenshuai.xi MS_U32 HAL_NDSRASP_SetExtendConfig(MS_U32 RaspEng, MS_U16 type, MS_U16 extendbytes, MS_U16 syncbyte); 282*53ee8cc1Swenshuai.xi 283*53ee8cc1Swenshuai.xi #endif // #ifndef __HAL_NDSRASP_H__ 284*53ee8cc1Swenshuai.xi 285