| #ifndef CSR_FRAMEWORK_EXT_TYPES_H__ |
| #define CSR_FRAMEWORK_EXT_TYPES_H__ |
| /***************************************************************************** |
| |
| (c) Cambridge Silicon Radio Limited 2010 |
| All rights reserved and confidential information of CSR |
| |
| Refer to LICENSE.txt included with this source for details |
| on the license terms. |
| |
| *****************************************************************************/ |
| |
| #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 |