xref: /utopia/UTPA2-700.0.x/modules/vdec_v2/hal/messi/mvd_ex/halMVD_EX.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) 2008-2009 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 #ifndef _DEV_MVD_H_
96*53ee8cc1Swenshuai.xi #define _DEV_MVD_H_
97*53ee8cc1Swenshuai.xi #if !defined(MSOS_TYPE_NUTTX) || defined(SUPPORT_X_MODEL_FEATURE)
98*53ee8cc1Swenshuai.xi 
99*53ee8cc1Swenshuai.xi #include "halVPU_EX.h"
100*53ee8cc1Swenshuai.xi 
101*53ee8cc1Swenshuai.xi //-------------------------------------------------------------------------------------------------
102*53ee8cc1Swenshuai.xi //  Macro and Define
103*53ee8cc1Swenshuai.xi //-------------------------------------------------------------------------------------------------
104*53ee8cc1Swenshuai.xi 
105*53ee8cc1Swenshuai.xi #ifndef __MDRV_TYPES_H__
106*53ee8cc1Swenshuai.xi #define BIT0    BIT(0)
107*53ee8cc1Swenshuai.xi #define BIT1    BIT(1)
108*53ee8cc1Swenshuai.xi #define BIT2    BIT(2)
109*53ee8cc1Swenshuai.xi #define BIT3    BIT(3)
110*53ee8cc1Swenshuai.xi #define BIT4    BIT(4)
111*53ee8cc1Swenshuai.xi #define BIT5    BIT(5)
112*53ee8cc1Swenshuai.xi #define BIT6    BIT(6)
113*53ee8cc1Swenshuai.xi #define BIT7    BIT(7)
114*53ee8cc1Swenshuai.xi #endif
115*53ee8cc1Swenshuai.xi 
116*53ee8cc1Swenshuai.xi #define H_DWORD(x)            (MS_U8)(((x)>>24)&0xff)
117*53ee8cc1Swenshuai.xi #define L_DWORD(x)            (MS_U8)(((x)>>16)&0xff)
118*53ee8cc1Swenshuai.xi #define H_WORD(x)             (MS_U8)(((x)>>8 )&0xff)
119*53ee8cc1Swenshuai.xi #define L_WORD(x)             (MS_U8)((x)&0xff)
120*53ee8cc1Swenshuai.xi #define COMBM16(hi,lo)        ((((MS_U16)(hi))<<8) | ((MS_U16)(lo)))
121*53ee8cc1Swenshuai.xi #define COMBU32(hh,hl,lh,ll)  ((((MS_U32)(hh))<<24) | (((MS_U32)(hl))<<16) | (((MS_U32)(lh))<<8) | ((MS_U32)(ll)))
122*53ee8cc1Swenshuai.xi #ifndef MemAlign
123*53ee8cc1Swenshuai.xi #define MemAlign(n, unit)     ( (((n)+(unit)-1)/(unit)) * (unit) )
124*53ee8cc1Swenshuai.xi #endif
125*53ee8cc1Swenshuai.xi 
126*53ee8cc1Swenshuai.xi //Specify which decoder is used
127*53ee8cc1Swenshuai.xi #define SET_DECNUM(cmd, u8Num)              \
128*53ee8cc1Swenshuai.xi             do {                            \
129*53ee8cc1Swenshuai.xi                 cmd.Arg5 = u8Num;           \
130*53ee8cc1Swenshuai.xi                } while(0)
131*53ee8cc1Swenshuai.xi 
132*53ee8cc1Swenshuai.xi void HAL_MVD_RegSetBase(MS_VIRT u32Base);
133*53ee8cc1Swenshuai.xi MS_U8 HAL_MVD_RegReadByte(MS_VIRT u32Reg);
134*53ee8cc1Swenshuai.xi void HAL_MVD_RegWriteByte(MS_VIRT u32Reg, MS_U8 u8Val);
135*53ee8cc1Swenshuai.xi void HAL_MVD_RegWriteBit(MS_VIRT u32Reg, MS_BOOL bEnable, MS_U8 u8Mask);
136*53ee8cc1Swenshuai.xi void HAL_MVD_RegWriteByteMask(MS_VIRT u32Reg, MS_U8 u8Val, MS_U8 u8Msk);
137*53ee8cc1Swenshuai.xi void HAL_MVD_RegWrite4Byte(MS_VIRT u32Reg, MS_U32 u32Val);
138*53ee8cc1Swenshuai.xi 
139*53ee8cc1Swenshuai.xi // Mutex function for HI interface
140*53ee8cc1Swenshuai.xi #define HAL_MVD_LockHiIfMutex()
141*53ee8cc1Swenshuai.xi #define HAL_MVD_UnlockHiIfMutex()
142*53ee8cc1Swenshuai.xi 
143*53ee8cc1Swenshuai.xi #define MVD_SUPPORT_MPEG2 0x01
144*53ee8cc1Swenshuai.xi #define MVD_SUPPORT_MPEG4 0x02
145*53ee8cc1Swenshuai.xi #define MVD_SUPPORT_VC1   0x04
146*53ee8cc1Swenshuai.xi 
147*53ee8cc1Swenshuai.xi #define MVD_FW_VERSION   FW_VERSION
148*53ee8cc1Swenshuai.xi 
149*53ee8cc1Swenshuai.xi #define MVD_TURBO_INIT        FALSE//TRUE
150*53ee8cc1Swenshuai.xi 
151*53ee8cc1Swenshuai.xi //-------------------------------------------------------------------------------------------------
152*53ee8cc1Swenshuai.xi //  Type and Structure
153*53ee8cc1Swenshuai.xi //-------------------------------------------------------------------------------------------------
154*53ee8cc1Swenshuai.xi typedef enum
155*53ee8cc1Swenshuai.xi {
156*53ee8cc1Swenshuai.xi     E_MVD_MMAP_FW  = 0, //firmware
157*53ee8cc1Swenshuai.xi     E_MVD_MMAP_BS  = 1, //bitstream buffer
158*53ee8cc1Swenshuai.xi     E_MVD_MMAP_FB  = 2, //framebuffer
159*53ee8cc1Swenshuai.xi     E_MVD_MMAP_ALL = 3,
160*53ee8cc1Swenshuai.xi     E_MVD_MMAP_DRV = 4  //driver processing buffer
161*53ee8cc1Swenshuai.xi } MVD_MMAP_Type;
162*53ee8cc1Swenshuai.xi 
163*53ee8cc1Swenshuai.xi 
164*53ee8cc1Swenshuai.xi typedef struct _MVD_DrvCfg
165*53ee8cc1Swenshuai.xi {
166*53ee8cc1Swenshuai.xi     MS_U32 u32fmVerNum;//firmware version number
167*53ee8cc1Swenshuai.xi     MS_U16 u16fmSrcID; //firmware bin source id
168*53ee8cc1Swenshuai.xi     MS_U8  u8fbMode;   //framebuffer mode: HD or SD
169*53ee8cc1Swenshuai.xi } MVD_DrvCfg;
170*53ee8cc1Swenshuai.xi 
171*53ee8cc1Swenshuai.xi typedef enum
172*53ee8cc1Swenshuai.xi {
173*53ee8cc1Swenshuai.xi     E_HAL_MVD_MAIN_STREAM,  //Support TSP/TS/File mode
174*53ee8cc1Swenshuai.xi     E_HAL_MVD_SUB_STREAM,   //Only support file mode
175*53ee8cc1Swenshuai.xi } HAL_MVD_StreamType;
176*53ee8cc1Swenshuai.xi 
177*53ee8cc1Swenshuai.xi typedef enum
178*53ee8cc1Swenshuai.xi {
179*53ee8cc1Swenshuai.xi     E_HAL_MVD_STREAM_NONE = 0x0,
180*53ee8cc1Swenshuai.xi 
181*53ee8cc1Swenshuai.xi     //Support TSP/TS/File mode
182*53ee8cc1Swenshuai.xi     E_HAL_MVD_MAIN_STREAM_BASE = 0x10,
183*53ee8cc1Swenshuai.xi     E_HAL_MVD_MAIN_STREAM0 = E_HAL_MVD_MAIN_STREAM_BASE,
184*53ee8cc1Swenshuai.xi     E_HAL_MVD_MAIN_STREAM_MAX,
185*53ee8cc1Swenshuai.xi 
186*53ee8cc1Swenshuai.xi     //Only support file mode
187*53ee8cc1Swenshuai.xi     E_HAL_MVD_SUB_STREAM_BASE = 0x20,
188*53ee8cc1Swenshuai.xi     E_HAL_MVD_SUB_STREAM0 = E_HAL_MVD_SUB_STREAM_BASE,
189*53ee8cc1Swenshuai.xi     //E_HAL_MVD_SUB_STREAM1,
190*53ee8cc1Swenshuai.xi     E_HAL_MVD_SUB_STREAM_MAX,
191*53ee8cc1Swenshuai.xi 
192*53ee8cc1Swenshuai.xi } HAL_MVD_StreamId;
193*53ee8cc1Swenshuai.xi 
194*53ee8cc1Swenshuai.xi /// MVD clock speed
195*53ee8cc1Swenshuai.xi typedef enum
196*53ee8cc1Swenshuai.xi {
197*53ee8cc1Swenshuai.xi     E_HAL_MVD_EX_CLOCK_SPEED_NONE = 0,
198*53ee8cc1Swenshuai.xi     E_HAL_MVD_EX_CLOCK_SPEED_HIGHEST,
199*53ee8cc1Swenshuai.xi     E_HAL_MVD_EX_CLOCK_SPEED_HIGH,
200*53ee8cc1Swenshuai.xi     E_HAL_MVD_EX_CLOCK_SPEED_MEDIUM,
201*53ee8cc1Swenshuai.xi     E_HAL_MVD_EX_CLOCK_SPEED_LOW,
202*53ee8cc1Swenshuai.xi     E_HAL_MVD_EX_CLOCK_SPEED_LOWEST,
203*53ee8cc1Swenshuai.xi     E_HAL_MVD_EX_CLOCK_SPEED_DEFAULT,
204*53ee8cc1Swenshuai.xi } HAL_MVD_EX_ClockSpeed;
205*53ee8cc1Swenshuai.xi 
206*53ee8cc1Swenshuai.xi typedef struct
207*53ee8cc1Swenshuai.xi {
208*53ee8cc1Swenshuai.xi     HAL_MVD_StreamId eStreamId;
209*53ee8cc1Swenshuai.xi     MS_BOOL bUsed;
210*53ee8cc1Swenshuai.xi } HAL_MVD_Stream;
211*53ee8cc1Swenshuai.xi 
212*53ee8cc1Swenshuai.xi typedef struct
213*53ee8cc1Swenshuai.xi {
214*53ee8cc1Swenshuai.xi     MS_BOOL bHWBufferReMapping;
215*53ee8cc1Swenshuai.xi     MS_U32 bHWReMappingPaddingAddr;
216*53ee8cc1Swenshuai.xi } HAL_MVD_Pre_Ctrl;
217*53ee8cc1Swenshuai.xi 
218*53ee8cc1Swenshuai.xi //-------------------------------------------------------------------------------------------------
219*53ee8cc1Swenshuai.xi //  Function and Variable
220*53ee8cc1Swenshuai.xi //-------------------------------------------------------------------------------------------------
221*53ee8cc1Swenshuai.xi HAL_MVD_StreamId HAL_MVD_GetFreeStream(HAL_MVD_StreamType eStreamType);
222*53ee8cc1Swenshuai.xi MS_U8 HAL_MVD_GetCaps(void);
223*53ee8cc1Swenshuai.xi MS_BOOL HAL_MVD_GetFrmRateIsSupported(MS_U16 u16HSize, MS_U16 u16VSize, MS_U32 u32FrmRate);
224*53ee8cc1Swenshuai.xi MS_U32 HAL_MVD_GetDrvFwVer(void);
225*53ee8cc1Swenshuai.xi void HAL_MVD_MemGetMap(MS_U8 u8Idx, MS_U8 u8type, MS_VIRT* pu32addr, MS_VIRT* pu32len);
226*53ee8cc1Swenshuai.xi MS_U32 HAL_MVD_MemRead4Byte(MS_VIRT u32Address);
227*53ee8cc1Swenshuai.xi MS_U16 HAL_MVD_MemRead2Byte(MS_VIRT u32Address);
228*53ee8cc1Swenshuai.xi MS_U8 HAL_MVD_MemReadByte(MS_VIRT u32Address);
229*53ee8cc1Swenshuai.xi MS_BOOL HAL_MVD_MemWrite4Byte(MS_VIRT u32Address, MS_U32 u32Value);
230*53ee8cc1Swenshuai.xi MS_BOOL HAL_MVD_MemWrite2Byte(MS_VIRT u32Address, MS_U16 u16Value);
231*53ee8cc1Swenshuai.xi MS_BOOL HAL_MVD_MemWriteByte(MS_VIRT u32Address, MS_U8 u8Value);
232*53ee8cc1Swenshuai.xi void HAL_MVD_SetReqMask(MS_BOOL bEnMask);
233*53ee8cc1Swenshuai.xi MS_VIRT HAL_MVD_GetMiu1BaseAdd(void);
234*53ee8cc1Swenshuai.xi MS_BOOL HAL_MVD_GetFWSelMiu1(void);
235*53ee8cc1Swenshuai.xi 
236*53ee8cc1Swenshuai.xi MS_PHY  HAL_MVD_PA2NonCacheSeg(MS_PHY u32PhyAddr);
237*53ee8cc1Swenshuai.xi MS_U32      HAL_MVD_GetTime(void);
238*53ee8cc1Swenshuai.xi void        HAL_MVD_Delayms(MS_U32 u32msecs);
239*53ee8cc1Swenshuai.xi void        HAL_MVD_CPU_Sync(void);
240*53ee8cc1Swenshuai.xi void        HAL_MVD_FlushMemory(void);
241*53ee8cc1Swenshuai.xi void        HAL_MVD_ReadMemory(void);
242*53ee8cc1Swenshuai.xi MS_VIRT      HAL_MVD_GetMemOffset(MS_PHY u32PhyAdd);
243*53ee8cc1Swenshuai.xi 
244*53ee8cc1Swenshuai.xi MS_BOOL HAL_MVD_Init(MS_U8 u8HalIdx,MVD_CodecType eCodecType, MS_U32 u32VpuSid);
245*53ee8cc1Swenshuai.xi MS_BOOL HAL_MVD_RstHW(void);
246*53ee8cc1Swenshuai.xi MS_BOOL HAL_MVD_ReleaseFW(void);
247*53ee8cc1Swenshuai.xi MS_BOOL HAL_MVD_LoadCode(MS_U8 u8Idx);
248*53ee8cc1Swenshuai.xi 
249*53ee8cc1Swenshuai.xi void HAL_MVD_PowerCtrl(MS_BOOL bOn);
250*53ee8cc1Swenshuai.xi MS_BOOL HAL_MVD_TimeOut(MS_U8 u8Idx);
251*53ee8cc1Swenshuai.xi MS_BOOL HAL_MVD_MVDCommand(MS_U8 u8cmd, MVD_CmdArg *pstCmdArg);
252*53ee8cc1Swenshuai.xi MS_BOOL HAL_MVD_InitHW(void);
253*53ee8cc1Swenshuai.xi MS_BOOL HAL_MVD_InitFW(MS_U32 u32VpuSid);
254*53ee8cc1Swenshuai.xi MS_U32 HAL_MVD_GetFWVer(MS_U32 u32VpuSid);
255*53ee8cc1Swenshuai.xi MS_BOOL HAL_MVD_SoftRstHW(void);
256*53ee8cc1Swenshuai.xi void HAL_MVD_ClearIRQ(void);
257*53ee8cc1Swenshuai.xi MS_BOOL HAL_MVD_CreateTask(MS_U8 u8Idx, HAL_VPU_StreamId eVpuId);
258*53ee8cc1Swenshuai.xi MS_BOOL HAL_MVD_DeleteTask(MS_U8 u8Idx, HAL_VPU_StreamId eVpuId);
259*53ee8cc1Swenshuai.xi 
260*53ee8cc1Swenshuai.xi MS_BOOL HAL_MVD_SetSpeed(MS_U8 u8Idx, MVD_SpeedType eSpeedType, MS_U8 u8Multiple);
261*53ee8cc1Swenshuai.xi void HAL_MVD_SetFrameBuffAddr(MS_U8 u8Idx, MS_VIRT u32addr, MS_U8 u8fbMode);
262*53ee8cc1Swenshuai.xi MS_BOOL HAL_MVD_StepDisp(MS_U8 u8Idx);
263*53ee8cc1Swenshuai.xi MS_BOOL HAL_MVD_EnableLastFrameShow(MS_U8 u8Idx, MS_BOOL bEnable);
264*53ee8cc1Swenshuai.xi MS_BOOL HAL_MVD_SeekToPTS(MS_U8 u8Idx, MS_U32 u32Pts);
265*53ee8cc1Swenshuai.xi MS_BOOL HAL_MVD_SkipToPTS(MS_U8 u8Idx, MS_U32 u32Pts);
266*53ee8cc1Swenshuai.xi MS_BOOL HAL_MVD_SetFileModeAVSync(MS_U8 u8Idx, MVD_TIMESTAMP_TYPE eSyncMode);
267*53ee8cc1Swenshuai.xi MS_BOOL HAL_MVD_SetVirtualBox(MS_U8 u8Idx, MS_U16 u16Width, MS_U16 u16Height);
268*53ee8cc1Swenshuai.xi MS_BOOL HAL_MVD_SetBlueScreen(MS_U8 u8Idx, MS_BOOL bEn);
269*53ee8cc1Swenshuai.xi MS_BOOL HAL_MVD_Resume(MS_U8 u8Idx);
270*53ee8cc1Swenshuai.xi MS_BOOL HAL_MVD_Play(MS_U8 u8Idx);
271*53ee8cc1Swenshuai.xi MS_BOOL HAL_MVD_SetFreezeDisp(MS_U8 u8Idx, MS_BOOL bEn);
272*53ee8cc1Swenshuai.xi 
273*53ee8cc1Swenshuai.xi MS_BOOL HAL_MVD_GetHasInt(MS_U8 u8Idx);
274*53ee8cc1Swenshuai.xi MS_U32 HAL_MVD_GetIntState(MS_U8 u8Idx);
275*53ee8cc1Swenshuai.xi MS_U8 HAL_MVD_GetAVSyncStatus(MS_U8 u8Idx);
276*53ee8cc1Swenshuai.xi MS_BOOL HAL_MVD_SetMStreamerMode(MS_U8 u8Idx, MS_U8 u8Mode);
277*53ee8cc1Swenshuai.xi MS_BOOL HAL_MVD_IsMStreamerMode(MS_U8 u8Idx);
278*53ee8cc1Swenshuai.xi MS_BOOL HAL_MVD_SetMcuMode(MS_U8 u8Idx, MS_U8 u8Mode);
279*53ee8cc1Swenshuai.xi MS_BOOL HAL_MVD_IsMcuMode(MS_U8 u8Idx);
280*53ee8cc1Swenshuai.xi MS_BOOL HAL_MVD_FrameOpt(MS_U8 u8Idx, MS_U8 u8FrmIdx, MVD_FrmOpt eOpt);
281*53ee8cc1Swenshuai.xi MS_BOOL HAL_MVD_UpdatePts(MS_U8 u8Idx);
282*53ee8cc1Swenshuai.xi MS_BOOL HAL_MVD_FrameCapture(MS_U8 u8Idx, MS_U8 u8FrmIdx, MS_BOOL bEnable);
283*53ee8cc1Swenshuai.xi 
284*53ee8cc1Swenshuai.xi MS_VIRT HAL_MVD_SetHWBuffer(MS_U8 u8Idx, MS_VIRT u32Add);
285*53ee8cc1Swenshuai.xi void HAL_MVD_SetFrameBuffNum(MS_U8 u8Idx, MS_U8 u8FrmNum,MS_U32 u32FBUsedSize);
286*53ee8cc1Swenshuai.xi 
287*53ee8cc1Swenshuai.xi MS_U32 HAL_MVD_GetBitsRate(MS_U8 u8Idx);
288*53ee8cc1Swenshuai.xi MS_U8 HAL_MVD_GetVideoRange(MS_U8 u8Idx);
289*53ee8cc1Swenshuai.xi MS_BOOL HAL_MVD_GetLowDelayFlag(MS_U8 u8Idx);
290*53ee8cc1Swenshuai.xi MS_BOOL HAL_MVD_GetIs32PullDown(MS_U8 u8Idx);
291*53ee8cc1Swenshuai.xi MS_BOOL HAL_MVD_GetIsDynScalingEnabled(MS_U8 u8Idx);
292*53ee8cc1Swenshuai.xi MS_BOOL HAL_MVD_Is1stFrmRdy(MS_U8 u8Idx);
293*53ee8cc1Swenshuai.xi 
294*53ee8cc1Swenshuai.xi MS_U32 HAL_MVD_GetPicCounter(MS_U8 u8Idx);
295*53ee8cc1Swenshuai.xi MS_U32 HAL_MVD_GetSkipPicCounter(MS_U8 u8Idx);
296*53ee8cc1Swenshuai.xi MVD_PicType HAL_MVD_GetPicType(MS_U8 u8Idx);
297*53ee8cc1Swenshuai.xi MS_S32 HAL_MVD_GetPtsStcDiff(MS_U8 u8Idx);
298*53ee8cc1Swenshuai.xi MS_U8 HAL_MVD_GetDecodedFrameIdx(MS_U8 u8Idx);
299*53ee8cc1Swenshuai.xi MS_U32 HAL_MVD_GetVldErrCount(MS_U8 u8Idx);
300*53ee8cc1Swenshuai.xi MS_BOOL HAL_MVD_GetValidStreamFlag(MS_U8 u8Idx);
301*53ee8cc1Swenshuai.xi MS_U8 HAL_MVD_GetIsIPicFound(MS_U8 u8Idx);
302*53ee8cc1Swenshuai.xi MS_U32 HAL_MVD_GetNextPTS(MS_U8 u8Idx);
303*53ee8cc1Swenshuai.xi MS_U32 HAL_MVD_GetChromaFormat(MS_U8 u8Idx);
304*53ee8cc1Swenshuai.xi MS_U32 HAL_MVD_GetGOPCount(MS_U8 u8Idx);
305*53ee8cc1Swenshuai.xi MS_U8 HAL_MVD_GetColorFormat(MS_U8 u8Idx);
306*53ee8cc1Swenshuai.xi MS_U8 HAL_MVD_GetMatrixCoef(MS_U8 u8Idx);
307*53ee8cc1Swenshuai.xi MS_BOOL HAL_MVD_IsStepDispDone(MS_U8 u8Idx);
308*53ee8cc1Swenshuai.xi MS_BOOL HAL_MVD_IsStep2PtsDone(MS_U8 u8Idx);
309*53ee8cc1Swenshuai.xi MS_U32 HAL_MVD_GetPayloadLen(MS_U8 u8Idx);
310*53ee8cc1Swenshuai.xi MS_BOOL HAL_MVD_GotFileEndPattern(MS_U8 u8Idx);
311*53ee8cc1Swenshuai.xi MS_BOOL HAL_MVD_IsCmdFinished(MS_U8 u8Idx, MVD_HANDSHAKE_CMD eCmd);
312*53ee8cc1Swenshuai.xi MS_BOOL HAL_MVD_ClearCmdFinished(MS_U8 u8Idx, MVD_HANDSHAKE_CMD eCmd);
313*53ee8cc1Swenshuai.xi MS_BOOL HAL_MVD_GetTimeCode(MS_U8 u8Idx, MVD_FrmInfoType eType, MVD_TimeCode* pInfo);
314*53ee8cc1Swenshuai.xi MS_U32 HAL_MVD_GetDispCnt(MS_U8 u8Idx);
315*53ee8cc1Swenshuai.xi MS_U32 HAL_MVD_GetXcLowDelayIntState(MS_U8 u8Idx);
316*53ee8cc1Swenshuai.xi void HAL_MVD_GetErrInfo(MS_U8 u8Idx, MVD_ErrCode *errCode, MVD_ErrStatus *errStatus);
317*53ee8cc1Swenshuai.xi 
318*53ee8cc1Swenshuai.xi MS_BOOL HAL_MVD_SetInternalBuffAddr(MS_U8 u8Idx, MS_VIRT u32start, MS_U32 u32len);
319*53ee8cc1Swenshuai.xi void HAL_MVD_InitVar(MS_U8 u8Idx);
320*53ee8cc1Swenshuai.xi MS_BOOL HAL_MVD_CheckFrmBuffSize(MS_U8 u8Idx, MVD_FWCfg* fwCfg, MVD_MEMCfg* memCfg);
321*53ee8cc1Swenshuai.xi MS_BOOL HAL_MVD_SetCodecInfo(MS_U8 u8Idx, MVD_CodecType u8CodecType, MVD_SrcMode u8BSProviderMode, MS_U8 bDisablePESParsing);
322*53ee8cc1Swenshuai.xi MS_BOOL HAL_MVD_Exit(MS_U8 u8Idx);
323*53ee8cc1Swenshuai.xi 
324*53ee8cc1Swenshuai.xi void HAL_MVD_GetFrameInfo(MS_U8 u8Idx, MVD_FrameInfo *pinfo);
325*53ee8cc1Swenshuai.xi void HAL_MVD_SetFrameInfo(MS_U8 u8Idx, MVD_FrameInfo *pinfo );
326*53ee8cc1Swenshuai.xi MS_VIRT MVD_GetSlqTblESReadPtr(MS_U8 u8Idx);
327*53ee8cc1Swenshuai.xi MS_VIRT MVD_GetSlqTblESWritePtr(MS_U8 u8Idx);
328*53ee8cc1Swenshuai.xi MS_U32 HAL_MVD_GetQueueVacancy(MS_U8 u8Idx, MS_BOOL bCached);
329*53ee8cc1Swenshuai.xi E_MVD_Result HAL_MVD_PushQueue(MS_U8 u8Idx, MVD_PacketInfo* pInfo);
330*53ee8cc1Swenshuai.xi E_MVD_Result HAL_MVD_FlushQueue(MS_U8 u8Idx);
331*53ee8cc1Swenshuai.xi MS_BOOL HAL_MVD_IsAllBufferEmpty(MS_U8 u8Idx);
332*53ee8cc1Swenshuai.xi MS_BOOL HAL_MVD_SLQTblInit(MS_U8 u8Idx);
333*53ee8cc1Swenshuai.xi 
334*53ee8cc1Swenshuai.xi E_MVD_Result HAL_MVD_IsDispFinish(MS_U8 u8Idx);
335*53ee8cc1Swenshuai.xi E_MVD_Result HAL_MVD_SetDynScalingParam(MS_U8 u8Idx, MS_PHY u32StAddr, MS_VIRT u32Size);
336*53ee8cc1Swenshuai.xi void HAL_MVD_GetExtDispInfo(MS_U8 u8Idx, MVD_ExtDispInfo* pInfo);
337*53ee8cc1Swenshuai.xi E_MVD_Result HAL_MVD_GetFrmInfo(MS_U8 u8Idx, MVD_FrmInfoType eType, MVD_FrmInfo* pInfo);
338*53ee8cc1Swenshuai.xi 
339*53ee8cc1Swenshuai.xi MS_BOOL HAL_MVD_GetUsrDataIsAvailable(MS_U8 u8Idx);
340*53ee8cc1Swenshuai.xi MS_BOOL HAL_MVD_GetUsrDataInfo(MS_U8 u8Idx, MVD_UsrDataInfo* pUsrInfo);
341*53ee8cc1Swenshuai.xi 
342*53ee8cc1Swenshuai.xi MS_BOOL HAL_MVD_DecodeIFrame(MS_U8 u8Idx, MS_PHY u32FrameBufAddr, MS_PHY u32StreamBufAddr, MS_PHY u32StreamBufEndAddr );
343*53ee8cc1Swenshuai.xi 
344*53ee8cc1Swenshuai.xi MS_U8 HAL_MVD_GetActiveFormat(MS_U8 u8Idx);
345*53ee8cc1Swenshuai.xi MS_BOOL HAL_MVD_EnableAVSync(MS_U8 u8Idx, MS_BOOL bEnable);
346*53ee8cc1Swenshuai.xi MS_BOOL HAL_MVD_SetAVSyncDelay(MS_U8 u8Idx, MS_U32 u32Delay);
347*53ee8cc1Swenshuai.xi MS_BOOL HAL_MVD_SetAVSyncThreshold(MS_U8 u8Idx, MS_U32 u32Th);
348*53ee8cc1Swenshuai.xi MS_BOOL HAL_MVD_SetAVSyncFreerunThreshold(MS_U8 u8Idx, MS_U32 u32Th);
349*53ee8cc1Swenshuai.xi MS_BOOL HAL_MVD_ChangeAVsync(MS_U8 u8Idx, MS_BOOL bEnable, MS_U16 u16PTS);
350*53ee8cc1Swenshuai.xi 
351*53ee8cc1Swenshuai.xi MS_BOOL HAL_MVD_GetIsSyncRep(MS_U8 u8Idx);
352*53ee8cc1Swenshuai.xi MS_BOOL HAL_MVD_GetIsSyncSkip(MS_U8 u8Idx);
353*53ee8cc1Swenshuai.xi MS_U8 HAL_MVD_GetIsSyncReach(MS_U8 u8Idx);
354*53ee8cc1Swenshuai.xi MS_U8 HAL_MVD_GetDispRdy(MS_U8 u8Idx);
355*53ee8cc1Swenshuai.xi 
356*53ee8cc1Swenshuai.xi MVD_DecStat HAL_MVD_GetDecodeStatus(MS_U8 u8Idx);
357*53ee8cc1Swenshuai.xi MS_U32 HAL_MVD_GetParserByteCnt(MS_U8 u8Idx);
358*53ee8cc1Swenshuai.xi 
359*53ee8cc1Swenshuai.xi MS_BOOL MVD_IntHasUsrDataDisp(MS_U32 u32IntStat);
360*53ee8cc1Swenshuai.xi MS_BOOL MVD_IntHasUsrData(MS_U32 u32IntStat);
361*53ee8cc1Swenshuai.xi MS_BOOL MVD_IntIsDispRdy(MS_U32 u32IntStat);
362*53ee8cc1Swenshuai.xi MS_BOOL MVD_IntHasSeqHdr(MS_U32 u32IntStat);
363*53ee8cc1Swenshuai.xi MS_BOOL MVD_IntHas1stFrame(MS_U32 u32IntStat);
364*53ee8cc1Swenshuai.xi MS_BOOL MVD_IntHasXcLowDelay(MS_U32 u32IntStat);
365*53ee8cc1Swenshuai.xi MS_BOOL MVD_IntHasDecodeIframe(MS_U32 u32IntStat);
366*53ee8cc1Swenshuai.xi MS_BOOL MVD_IntVSyncInt(MS_U32 u32IntStat);
367*53ee8cc1Swenshuai.xi MS_BOOL MVD_IntDecOneFrmInt(MS_U32 u32IntStat);
368*53ee8cc1Swenshuai.xi MS_BOOL HAL_MVD_EnableInt(MS_U8 u8Idx, MS_U32 bEn);
369*53ee8cc1Swenshuai.xi MS_BOOL MVD_IntHasESDataInvalid(MS_U32 u32IntStat);
370*53ee8cc1Swenshuai.xi MS_BOOL MVD_IntHasDecodeErr(MS_U32 u32IntStat);
371*53ee8cc1Swenshuai.xi E_MVD_Result HAL_MVD_EnableDispOneField(MS_U8 u8Idx, MS_BOOL bEn);
372*53ee8cc1Swenshuai.xi E_MVD_Result HAL_MVD_SetFdMaskDelayCount(MS_U8 u8Idx, MS_U16 u16Cnt);
373*53ee8cc1Swenshuai.xi E_MVD_Result HAL_MVD_SetOutputFRCMode(MS_U8 u8Idx, MS_U8 u8FrameRate, MS_U8 u8Interlace);
374*53ee8cc1Swenshuai.xi E_MVD_Result HAL_MVD_SetFRCDropType(MS_U8 u8Idx, MS_U8 u8DropType);
375*53ee8cc1Swenshuai.xi E_MVD_Result HAL_MVD_SetDisableSeqChange(MS_U8 u8Idx, MS_BOOL bEnable);
376*53ee8cc1Swenshuai.xi MS_BOOL HAL_MVD_DropErrorFrame(MS_U8 u8Idx, MS_BOOL bDrop);
377*53ee8cc1Swenshuai.xi 
378*53ee8cc1Swenshuai.xi void HAL_MVD_SetPTSBase(MS_U8 u8Idx, MS_U32 u32pts);
379*53ee8cc1Swenshuai.xi MS_U32 HAL_MVD_GetPTS(MS_U8 u8Idx);
380*53ee8cc1Swenshuai.xi MS_U64 HAL_MVD_GetU64PTS(MS_U8 u8Idx);
381*53ee8cc1Swenshuai.xi MS_BOOL HAL_MVD_SkipData(MS_U8 u8Idx);
382*53ee8cc1Swenshuai.xi MS_BOOL HAL_MVD_DispRepeatField(MS_U8 u8Idx, MS_BOOL bEnable);
383*53ee8cc1Swenshuai.xi MS_BOOL HAL_MVD_PauseDisp(MS_U8 u8Idx);
384*53ee8cc1Swenshuai.xi MS_BOOL HAL_MVD_FlushDisplayBuf(MS_U8 u8Idx);
385*53ee8cc1Swenshuai.xi MS_VIRT HAL_MVD_GetTsFileESReadPtr(MS_U8 u8Idx);
386*53ee8cc1Swenshuai.xi MS_VIRT HAL_MVD_GetTsFileESWritePtr(MS_U8 u8Idx);
387*53ee8cc1Swenshuai.xi void HAL_MVD_SetDivXCfg(MS_U8 u8Idx, MS_U8 u8MvAdjust, MS_U8 u8IdctSel);
388*53ee8cc1Swenshuai.xi 
389*53ee8cc1Swenshuai.xi MS_VIRT HAL_MVD_GetSLQReadPtr(MS_U8 u8Idx);
390*53ee8cc1Swenshuai.xi MS_BOOL HAL_MVD_SetSLQWritePtr(MS_U8 u8Idx, MS_BOOL bCheckData);
391*53ee8cc1Swenshuai.xi void HAL_MVD_SetOverflowTH(MS_U8 u8Idx, MS_U32 u32Threshold);
392*53ee8cc1Swenshuai.xi void HAL_MVD_SetUnderflowTH(MS_U8 u8Idx, MS_U32 u32Threshold);
393*53ee8cc1Swenshuai.xi MS_BOOL HAL_MVD_Stop(MS_U8 u8Idx);
394*53ee8cc1Swenshuai.xi MS_U8 HAL_MVD_GetLastCmd(MS_U8 u8Idx);
395*53ee8cc1Swenshuai.xi MS_BOOL HAL_MVD_SkipToIFrame(MS_U8 u8Idx);
396*53ee8cc1Swenshuai.xi MS_BOOL HAL_MVD_DispCtrl(MS_U8 u8Idx, MS_BOOL bDecOrder, MS_BOOL bDropErr, MS_BOOL bDropDisp, MVD_FrcMode eFrcMode);
397*53ee8cc1Swenshuai.xi MS_BOOL HAL_MVD_StepDecode(MS_U8 u8Idx);
398*53ee8cc1Swenshuai.xi MS_BOOL HAL_MVD_TrickPlay(MS_U8 u8Idx, MVD_TrickDec trickDec, MS_U8 u8DispDuration);
399*53ee8cc1Swenshuai.xi MS_BOOL HAL_MVD_GenPattern(MS_U8 u8Idx, MVD_PatternType ePattern, MS_PHY u32PAddr, MS_U32* pu32Size);
400*53ee8cc1Swenshuai.xi 
401*53ee8cc1Swenshuai.xi MVD_CodecType HAL_MVD_GetCodecType(MS_U8 u8Idx);
402*53ee8cc1Swenshuai.xi MVD_SrcMode HAL_MVD_GetSrcMode(MS_U8 u8Idx);
403*53ee8cc1Swenshuai.xi MS_BOOL HAL_MVD_SetFWCfg(MS_U8 u8Idx, MVD_FWCfg* pFWCfg);
404*53ee8cc1Swenshuai.xi MS_U8 HAL_MVD_GetFBMode(MS_U8 u8Idx);
405*53ee8cc1Swenshuai.xi MVD_CtrlCfg* HAL_MVD_GetCtrlCfg(MS_U8 u8Idx);
406*53ee8cc1Swenshuai.xi MS_BOOL HAL_MVD_SetMEMCfg(MS_U8 u8Idx, MVD_MEMCfg* pMEMCfg);
407*53ee8cc1Swenshuai.xi MVD_MEMCfg* HAL_MVD_GetMEMCfg(MS_U8 u8Idx);
408*53ee8cc1Swenshuai.xi 
409*53ee8cc1Swenshuai.xi E_MVD_Result HAL_MVD_DbgGetData(MS_VIRT u32Addr, MS_U32* u32Data);
410*53ee8cc1Swenshuai.xi void HAL_MVD_DbgDumpBits(MS_U8 u8Idx, MS_PHY u32base, MS_U32 u32size);
411*53ee8cc1Swenshuai.xi void HAL_MVD_DbgDump(MS_U8 u8Idx);
412*53ee8cc1Swenshuai.xi void HAL_MVD_SetDbgLevel(MS_U8 level);
413*53ee8cc1Swenshuai.xi MS_U32 HAL_MVD_CPUGetPC(void);
414*53ee8cc1Swenshuai.xi MS_U8 HAL_MVD_SidToIdx(HAL_MVD_StreamId eSID);
415*53ee8cc1Swenshuai.xi MS_BOOL HAL_MVD_ReleaseFdMask(MS_U8 u8Idx, MS_BOOL bRls);
416*53ee8cc1Swenshuai.xi MS_BOOL HAL_MVD_ParserRstDone(MS_U8 u8Idx, MS_BOOL bEnable);
417*53ee8cc1Swenshuai.xi MS_BOOL HAL_MVD_FlushPTSBuf(MS_U8 u8Idx,MS_BOOL bEnable);
418*53ee8cc1Swenshuai.xi MS_BOOL HAL_MVD_ShowDecodeOrder(MS_U8 u8Idx, MS_U8 u8Mode);
419*53ee8cc1Swenshuai.xi MS_U32 HAL_MVD_GetSLQNum(MS_U8 u8Idx);
420*53ee8cc1Swenshuai.xi MS_U32 HAL_MVD_GetDispQNum(MS_U8 u8Idx);
421*53ee8cc1Swenshuai.xi MS_BOOL HAL_MVD_SetAutoMute(MS_U8 u8Idx, MS_BOOL bEn);
422*53ee8cc1Swenshuai.xi MS_BOOL HAL_MVD_Init_Share_Mem(void);
423*53ee8cc1Swenshuai.xi MS_BOOL HAL_MVD_SetVSizeAlign(MS_U8 u8Idx, MS_BOOL bEn);
424*53ee8cc1Swenshuai.xi E_MVD_Result HAL_MVD_GetCrcValue(MS_U8 u8Idx, MVD_CrcIn *pCrcIn, MVD_CrcOut *pCrcOut);
425*53ee8cc1Swenshuai.xi 
426*53ee8cc1Swenshuai.xi MS_BOOL HAL_MVD_SuspendDynamicScale(MS_U8 u8Idx, MS_BOOL bEn);
427*53ee8cc1Swenshuai.xi MS_U8 HAL_MVD_GetSuspendDynamicScale(MS_U8 u8Idx);
428*53ee8cc1Swenshuai.xi MS_U32 HAL_MVD_GetDivxVer(MS_U8 u8Idx);
429*53ee8cc1Swenshuai.xi MS_BOOL HAL_MVD_SetIdctMode(MS_U8 u8Idx, MS_U8 u8Mode);
430*53ee8cc1Swenshuai.xi E_MVD_Result HAL_MVD_EX_SetClockSpeed(HAL_MVD_EX_ClockSpeed eClockSpeed);
431*53ee8cc1Swenshuai.xi MS_BOOL HAL_MVD_GetIsAVSyncOn(MS_U8 u8Idx);
432*53ee8cc1Swenshuai.xi MS_BOOL HAL_MVD_ShowFirstFrameDirect(MS_U8 u8Idx, MS_U8 bEnable);
433*53ee8cc1Swenshuai.xi E_MVD_Result HAL_MVD_SetXCLowDelayPara(MS_U8 u8Idx,MS_U32 u32Para);
434*53ee8cc1Swenshuai.xi MS_BOOL HAL_MVD_EnableDynamicScale(MS_U8 u8Idx,MS_U8 u8NewDS);
435*53ee8cc1Swenshuai.xi MS_U8 HAL_MVD_GetESBufferStatus(MS_U8 u8Idx);
436*53ee8cc1Swenshuai.xi MS_BOOL HAL_MVD_Field_Polarity_Display_One_field(MS_U8 u8Idx, MS_BOOL bEn,MS_U8 top_bottom);
437*53ee8cc1Swenshuai.xi MS_BOOL HAL_MVD_SetExternalDSBuff(MS_U8 u8Idx, MS_VIRT u32VPUAddr, MS_VIRT u32DrvAddr);
438*53ee8cc1Swenshuai.xi MS_BOOL HAL_MVD_SetShareMemoryBase(MS_U8 u8Idx, MS_U32 u32base, MS_BOOL bsel);
439*53ee8cc1Swenshuai.xi MS_BOOL HAL_MVD_GetShareMemoryOffset(MS_U8 u8Idx, MS_U32 *u32base);
440*53ee8cc1Swenshuai.xi MS_BOOL HAL_MVD_Support2ndMVOPInterface(void);
441*53ee8cc1Swenshuai.xi MS_BOOL HAL_MVD_SetExternal_CC_Buffer(MS_U8 u8Idx, MS_U32 u32base, MS_U8 u8size, MS_U8 cc_type);
442*53ee8cc1Swenshuai.xi MS_U32 HAL_MVD_GetVsyncBridgeAddr(MS_U8 u8Idx);
443*53ee8cc1Swenshuai.xi E_MVD_Result HAL_MVD_HWBuffer_ReMappingMode(MS_U8 u8Idx,MS_BOOL bEnable);
444*53ee8cc1Swenshuai.xi MS_BOOL HAL_MVD_SetPrebufferSize(MS_U8 u8Idx, MS_U32 size);
445*53ee8cc1Swenshuai.xi MS_U32 HAL_MVD_GetVsyncAddrOffset(void);
446*53ee8cc1Swenshuai.xi E_MVD_Result HAL_MVD_SetTimeIncPredictParam(MS_U8 u8Idx, MS_U32 u32time);
447*53ee8cc1Swenshuai.xi MS_BOOL HAL_MVD_SetDecodeTimeoutParam(MS_U8 u8Idx, MS_BOOL enable,MS_U32 u32timeout);
448*53ee8cc1Swenshuai.xi MS_BOOL HAL_MVD_SetSrcMode(MS_U8 u8Idx,MVD_SrcMode mode);
449*53ee8cc1Swenshuai.xi MS_BOOL _MVD_SetDynamicAllocateFB(MS_U8 u8Idx,MS_BOOL bEnable);
450*53ee8cc1Swenshuai.xi E_MVD_Result HAL_MVD_Set_Smooth_Rewind(MS_U8 u8Idx, MS_U8 btype);
451*53ee8cc1Swenshuai.xi E_MVD_Result HAL_MVD_IsAlive(MS_U8 u8Idx);
452*53ee8cc1Swenshuai.xi E_MVD_Result HAL_MVD_Set_Err_Tolerance(MS_U8 u8Idx, MS_U16 u16Para);
453*53ee8cc1Swenshuai.xi void HAL_MVD_EnableAutoInsertDummyPattern(MS_U8 u8Idx, MS_BOOL bEnable);
454*53ee8cc1Swenshuai.xi void HAL_MVD_Drop_One_PTS(MS_U8 u8Idx);
455*53ee8cc1Swenshuai.xi E_MVD_Result HAL_MVD_PVR_Seamless_mode(MS_U8 u8Idx, MS_U8 u8Arg);
456*53ee8cc1Swenshuai.xi E_MVD_Result HAL_MVD_SetDisplayFinishMode(MS_U8 u8Idx, MS_U8 u8Mode);
457*53ee8cc1Swenshuai.xi 
458*53ee8cc1Swenshuai.xi void HAL_MVD_ResetHandShake(MS_U8 u8Idx, MVD_HANDSHAKE_CMD cmd);
459*53ee8cc1Swenshuai.xi #endif
460*53ee8cc1Swenshuai.xi 
461*53ee8cc1Swenshuai.xi #endif // _DEV_MVD_H_
462