2012-06-19 17:15:42 -06:00
|
|
|
#ifndef CSR_FRAMEWORK_EXT_TYPES_H__
|
|
|
|
#define CSR_FRAMEWORK_EXT_TYPES_H__
|
|
|
|
/*****************************************************************************
|
|
|
|
|
2012-10-16 01:47:50 -06:00
|
|
|
(c) Cambridge Silicon Radio Limited 2010
|
|
|
|
All rights reserved and confidential information of CSR
|
2012-06-19 17:15:42 -06:00
|
|
|
|
2012-10-16 01:47:50 -06:00
|
|
|
Refer to LICENSE.txt included with this source for details
|
|
|
|
on the license terms.
|
2012-06-19 17:15:42 -06:00
|
|
|
|
|
|
|
*****************************************************************************/
|
|
|
|
|
|
|
|
#ifdef __KERNEL__
|
|
|
|
#include <linux/kthread.h>
|
|
|
|
#include <linux/semaphore.h>
|
|
|
|
#else
|
|
|
|
#include <pthread.h>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef __KERNEL__
|
|
|
|
|
|
|
|
typedef struct semaphore CsrMutexHandle;
|
|
|
|
|
|
|
|
#else /* __KERNEL __ */
|
|
|
|
|
|
|
|
typedef pthread_mutex_t CsrMutexHandle;
|
|
|
|
|
|
|
|
#endif /* __KERNEL__ */
|
|
|
|
|
|
|
|
#endif
|