xref: /utopia/UTPA2-700.0.x/modules/dmx/hal/mainz/tsp/halTSP.h (revision 53ee8cc121a030b8d368113ac3e966b4705770ef)
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   halTSP.h
97*53ee8cc1Swenshuai.xi // @brief  Transport Stream Processer (TSP) HAL
98*53ee8cc1Swenshuai.xi // @author MStar Semiconductor,Inc.
99*53ee8cc1Swenshuai.xi ////////////////////////////////////////////////////////////////////////////////////////////////////
100*53ee8cc1Swenshuai.xi #ifndef __HAL_TSP_H__
101*53ee8cc1Swenshuai.xi #define __HAL_TSP_H__
102*53ee8cc1Swenshuai.xi 
103*53ee8cc1Swenshuai.xi #include "MsCommon.h"
104*53ee8cc1Swenshuai.xi 
105*53ee8cc1Swenshuai.xi #include "regTSP.h"
106*53ee8cc1Swenshuai.xi 
107*53ee8cc1Swenshuai.xi //--------------------------------------------------------------------------------------------------
108*53ee8cc1Swenshuai.xi //  Driver Compiler Option
109*53ee8cc1Swenshuai.xi //--------------------------------------------------------------------------------------------------
110*53ee8cc1Swenshuai.xi 
111*53ee8cc1Swenshuai.xi //--------------------------------------------------------------------------------------------------
112*53ee8cc1Swenshuai.xi //  TSP Hardware Abstraction Layer
113*53ee8cc1Swenshuai.xi //--------------------------------------------------------------------------------------------------
114*53ee8cc1Swenshuai.xi 
115*53ee8cc1Swenshuai.xi // TSP Register
116*53ee8cc1Swenshuai.xi #define _TspPid                     ((REG_Pid*)(REG_PIDFLT_BASE))
117*53ee8cc1Swenshuai.xi #define _TspSec                     ((REG_Sec*)(REG_SECFLT_BASE))
118*53ee8cc1Swenshuai.xi 
119*53ee8cc1Swenshuai.xi #define TSP_HW_CFG_0   0x00
120*53ee8cc1Swenshuai.xi #define TSP_HW_CFG_1   0x01
121*53ee8cc1Swenshuai.xi #define TSP_HW_CFG_2   0x10
122*53ee8cc1Swenshuai.xi #define TSP_HW_CFG_3   0x11
123*53ee8cc1Swenshuai.xi 
124*53ee8cc1Swenshuai.xi /// TSP debug mode type
125*53ee8cc1Swenshuai.xi typedef enum
126*53ee8cc1Swenshuai.xi {
127*53ee8cc1Swenshuai.xi     TSP_DEBUG_MODE_DIS_CONT,         ///< Select dis-continue packet count mode
128*53ee8cc1Swenshuai.xi     TSP_DEBUG_MODE_DROP_CONT,        ///< Select drop packet count mode
129*53ee8cc1Swenshuai.xi } TSP_DEBUG_MODE;
130*53ee8cc1Swenshuai.xi 
131*53ee8cc1Swenshuai.xi typedef enum
132*53ee8cc1Swenshuai.xi {
133*53ee8cc1Swenshuai.xi     TSP_DEBUG_SRC_TS0,               ///< TSP input from TS0 interface
134*53ee8cc1Swenshuai.xi     TSP_DEBUG_SRC_TS1,               ///< TSP input from TS1 interface
135*53ee8cc1Swenshuai.xi     TSP_DEBUG_SRC_TS2,               ///< TSP input from TS2 interface
136*53ee8cc1Swenshuai.xi     TSP_DEBUG_SRC_FILE,              ///< TSP input from filein
137*53ee8cc1Swenshuai.xi     TSP_DEBUG_SRC_TSCB,              ///< TSP input from TSCB
138*53ee8cc1Swenshuai.xi } TSP_DEBUG_SRC;
139*53ee8cc1Swenshuai.xi 
140*53ee8cc1Swenshuai.xi typedef enum
141*53ee8cc1Swenshuai.xi {
142*53ee8cc1Swenshuai.xi     TSP_DEBUG_FIFO_VIDEO,            ///< TSP output to Video FIFO
143*53ee8cc1Swenshuai.xi     TSP_DEBUG_FIFO_AUDIO,            ///< TSP output to Audio FIFO
144*53ee8cc1Swenshuai.xi     TSP_DEBUG_FIFO_VIDEO3D,          ///< TSP output to Video3D FIFO
145*53ee8cc1Swenshuai.xi     TSP_DEBUG_FIFO_AUDIOB,           ///< TSP output to AudioB FIFO
146*53ee8cc1Swenshuai.xi } TSP_DEBUG_FIFO;
147*53ee8cc1Swenshuai.xi 
148*53ee8cc1Swenshuai.xi typedef enum
149*53ee8cc1Swenshuai.xi {
150*53ee8cc1Swenshuai.xi     TSP_DEBUG_PKT_DEMUX_0,
151*53ee8cc1Swenshuai.xi     TSP_DEBUG_PKT_DEMUX_0_FILE,
152*53ee8cc1Swenshuai.xi     TSP_DEBUG_PKT_DEMUX_1,
153*53ee8cc1Swenshuai.xi     TSP_DEBUG_PKT_DEMUX_2,
154*53ee8cc1Swenshuai.xi     TSP_DEBUG_MMFI0,
155*53ee8cc1Swenshuai.xi     TSP_DEBUG_MMFI1,
156*53ee8cc1Swenshuai.xi } TSP_DEBUG_FIFO_SRC;
157*53ee8cc1Swenshuai.xi 
158*53ee8cc1Swenshuai.xi typedef enum
159*53ee8cc1Swenshuai.xi {
160*53ee8cc1Swenshuai.xi     TSP_DEBUG_TSIF0,            ///< TSP output to Video FIFO
161*53ee8cc1Swenshuai.xi     TSP_DEBUG_TSIF1,            ///< TSP output to Audio FIFO
162*53ee8cc1Swenshuai.xi     TSP_DEBUG_TSIFCB,          ///< TSP output to Video3D FIFO
163*53ee8cc1Swenshuai.xi } TSP_DEBUG_TSIF;
164*53ee8cc1Swenshuai.xi 
165*53ee8cc1Swenshuai.xi typedef enum
166*53ee8cc1Swenshuai.xi {
167*53ee8cc1Swenshuai.xi     TSP_DEBUG_CMD_NONE,              ///< TSP debug table cmd: do nothing
168*53ee8cc1Swenshuai.xi     TSP_DEBUG_CMD_CLEAR,             ///< TSP debug table cmd: clear
169*53ee8cc1Swenshuai.xi     TSP_DEBUG_CMD_ENABLE,            ///< TSP debug table cmd: enable
170*53ee8cc1Swenshuai.xi     TSP_DEBUG_CMD_DISABLE,           ///< TSP debug table cmd: disable
171*53ee8cc1Swenshuai.xi } TSP_DEBUG_CMD;
172*53ee8cc1Swenshuai.xi 
173*53ee8cc1Swenshuai.xi typedef enum
174*53ee8cc1Swenshuai.xi {
175*53ee8cc1Swenshuai.xi     TSP_CLR_SRC_PIDFLT_0    = 0x1,            ///< TSP debug table clear source: pidflt 0
176*53ee8cc1Swenshuai.xi     TSP_CLR_SRC_PIDFLT_FILE = 0x2,         ///< TSP debug table clear source: pidflt file
177*53ee8cc1Swenshuai.xi } TSP_DEBUG_CLR_SRC;
178*53ee8cc1Swenshuai.xi 
179*53ee8cc1Swenshuai.xi //----------------------------------
180*53ee8cc1Swenshuai.xi /// DMX debug table information structure
181*53ee8cc1Swenshuai.xi //----------------------------------
182*53ee8cc1Swenshuai.xi typedef struct
183*53ee8cc1Swenshuai.xi {
184*53ee8cc1Swenshuai.xi     TSP_DEBUG_CMD               TspCmd;
185*53ee8cc1Swenshuai.xi     TSP_DEBUG_SRC               TspSrc;
186*53ee8cc1Swenshuai.xi     TSP_DEBUG_FIFO              TspFifo;
187*53ee8cc1Swenshuai.xi } TSP_DisconPktCnt_Info, TSP_DropPktCnt_Info;
188*53ee8cc1Swenshuai.xi 
189*53ee8cc1Swenshuai.xi typedef struct
190*53ee8cc1Swenshuai.xi {
191*53ee8cc1Swenshuai.xi     TSP_DEBUG_CMD               TspCmd;
192*53ee8cc1Swenshuai.xi     TSP_DEBUG_TSIF              TspTsif;
193*53ee8cc1Swenshuai.xi } TSP_LockPktCnt_info;
194*53ee8cc1Swenshuai.xi 
195*53ee8cc1Swenshuai.xi typedef struct
196*53ee8cc1Swenshuai.xi {
197*53ee8cc1Swenshuai.xi     TSP_DEBUG_CMD               TspCmd;
198*53ee8cc1Swenshuai.xi     TSP_DEBUG_FIFO              TspFifo;
199*53ee8cc1Swenshuai.xi     TSP_DEBUG_FIFO_SRC          TspFifoSrc;
200*53ee8cc1Swenshuai.xi } TSP_AVPktCnt_info;
201*53ee8cc1Swenshuai.xi 
202*53ee8cc1Swenshuai.xi //--------------------------------------------------------------------------------------------------
203*53ee8cc1Swenshuai.xi //  Macro of bit operations
204*53ee8cc1Swenshuai.xi //--------------------------------------------------------------------------------------------------
205*53ee8cc1Swenshuai.xi #define HAS_FLAG(flag, bit)        ((flag) & (bit))
206*53ee8cc1Swenshuai.xi #define SET_FLAG(flag, bit)        ((flag)|= (bit))
207*53ee8cc1Swenshuai.xi #define RESET_FLAG(flag, bit)      ((flag)&= (~(bit)))
208*53ee8cc1Swenshuai.xi #define SET_FLAG1(flag, bit)       ((flag)|  (bit))
209*53ee8cc1Swenshuai.xi #define RESET_FLAG1(flag, bit)     ((flag)&  (~(bit)))
210*53ee8cc1Swenshuai.xi 
211*53ee8cc1Swenshuai.xi // define NULL function
212*53ee8cc1Swenshuai.xi #define HAL_TSP_SecFlt_SelSecBuf(pSecFilter, u32BufId, bEnable)
213*53ee8cc1Swenshuai.xi #define HAL_TSP_SecFlt_SetEcmIdx(pSecFilter, u32EcmIdx)
214*53ee8cc1Swenshuai.xi #define HAL_TSP_SecFlt_ResetEmmIdx(pSecFilter)
215*53ee8cc1Swenshuai.xi #define HAL_TSP_SelAudOut(u32EngId)
216*53ee8cc1Swenshuai.xi 
217*53ee8cc1Swenshuai.xi ////////////////////////////////////////////////
218*53ee8cc1Swenshuai.xi // HAL API
219*53ee8cc1Swenshuai.xi ////////////////////////////////////////////////
220*53ee8cc1Swenshuai.xi 
221*53ee8cc1Swenshuai.xi #define HAL_TSP_CAP_PID_FILTER_NUM          0x00000000
222*53ee8cc1Swenshuai.xi #define HAL_TSP_CAP_SEC_FILTER_NUM          0x00000001
223*53ee8cc1Swenshuai.xi #define HAL_TSP_CAP_SEC_BUF_NUM             0x00000002
224*53ee8cc1Swenshuai.xi #define HAL_TSP_CAP_PVR_ENG_NUM             0x00000003
225*53ee8cc1Swenshuai.xi #define HAL_TSP_CAP_PVR_FILTER_NUM          0x00000004
226*53ee8cc1Swenshuai.xi #define HAL_TSP_CAP_PVR1_FILTER_NUM         0x00000005
227*53ee8cc1Swenshuai.xi #define HAL_TSP_CAP_MMFI_AUDIO_FILTER_NUM   0x00000006
228*53ee8cc1Swenshuai.xi #define HAL_TSP_CAP_MMFI_V3D_FILTER_NUM     0x00000007
229*53ee8cc1Swenshuai.xi #define HAL_TSP_CAP_TSIF_NUM                0x00000008
230*53ee8cc1Swenshuai.xi #define HAL_TSP_CAP_DEMOD_NUM               0x00000009
231*53ee8cc1Swenshuai.xi #define HAL_TSP_CAP_TS_PAD_NUM              0x0000000a
232*53ee8cc1Swenshuai.xi #define HAL_TSP_CAP_VQ_NUM                  0x0000000b
233*53ee8cc1Swenshuai.xi #define HAL_TSP_CAP_CA_FLT_NUM              0x0000000c
234*53ee8cc1Swenshuai.xi #define HAL_TSP_CAP_CA_KEY_NUM              0x0000000d
235*53ee8cc1Swenshuai.xi #define HAL_TSP_CAP_FW_ALIGN                0x0000000e
236*53ee8cc1Swenshuai.xi #define HAL_TSP_CAP_VQ_ALIGN                0x0000000f
237*53ee8cc1Swenshuai.xi #define HAL_TSP_CAP_VQ_PITCH                0x00000010
238*53ee8cc1Swenshuai.xi #define HAL_TSP_CAP_SEC_BUF_ALIGN           0x00000011
239*53ee8cc1Swenshuai.xi #define HAL_TSP_CAP_PVR_ALIGN               0x00000012
240*53ee8cc1Swenshuai.xi #define HAL_TSP_CAP_PVRCA_PATH_NUM          0x00000013
241*53ee8cc1Swenshuai.xi #define HAL_TSP_CAP_SHAREKEY_FLT_RANGE      0x00000014
242*53ee8cc1Swenshuai.xi #define HAL_TSP_CAP_PVRCA0_FLT_RANGE        0x00000015
243*53ee8cc1Swenshuai.xi #define HAL_TSP_CAP_PVRCA1_FLT_RANGE        0x00000016
244*53ee8cc1Swenshuai.xi #define HAL_TSP_CAP_HW_TYPE                 0x0000001a
245*53ee8cc1Swenshuai.xi #define HAL_TSP_CAP_VFIFO_NUM               0x0000001c
246*53ee8cc1Swenshuai.xi #define HAL_TSP_CAP_AFIFO_NUM               0x0000001d
247*53ee8cc1Swenshuai.xi #define HAL_TSP_CAP_HWPCR_SUPPORT           0x0000001e
248*53ee8cc1Swenshuai.xi #define HAL_TSP_CAP_PCRFLT_START_IDX        0x0000001f
249*53ee8cc1Swenshuai.xi #define HAL_TSP_CAP_HWWP_SET_NUM            0x00000020
250*53ee8cc1Swenshuai.xi #define HAL_TSP_CAP_DSCMB_ENG_NUM           0x00000021
251*53ee8cc1Swenshuai.xi #define HAL_TSP_CAP_MERGESTR_NUM            0x00000022
252*53ee8cc1Swenshuai.xi #define HAL_TSP_CAP_MAX_SEC_FLT_DEPTH       0x00000023
253*53ee8cc1Swenshuai.xi #define HAL_TSP_CAP_FW_BUF_SIZE             0x00000024
254*53ee8cc1Swenshuai.xi #define HAL_TSP_CAP_FW_BUF_RANGE            0x00000025
255*53ee8cc1Swenshuai.xi #define HAL_TSP_CAP_VQ_BUF_RANGE            0x00000026
256*53ee8cc1Swenshuai.xi #define HAL_TSP_CAP_SEC_BUF_RANGE           0x00000027
257*53ee8cc1Swenshuai.xi #define HAL_TSP_CAP_FIQ_NUM                 0x00000028
258*53ee8cc1Swenshuai.xi 
259*53ee8cc1Swenshuai.xi 
260*53ee8cc1Swenshuai.xi //STC update Control Parameters define
261*53ee8cc1Swenshuai.xi #define HAL_TSP_STC_UPDATE_FW               0x00
262*53ee8cc1Swenshuai.xi #define HAL_TSP_STC_UPDATE_HK               0x01
263*53ee8cc1Swenshuai.xi #define HAL_TSP_STC_UPDATE_UPDATEONCE       0x02
264*53ee8cc1Swenshuai.xi 
265*53ee8cc1Swenshuai.xi 
266*53ee8cc1Swenshuai.xi //[LEGACY] //[OBSOLETE]
267*53ee8cc1Swenshuai.xi extern MS_BOOL _bIsHK;
268*53ee8cc1Swenshuai.xi //[LEGACY] //[OBSOLETE]
269*53ee8cc1Swenshuai.xi 
270*53ee8cc1Swenshuai.xi void HAL_TSP_Stc_ctrl(MS_U32 u32EngId, MS_U32 u32Sync);
271*53ee8cc1Swenshuai.xi void HAL_TSP_Reset(MS_U32 u32EngId);
272*53ee8cc1Swenshuai.xi void HAL_TSP_SetBank(MS_VIRT u32NonPmBankAddr, MS_VIRT u32PmBankAddr);
273*53ee8cc1Swenshuai.xi void HAL_TSP_Int_Disable(MS_U32 u32Mask);
274*53ee8cc1Swenshuai.xi MS_U32 HAL_TSP_CmdQ_CmdCount(void);
275*53ee8cc1Swenshuai.xi MS_BOOL HAL_TSP_CmdQ_Reset(void);
276*53ee8cc1Swenshuai.xi void HAL_TSP_WbDmaEnable(MS_BOOL bEnable);
277*53ee8cc1Swenshuai.xi void HAL_TSP_HwPatch(void);
278*53ee8cc1Swenshuai.xi void HAL_TSP_CPU_SetBase(MS_PHY phyAddr, MS_U32 u32Size);
279*53ee8cc1Swenshuai.xi void HAL_TSP_SetCtrlMode(MS_U32 u32EngId, MS_U32 u32Mode, MS_U32 u32TsIfId);
280*53ee8cc1Swenshuai.xi void HAL_TSP_Int_ClearSw(void);
281*53ee8cc1Swenshuai.xi void HAL_TSP_Int_ClearHw(MS_U32 u32Mask);
282*53ee8cc1Swenshuai.xi void HAL_TSP_TsDma_SetDelay(MS_U32 u32Delay);
283*53ee8cc1Swenshuai.xi void HAL_TSP_Int_Enable(MS_U32 u32Mask);
284*53ee8cc1Swenshuai.xi MS_U32 HAL_TSP_GetCtrlMode(MS_U32 u32EngId);
285*53ee8cc1Swenshuai.xi void HAL_TSP_RemoveDupAVPkt(MS_BOOL bEnable);
286*53ee8cc1Swenshuai.xi void HAL_TSP_RemoveDupAVFifoPkt(MS_U32 u32StreamId, MS_BOOL bEnable);
287*53ee8cc1Swenshuai.xi MS_BOOL HAL_TSP_GetTSIF_Status(MS_U8 u8TsIfId, MS_U16* pu16Pad, MS_U16* pu16Clk, MS_BOOL* pbExtSync, MS_BOOL* pbParl);
288*53ee8cc1Swenshuai.xi MS_BOOL HAL_TSP_Check_FIFO_Overflow(MS_U32 u32StreamId);
289*53ee8cc1Swenshuai.xi 
290*53ee8cc1Swenshuai.xi void HAL_TSP_SelPad(MS_U32 u32EngId, MS_U32 u32Flow, MS_U32 u32Pad);
291*53ee8cc1Swenshuai.xi void HAL_TSP_SelPad_ClkInv(MS_U32 u32EngId, MS_U32 u32Flow, MS_BOOL bClkInv);
292*53ee8cc1Swenshuai.xi void HAL_TSP_SelPad_ExtSync(MS_U32 u32EngId, MS_BOOL bExtSync, MS_U32 u32Flow);
293*53ee8cc1Swenshuai.xi void HAL_TSP_SelPad_Parl(MS_U32 u32EngId, MS_BOOL bParl, MS_U32 u32Flow);
294*53ee8cc1Swenshuai.xi void HAL_TSP_Parl_BitOrderSwap(MS_U32 u32EngId, MS_U32 u32Flow, MS_BOOL bInvert);
295*53ee8cc1Swenshuai.xi void HAL_TSP_Flush_AV_FIFO(MS_U32 u32StreamId, MS_BOOL bFlush);
296*53ee8cc1Swenshuai.xi MS_U32 HAL_TSP_Get_AVFifoLevel(MS_U32 u32StreamId);
297*53ee8cc1Swenshuai.xi void HAL_TSP_CmdQ_SetSTC(MS_U32 u32EngId, MS_U32 u32STC);
298*53ee8cc1Swenshuai.xi void HAL_TSP_CmdQ_SetSTC_32(MS_U32 u32EngId, MS_U32 u32STC_32);
299*53ee8cc1Swenshuai.xi MS_U32 HAL_TSP_CmdQ_GetSTC(MS_U32 u32EngId);
300*53ee8cc1Swenshuai.xi MS_U32 HAL_TSP_CmdQ_GetSTC_32(MS_U32 u32EngId);
301*53ee8cc1Swenshuai.xi void HAL_TSP_SetSTC(MS_U32 u32EngId, MS_U32 u32STC, MS_U32 u32STC_32);
302*53ee8cc1Swenshuai.xi MS_BOOL HAL_TSP_SetSTCOffset(MS_U32 u32EngId, MS_U32 u32Offset, MS_BOOL bAdd);
303*53ee8cc1Swenshuai.xi //void HAL_TSP_SetSTC_32(MS_U32 u32EngId, MS_U32 u32STC_32);
304*53ee8cc1Swenshuai.xi void    HAL_TSP_STC_Update_Disable(MS_U32 u32EngId, MS_BOOL bDisable);
305*53ee8cc1Swenshuai.xi MS_U32 HAL_TSP_GetSTC(MS_U32 u32EngId);
306*53ee8cc1Swenshuai.xi MS_U32 HAL_TSP_GetSTC_32(MS_U32 u32EngId);
307*53ee8cc1Swenshuai.xi void HAL_TSP_STC64_Mode_En(MS_BOOL bEnable);
308*53ee8cc1Swenshuai.xi MS_BOOL HAL_TSP_GetPcr(MS_U32 u32EngId, MS_U32 *pu32Pcr_32, MS_U32 *pu32Pcr);
309*53ee8cc1Swenshuai.xi //MS_U32 HAL_TSP_PidFltId(MS_U32 u32PidType);
310*53ee8cc1Swenshuai.xi void HAL_TSP_PidFlt_SetPid(REG_PidFlt *pPidFilter, MS_U32 u32PID);
311*53ee8cc1Swenshuai.xi void HAL_TSP_PidFlt_SelFltOutput(REG_PidFlt *pPidFilter, MS_U32 u32FltOutput);
312*53ee8cc1Swenshuai.xi void HAL_TSP_PidFlt_SelSecFlt(REG_PidFlt *pPidFilter, MS_U32 u32SecFltId);
313*53ee8cc1Swenshuai.xi void HAL_TSP_PidFlt_PVREnable(REG_PidFlt *pPidFilter);
314*53ee8cc1Swenshuai.xi 
315*53ee8cc1Swenshuai.xi void HAL_TSP_SecFlt_SetType(REG_SecFlt *pSecFilter, MS_U32 u32FltType);
316*53ee8cc1Swenshuai.xi MS_U32 HAL_TSP_PidFlt_GetSecFlt(REG_PidFlt *pPidFilter);
317*53ee8cc1Swenshuai.xi MS_U32 HAL_TSP_SecFlt_GetSecBuf(REG_SecFlt *pSecFilter);
318*53ee8cc1Swenshuai.xi void HAL_TSP_SecBuf_ResetBuffer(REG_SecFlt *pSecBuf);
319*53ee8cc1Swenshuai.xi void HAL_TSP_SecFlt_ResetState(REG_SecFlt* pSecFilter);
320*53ee8cc1Swenshuai.xi void HAL_TSP_SecFlt_SetRmnCount(REG_SecFlt *pSecFilter, MS_U32 u32RmnCount);
321*53ee8cc1Swenshuai.xi MS_U32 HAL_TSP_HW_INT_STATUS(void);
322*53ee8cc1Swenshuai.xi MS_U32 HAL_TSP_SW_INT_STATUS(void);
323*53ee8cc1Swenshuai.xi MS_U32 HAL_TSP_PidFlt_GetPid(REG_PidFlt* pPidFilter);
324*53ee8cc1Swenshuai.xi MS_U32  HAL_TSP_Scmb_Status(MS_U32 u32TSSrc, MS_U32 u32GroupId, MS_U32 u32PidFltId);
325*53ee8cc1Swenshuai.xi MS_PHY  HAL_TSP_SecBuf_GetBufRead(REG_SecFlt *pSecBuf);
326*53ee8cc1Swenshuai.xi MS_PHY  HAL_TSP_SecBuf_GetBufWrite(REG_SecFlt *pSecBuf);
327*53ee8cc1Swenshuai.xi void HAL_TSP_SecFlt_ClrCtrl(REG_SecFlt *pSecFilter);
328*53ee8cc1Swenshuai.xi void HAL_TSP_SecFlt_SetMask(REG_SecFlt *pSecFilter, MS_U8 *pu8Mask);
329*53ee8cc1Swenshuai.xi void HAL_TSP_SecFlt_SetNMask(REG_SecFlt *pSecFilter, MS_U8 *pu8NMask);
330*53ee8cc1Swenshuai.xi void HAL_TSP_SecFlt_SetMatch(REG_SecFlt *pSecFilter, MS_U8 *pu8Match);
331*53ee8cc1Swenshuai.xi void HAL_TSP_SecFlt_SetReqCount(REG_SecFlt *pSecFilter, MS_U32 u32ReqCount);
332*53ee8cc1Swenshuai.xi void HAL_TSP_SecBuf_SetBuffer(REG_SecFlt *pSecBuf, MS_PHY phyStartAddr, MS_U32 u32BufSize);
333*53ee8cc1Swenshuai.xi void HAL_TSP_SecBuf_SetBufRead(REG_SecFlt *pSecBuf, MS_PHY phyReadAddr);
334*53ee8cc1Swenshuai.xi MS_PHY HAL_TSP_SecBuf_GetBufStart(REG_SecFlt *pSecBuf);
335*53ee8cc1Swenshuai.xi MS_PHY HAL_TSP_SecBuf_GetBufEnd(REG_SecFlt *pSecBuf);
336*53ee8cc1Swenshuai.xi MS_PHY HAL_TSP_SecBuf_GetBufCur(REG_SecFlt *pSecBuf);
337*53ee8cc1Swenshuai.xi void HAL_TSP_SecFlt_SetMode(REG_SecFlt *pSecFilter, MS_U32 u32SecFltMode);
338*53ee8cc1Swenshuai.xi MS_U32 HAL_TSP_SecFlt_GetCRC32(REG_SecFlt *pSecFilter);
339*53ee8cc1Swenshuai.xi MS_U32 HAL_TSP_SecFlt_GetState(REG_SecFlt *pSecFilter);
340*53ee8cc1Swenshuai.xi void HAL_TSP_PVR_SetBuffer(MS_PHY phyBufStart0, MS_PHY phyBufStart1, MS_U32 u32BufSize0, MS_U32 u32BufSize1);
341*53ee8cc1Swenshuai.xi void HAL_TSP_PVR_Enable(MS_BOOL bEnable);
342*53ee8cc1Swenshuai.xi void HAL_TSP_PVR_Reset(void);
343*53ee8cc1Swenshuai.xi void HAL_TSP_PVR_All(MS_BOOL bPvrAll);
344*53ee8cc1Swenshuai.xi MS_PHY HAL_TSP_PVR_GetBufWrite(void);
345*53ee8cc1Swenshuai.xi void HAL_TSP_PVR_WaitFlush(void);
346*53ee8cc1Swenshuai.xi void    HAL_TSP_PVR_Filein_Enable(MS_BOOL bBypassHD, MS_BOOL bEnable, MS_BOOL bRecAll);
347*53ee8cc1Swenshuai.xi void HAL_TSP_PVR_REC_FLT_Enable(MS_BOOL bEnable);
348*53ee8cc1Swenshuai.xi MS_BOOL HAL_TSP_PVR_Eng_IsEnabled(MS_U32 u32EngId);
349*53ee8cc1Swenshuai.xi 
350*53ee8cc1Swenshuai.xi void HAL_TSP_CmdQ_TsDma_SetAddr(MS_PHY phyStreamAddr);
351*53ee8cc1Swenshuai.xi MS_BOOL HAL_TSP_CmdQ_TsDma_SetSize(MS_U32 u32StreamSize);
352*53ee8cc1Swenshuai.xi void HAL_TSP_CmdQ_TsDma_Start(MS_U32 u32TsDmaCtrl);
353*53ee8cc1Swenshuai.xi void HAL_TSP_TsDma_Pause(void);
354*53ee8cc1Swenshuai.xi void HAL_TSP_TsDma_Resume(void);
355*53ee8cc1Swenshuai.xi MS_U32 HAL_TSP_CmdQ_TsDma_GetState(void);
356*53ee8cc1Swenshuai.xi MS_U32 HAL_TSP_CmdQ_EmptyCount(void);
357*53ee8cc1Swenshuai.xi MS_U32 HAL_TSP_PidFlt_GetFltOutput(REG_PidFlt *pPidFilter);
358*53ee8cc1Swenshuai.xi MS_U32 HAL_TSP_SecFlt_GetMode(REG_SecFlt *pSecFilter);
359*53ee8cc1Swenshuai.xi void HAL_TSP_SecFlt_PcrReset(REG_SecFlt *pSecFilter);
360*53ee8cc1Swenshuai.xi void    HAL_TSP_SecFlt_VerReset(MS_U32 u32SecFltId);
361*53ee8cc1Swenshuai.xi void    HAL_TSP_SecFlt_SetDataAddr(MS_PHY phyDataAddr);
362*53ee8cc1Swenshuai.xi 
363*53ee8cc1Swenshuai.xi void HAL_TSP_Ind_Enable(void);
364*53ee8cc1Swenshuai.xi void HAL_TSP_CmdQ_TsDma_Reset(void);
365*53ee8cc1Swenshuai.xi MS_BOOL HAL_TSP_CmdQ_IsEmpty(void);
366*53ee8cc1Swenshuai.xi MS_U8 HAL_TSP_Get_CmdQFifoLevel(void);
367*53ee8cc1Swenshuai.xi 
368*53ee8cc1Swenshuai.xi // void HAL_TSP_SetFwMsg(MS_U32 u32Mode);
369*53ee8cc1Swenshuai.xi // MS_U32 HAL_TSP_GetFwMsg(void);
370*53ee8cc1Swenshuai.xi void HAL_TSP_ISR_SAVE_ALL(void);
371*53ee8cc1Swenshuai.xi void HAL_TSP_ISR_RESTORE_ALL(void);
372*53ee8cc1Swenshuai.xi MS_U32 HAL_REG32_IndR(REG32 *reg);
373*53ee8cc1Swenshuai.xi void HAL_REG32_IndW(REG32 *reg, MS_U32 value);
374*53ee8cc1Swenshuai.xi void HAL_TSP_PS_Path_Disable(void);
375*53ee8cc1Swenshuai.xi void HAL_TSP_PS_Path_Enable(MS_U32 u32TsDmaCtrl);
376*53ee8cc1Swenshuai.xi void HAL_TSP_DoubleBuf_En(MS_BOOL bBuf_Sel);
377*53ee8cc1Swenshuai.xi void HAL_TSP_DoubleBuf_Disable(void);
378*53ee8cc1Swenshuai.xi void HAL_TSP_OrzWriteProtect_Enable(MS_BOOL bEnable, MS_PHY phyStartAddr, MS_PHY phyEndAddr);
379*53ee8cc1Swenshuai.xi void HAL_TSP_CSA_Set_ScrmPath(MS_U32 u32ScrmPath);
380*53ee8cc1Swenshuai.xi MS_U32 HAL_TSP_CSA_Get_ScrmPath(void);
381*53ee8cc1Swenshuai.xi void HAL_TSP_PidFlt_SelFltSource(REG_PidFlt *pPidFilter, MS_U32 u32FltSource);
382*53ee8cc1Swenshuai.xi void HAL_TSP_LiveAB_En(MS_BOOL bPF_EN);
383*53ee8cc1Swenshuai.xi MS_BOOL HAL_TSP_IsLiveAB_Enable(void);
384*53ee8cc1Swenshuai.xi 
385*53ee8cc1Swenshuai.xi void HAL_TSP_Scmb_Detect(MS_BOOL bEnable);
386*53ee8cc1Swenshuai.xi void HAL_TSP_FileIn_192BlockScheme_En(MS_BOOL bEnable);
387*53ee8cc1Swenshuai.xi 
388*53ee8cc1Swenshuai.xi MS_BOOL HAL_TSP_GetCap(MS_U32 u32Cap, void* pData);
389*53ee8cc1Swenshuai.xi 
390*53ee8cc1Swenshuai.xi MS_BOOL HAL_TSP_Alive(void);
391*53ee8cc1Swenshuai.xi void    HAL_TSP_HW_Lock_Init(void);
392*53ee8cc1Swenshuai.xi void    HAL_TSP_HW_Lock_Release(void);
393*53ee8cc1Swenshuai.xi void    HAL_TSP_SetPKTSize(MS_U32 u32PKTSize);
394*53ee8cc1Swenshuai.xi void    HAL_TSP_SetOwner(REG_SecFlt* pSecFlt, MS_BOOL bOwner);
395*53ee8cc1Swenshuai.xi MS_BOOL HAL_TSP_TTX_IsAccess(MS_U32 u32Try);
396*53ee8cc1Swenshuai.xi void    HAL_TSP_TTX_UnlockAccess(void);
397*53ee8cc1Swenshuai.xi 
398*53ee8cc1Swenshuai.xi void    HAL_TSP_filein_enable(MS_BOOL b_enable);
399*53ee8cc1Swenshuai.xi void    HAL_TSP_FileIn_Set(MS_BOOL bset);
400*53ee8cc1Swenshuai.xi void    HAL_TSP_ResetTimeStamp(void);
401*53ee8cc1Swenshuai.xi MS_U32  HAL_TSP_GetPVRTimeStamp(void);
402*53ee8cc1Swenshuai.xi void    HAL_TSP_SetPVRTimeStamp(MS_U32 u32Stamp);
403*53ee8cc1Swenshuai.xi MS_BOOL HAL_TSP_SetPVRTimeStampClk(MS_U8 u8PVRId, MS_U32 u32ClkSrc);
404*53ee8cc1Swenshuai.xi 
405*53ee8cc1Swenshuai.xi MS_U32  HAL_TSP_GetPlayBackTimeStamp(void);
406*53ee8cc1Swenshuai.xi void    HAL_TSP_SetPlayBackTimeStamp(MS_U32 u32Stamp);
407*53ee8cc1Swenshuai.xi MS_BOOL HAL_TSP_SetPlayBackTimeStampClk(MS_U8 u8Id, MS_U32 u32ClkSrc);
408*53ee8cc1Swenshuai.xi 
409*53ee8cc1Swenshuai.xi MS_U32  HAL_TSP_GetFileInTimeStamp(void);
410*53ee8cc1Swenshuai.xi MS_BOOL HAL_TSP_GetFilinReadAddr(MS_PHY* pphyReadAddr);
411*53ee8cc1Swenshuai.xi void    HAL_TSP_SetDMABurstLen(MS_U32 u32Len);
412*53ee8cc1Swenshuai.xi void    HAL_TSP_PVR_PacketMode(MS_BOOL bSet);
413*53ee8cc1Swenshuai.xi void    HAL_ResetAll(void);
414*53ee8cc1Swenshuai.xi void    HAL_TSP_PowerCtrl(MS_BOOL bOn);
415*53ee8cc1Swenshuai.xi void    HAL_TSP_SecBuf_SetBufRead_tmp(REG_SecFlt *pSecBuf, MS_PHY pRehyadAddr);
416*53ee8cc1Swenshuai.xi MS_PHY  HAL_TSP_SecBuf_GetBufWrite_tmp(REG_SecFlt *pSecBuf);
417*53ee8cc1Swenshuai.xi MS_U32  HAL_TSP_GetDBGPortInfo(MS_U32 u32dbgsel);
418*53ee8cc1Swenshuai.xi 
419*53ee8cc1Swenshuai.xi void    HAL_TSP_SetVQBuffer(MS_PHY phyBaseAddr, MS_U32 u32BufLen);
420*53ee8cc1Swenshuai.xi void    HAL_TSP_VQueue_Enable(MS_BOOL bEnable);
421*53ee8cc1Swenshuai.xi void    HAL_TSP_VQueue_Reset(void);
422*53ee8cc1Swenshuai.xi void    HAL_TSP_VQueue_OverflowInt_En(MS_BOOL bEnable);
423*53ee8cc1Swenshuai.xi void    HAL_TSP_VQueue_Clr_OverflowInt(void);
424*53ee8cc1Swenshuai.xi MS_U32  HAL_TSP_VQ_INT_STATUS(void);
425*53ee8cc1Swenshuai.xi void    HAL_TSP_Set_Req_VQ_RX_Threshold(MS_U8 u8req_len);
426*53ee8cc1Swenshuai.xi MS_U32  HAL_TSP_Get_VQStatus(void);
427*53ee8cc1Swenshuai.xi 
428*53ee8cc1Swenshuai.xi void    HAL_TSP_SaveFltState(void);
429*53ee8cc1Swenshuai.xi void    HAL_TSP_RestoreFltState(void);
430*53ee8cc1Swenshuai.xi void    HAL_TSP_Enable_ValidSync_Dectect(void);
431*53ee8cc1Swenshuai.xi void    HAL_Reset_WB(void);
432*53ee8cc1Swenshuai.xi MS_U8   HAL_TSP_Get_PesScmb_Sts(MS_U8 u8FltId);
433*53ee8cc1Swenshuai.xi MS_U8   HAL_TSP_Get_TsScmb_Sts(MS_U8 u8FltId);
434*53ee8cc1Swenshuai.xi void    HAL_TSP_Set_AVPAUSE(MS_BOOL bSet);
435*53ee8cc1Swenshuai.xi MS_U32  HAL_TSP_Get_FW_VER(void);
436*53ee8cc1Swenshuai.xi MS_BOOL HAL_TSP_Check_FW_VER(void);
437*53ee8cc1Swenshuai.xi MS_BOOL HAL_TSP_SetFwDbgMem(MS_PHY phyAddr, MS_U32 u32Size);
438*53ee8cc1Swenshuai.xi MS_BOOL HAL_TSP_SetFwDbgWord(MS_U32 u32Word);
439*53ee8cc1Swenshuai.xi 
440*53ee8cc1Swenshuai.xi REG_PidFlt* HAL_TSP_GetPidFltReg(MS_U32 u32EngId, MS_U32 u32PidFltId);
441*53ee8cc1Swenshuai.xi MS_BOOL HAL_TSP_Read_DropPktCnt(MS_U16* pu16ADropCnt, MS_U16* pu16VDropCnt);
442*53ee8cc1Swenshuai.xi void    HAL_TSP_TSIF0_Enable(MS_BOOL bEnable);
443*53ee8cc1Swenshuai.xi void    HAL_TSP_TSIF1_Enable(MS_BOOL bEnable);
444*53ee8cc1Swenshuai.xi void    HAL_TSP_WriteProtect_Enable(MS_BOOL bEnable, MS_PHY* pphyStartAddr, MS_PHY* pphyEndAddr);
445*53ee8cc1Swenshuai.xi 
446*53ee8cc1Swenshuai.xi MS_BOOL  HAL_TSP_MOBF_Set_PVRKey(MS_U32 u32Key0, MS_U32 u32Key1);
447*53ee8cc1Swenshuai.xi MS_BOOL  HAL_TSP_MOBF_Set_FileinKey(MS_U32 u32Key);
448*53ee8cc1Swenshuai.xi MS_BOOL  HAL_TSP_MOBF_Filein_Enable(MS_BOOL bEnable);
449*53ee8cc1Swenshuai.xi MS_BOOL  HAL_TSP_MOBF_PVR_Enable(MS_BOOL bEnable);
450*53ee8cc1Swenshuai.xi 
451*53ee8cc1Swenshuai.xi MS_BOOL  HAL_TSP_AU_BD_Mode_Enable(MS_BOOL bEnable);
452*53ee8cc1Swenshuai.xi 
453*53ee8cc1Swenshuai.xi // -------------------------------------------------------------
454*53ee8cc1Swenshuai.xi //  Common api for mode setting
455*53ee8cc1Swenshuai.xi //  u32Cmd[31]: 0 -> public cmd, 1 -> private cmd
456*53ee8cc1Swenshuai.xi // -------------------------------------------------------------
457*53ee8cc1Swenshuai.xi MS_BOOL HAL_TSP_CMD_Run(MS_U32 u32Cmd, MS_U32 u32Config0, MS_U32 u32Config1, MS_U32* pData);
458*53ee8cc1Swenshuai.xi 
459*53ee8cc1Swenshuai.xi // -------------------------------------------------------------
460*53ee8cc1Swenshuai.xi // Debug table
461*53ee8cc1Swenshuai.xi // -------------------------------------------------------------
462*53ee8cc1Swenshuai.xi MS_U32 HAL_TSP_Get_DisContiCnt(TSP_DisconPktCnt_Info* TspDisconPktCntInfo);
463*53ee8cc1Swenshuai.xi MS_U32 HAL_TSP_Get_DropPktCnt(TSP_DropPktCnt_Info* TspDropCntInfo);
464*53ee8cc1Swenshuai.xi MS_U32 HAL_TSP_Get_LockPktCnt(TSP_LockPktCnt_info* TspLockCntInfo);
465*53ee8cc1Swenshuai.xi MS_U32 HAL_TSP_GetAVPktCnt(TSP_AVPktCnt_info* TspAVCntInfo);
466*53ee8cc1Swenshuai.xi 
467*53ee8cc1Swenshuai.xi MS_U32  HAL_TSP_Get_SecTEI_PktCount(MS_U32 u32PktSrc);
468*53ee8cc1Swenshuai.xi MS_BOOL HAL_TSP_Reset_SecTEI_PktCount(MS_U32 u32PktSrc);
469*53ee8cc1Swenshuai.xi MS_U32  HAL_TSP_Get_SecDisCont_PktCount(MS_U32 u32FltId);
470*53ee8cc1Swenshuai.xi MS_BOOL HAL_TSP_Reset_SecDisCont_PktCount(MS_U32 u32FltId);
471*53ee8cc1Swenshuai.xi 
472*53ee8cc1Swenshuai.xi MS_BOOL HAL_TSP_STC_UpdateCtrl(MS_U8 u8Eng, MS_U8 u8Opt);
473*53ee8cc1Swenshuai.xi 
474*53ee8cc1Swenshuai.xi MS_BOOL HAL_TSP_SetPacketMode(MS_U32 u32TSIf, MS_U32 u32PktMode);
475*53ee8cc1Swenshuai.xi MS_BOOL HAL_TSP_SetMergeStrSyncByte(MS_U32 u32SrcID, MS_U8 u8SyncByte);
476*53ee8cc1Swenshuai.xi void    HAL_TSP_MOBF_Set_PVRKey_EX(MS_U32 u32PvrEng, MS_U32 u32Key0, MS_U32 u32Key1);
477*53ee8cc1Swenshuai.xi 
478*53ee8cc1Swenshuai.xi 
479*53ee8cc1Swenshuai.xi #endif // #ifndef __HAL_TSP_H__
480