3 /*****************************************************************************
5 (c) Cambridge Silicon Radio Limited 2010
6 All rights reserved and confidential information of CSR
8 Refer to LICENSE.txt included with this source for details
11 *****************************************************************************/
17 #include <linux/kernel.h>
18 #include <linux/types.h>
19 #include "csr_macro.h"
21 /*------------------------------------------------------------------*/
23 /*------------------------------------------------------------------*/
24 void CsrUInt16ToHex(u16 number, char *str);
26 /*------------------------------------------------------------------*/
27 /* Standard C Library functions */
28 /*------------------------------------------------------------------*/
29 #ifdef CSR_USE_STDC_LIB
30 #define CsrMemCpy memcpy
31 #define CsrStrLen strlen
32 #else /* !CSR_USE_STDC_LIB */
33 void *CsrMemCpy(void *dest, const void *src, size_t count);
34 size_t CsrStrLen(const char *string);
35 #endif /* !CSR_USE_STDC_LIB */
36 s32 CsrVsnprintf(char *string, size_t count, const char *format, va_list args);
38 /*------------------------------------------------------------------*/
39 /* Non-standard utility functions */
40 /*------------------------------------------------------------------*/
41 char *CsrStrDup(const char *string);
43 #define CsrOffsetOf(st, m) ((size_t) & ((st *) 0)->m)