tizen 2.4 release
[profile/mobile/platform/kernel/u-boot-tm1.git] / arch / arm / include / asm / arch-sc8810 / log.h
1 /******************************************************************************
2  ** File Name:      dm_log.h                                                    *
3  ** Author:                                                                   *
4  ** DATE:           06/26/2007                                                *
5  ** Copyright:      2007 Spreatrum, Incoporated. All Rights Reserved.         *
6  ** Description:    This file define                                          * 
7  ******************************************************************************
8
9  ******************************************************************************
10  **                        Edit History                                       *
11  ** ------------------------------------------------------------------------- *
12  ** DATE           NAME             DESCRIPTION                               *
13  ** 06/26/2007                      Create                                    *
14  ******************************************************************************/
15
16 #ifndef LOG_H
17 #define LOG_H
18
19 /**---------------------------------------------------------------------------*
20  **                         Dependencies                                      *
21  **---------------------------------------------------------------------------*/
22 #include "sci_types.h"
23
24 /**---------------------------------------------------------------------------*
25  **                         Compiler Flag                                     *
26  **---------------------------------------------------------------------------*/
27 #ifdef __cplusplus
28     extern   "C"
29     {
30 #endif
31
32 /**---------------------------------------------------------------------------*
33  **                         Macro defines.                               
34  **---------------------------------------------------------------------------*/
35 //#define       FOTA_DEBUG
36  #ifdef FOTA_DEBUG
37 #define UA_TRACE                SCI_TraceLow
38 #else
39 #define UA_TRACE(x)
40 #endif
41 #define  UA_TRACE_ERR   SCI_TraceLow
42 /**---------------------------------------------------------------------------*
43  **                         Struct defines.                               
44  **---------------------------------------------------------------------------*/
45
46
47 /**---------------------------------------------------------------------------*
48  **                         Function Prototypes                               
49  **---------------------------------------------------------------------------*/
50 /*****************************************************************************/
51 //  Description:    This function put a message to the trace buffer which log
52 //                  level is no more than LOG_LEVEL_LOW. 
53 //                  This function put a message to the trace buffer. 
54 //                  1.msg_trace_info.buf_is_send == TRACE_BUF_SEND
55 //                    Send the messages to the application tool when buffer 
56 //                      is full.
57 //                  2.msg_trace_info.buf_is_send == TRACE_BUF_COVER
58 //                    Always cover the oldest message when buffer is full.
59 //      Global resource dependence: 
60 //  Author: Richard.Yang
61 //      Note:
62 /*****************************************************************************/ 
63 PUBLIC uint32 SCI_TraceLow(
64     const char *x_format, ...);
65
66 /**---------------------------------------------------------------------------*
67  **                         Compiler Flag                                     *
68  **---------------------------------------------------------------------------*/
69 #ifdef __cplusplus
70     }
71 #endif
72
73 #endif //_SIO_H