4 #include "sec_osal_light.h"
5 #include <mach/sec_osal.h>
14 typedef unsigned int uint32
;
15 typedef unsigned char uchar
;
17 /******************************************************************************
19 ******************************************************************************/
20 /* Debug message event */
21 #define DBG_EVT_NONE (0) /* No event */
22 #define DBG_EVT_CMD (1 << 0) /* SEC CMD related event */
23 #define DBG_EVT_FUNC (1 << 1) /* SEC function event */
24 #define DBG_EVT_INFO (1 << 2) /* SEC information event */
25 #define DBG_EVT_WRN (1 << 30) /* Warning event */
26 #define DBG_EVT_ERR (1 << 31) /* Error event */
27 #define DBG_EVT_ALL (0xffffffff)
29 #define DBG_EVT_MASK (DBG_EVT_ALL)
32 #define MSG(evt, fmt, args...) \
34 if ((DBG_EVT_##evt) & DBG_EVT_MASK) { \
35 printk(fmt, ##args); \
39 #define MSG(evt, fmt, args...) do{}while(0)
42 #define MSG_FUNC(mod) MSG(FUNC, "[%s] %s\n", mod, __FUNCTION__)
44 /******************************************************************************
46 ******************************************************************************/
47 extern void *mcpy(void *dest
, const void *src
, int count
);
48 extern int mcmp (const void *cs
, const void *ct
, int count
);
49 extern void dump_buf(unsigned char* buf
, unsigned int len
);
51 #endif /* end of SEC_LIB_H */