123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990 |
- /*
- $License:
- Copyright (C) 2010 InvenSense Corporation, All Rights Reserved.
- This program is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 2 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
- $
- */
- /**
- * @defgroup
- * @brief
- *
- * @{
- * @file mlos-kernel.c
- * @brief
- *
- *
- */
- #include "mlos.h"
- #include <linux/delay.h>
- #include <linux/slab.h>
- void *MLOSMalloc(unsigned int numBytes)
- {
- return kmalloc(numBytes, GFP_KERNEL);
- }
- tMLError MLOSFree(void *ptr)
- {
- kfree(ptr);
- return ML_SUCCESS;
- }
- tMLError MLOSCreateMutex(HANDLE *mutex)
- {
- /* @todo implement if needed */
- return ML_ERROR_FEATURE_NOT_IMPLEMENTED;
- }
- tMLError MLOSLockMutex(HANDLE mutex)
- {
- /* @todo implement if needed */
- return ML_ERROR_FEATURE_NOT_IMPLEMENTED;
- }
- tMLError MLOSUnlockMutex(HANDLE mutex)
- {
- /* @todo implement if needed */
- return ML_ERROR_FEATURE_NOT_IMPLEMENTED;
- }
- tMLError MLOSDestroyMutex(HANDLE handle)
- {
- /* @todo implement if needed */
- return ML_ERROR_FEATURE_NOT_IMPLEMENTED;
- }
- FILE *MLOSFOpen(char *filename)
- {
- /* @todo implement if needed */
- return NULL;
- }
- void MLOSFClose(FILE *fp)
- {
- /* @todo implement if needed */
- }
- void MLOSSleep(int mSecs)
- {
- msleep(mSecs);
- }
- unsigned long MLOSGetTickCount(void)
- {
- /* @todo implement if needed */
- return ML_ERROR_FEATURE_NOT_IMPLEMENTED;
- }
|