//////////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2008-2009 MStar Semiconductor, Inc. // All rights reserved. // // Unless otherwise stipulated in writing, any and all information contained // herein regardless in any format shall remain the sole proprietary of // MStar Semiconductor Inc. and be kept in strict confidence // ("MStar Confidential Information") by the recipient. // Any unauthorized act including without limitation unauthorized disclosure, // copying, use, reproduction, sale, distribution, modification, disassembling, // reverse engineering and compiling of the contents of MStar Confidential // Information is unlawful and strictly prohibited. MStar hereby reserves the // rights to any and all damages, losses, costs and expenses resulting therefrom. // //////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////// // file osalMVOP.c // @brief HVD Driver Interface // @author MStar Semiconductor,Inc. //////////////////////////////////////////////////////////////////////////////////////////////////// #include "MsCommon.h" #include "osalMVOP.h" // Mutex inline MS_S32 OSAL_MVOP_MutexCreate(MS_U8* pu8Name) { return MsOS_CreateMutex(E_MSOS_FIFO, (char *)pu8Name, MSOS_PROCESS_SHARED); } inline MS_BOOL OSAL_MVOP_MutexObtain(MS_S32 s32MutexId, MS_U32 u32Timeout) { return MsOS_ObtainMutex(s32MutexId, u32Timeout); } inline MS_BOOL OSAL_MVOP_MutexRelease(MS_S32 s32MutexId) { return MsOS_ReleaseMutex(s32MutexId); } inline MS_BOOL OSAL_MVOP_MutexDelete(MS_S32 s32MutexId) { return MsOS_DeleteMutex(s32MutexId); }