xref: /utopia/UTPA2-700.0.x/modules/mvop/drv/mvop/osalMVOP.h (revision 53ee8cc121a030b8d368113ac3e966b4705770ef)
1 ////////////////////////////////////////////////////////////////////////////////
2 //
3 // Copyright (c) 2008-2009 MStar Semiconductor, Inc.
4 // All rights reserved.
5 //
6 // Unless otherwise stipulated in writing, any and all information contained
7 // herein regardless in any format shall remain the sole proprietary of
8 // MStar Semiconductor Inc. and be kept in strict confidence
9 // ("MStar Confidential Information") by the recipient.
10 // Any unauthorized act including without limitation unauthorized disclosure,
11 // copying, use, reproduction, sale, distribution, modification, disassembling,
12 // reverse engineering and compiling of the contents of MStar Confidential
13 // Information is unlawful and strictly prohibited. MStar hereby reserves the
14 // rights to any and all damages, losses, costs and expenses resulting therefrom.
15 //
16 ////////////////////////////////////////////////////////////////////////////////
17 
18 ////////////////////////////////////////////////////////////////////////////////////////////////////
19 // file   osalHVD.h
20 // @brief  HVD Driver Interface
21 // @author MStar Semiconductor,Inc.
22 ////////////////////////////////////////////////////////////////////////////////////////////////////
23 
24 ////////////////////////////////////////////
25 // Modify from osalHVD_EX.h BY Apple.Chen //
26 ////////////////////////////////////////////
27 
28 #ifndef __OSAL_MVOP_H__
29 #define __OSAL_MVOP_H__
30 
31 #include "MsOS.h"
32 
33 //#if defined( MSOS_TYPE_LINUX) || defined( MSOS_TYPE_ECOS) || defined( MSOS_TYPE_NOS)
34 //    #define HVD_ENABLE_MSOS_SYSTEM_CALL     1
35 //#endif
36 
37 
38 //#define HVD_ISR_VECTOR          E_INT_IRQ_SVD_HVD
39 #define OSAL_MVOP_MUTEX_TIMEOUT  MSOS_WAIT_FOREVER
40 
41 
42 
43 MS_S32 OSAL_MVOP_MutexCreate(MS_U8* pu8Name);
44 MS_BOOL OSAL_MVOP_MutexObtain(MS_S32 s32MutexId, MS_U32 u32Timeout);
45 MS_BOOL OSAL_MVOP_MutexRelease(MS_S32 s32MutexId);
46 MS_BOOL OSAL_MVOP_MutexDelete(MS_S32 s32MutexId);
47 
48 //MS_BOOL OSAL_HVD_ISR_Attach(void* pfnISRCB);
49 //MS_BOOL OSAL_HVD_ISR_Detach(void);
50 //MS_BOOL OSAL_HVD_ISR_Enable(void);
51 //MS_BOOL OSAL_HVD_ISR_Disable(void);
52 
53 #endif // #ifndef __OSAL_HVD_H__
54 
55