tizen 2.4 release
[profile/mobile/platform/kernel/u-boot-tm1.git] / arch / arm / include / asm / arch-tiger / os_param.h
1 /******************************************************************************
2  ** File Name:      os_param.h                                                *
3  ** Author:         Xueliang.Wang                                             *
4  ** DATE:           08/27/2003                                                *
5  ** Copyright:      2003 Spreatrum, Incoporated. All Rights Reserved.         *
6  ** Description:    This file contain some OS parameter config.               *
7  ******************************************************************************
8
9  ******************************************************************************
10  **                        Edit History                                       *
11  ** ------------------------------------------------------------------------- *
12  ** DATE           NAME             DESCRIPTION                               *
13  ** 08/27/2003     Xueliang.Wang    Create.                                   *
14  ******************************************************************************/
15 #ifndef _OS_PARAM_H
16 #define _OS_PARAM_H
17
18 /**---------------------------------------------------------------------------*
19  **                         Dependencies                                      *
20  **---------------------------------------------------------------------------*/
21 #include "os_api.h" 
22
23 /**---------------------------------------------------------------------------*
24  **                         Compiler Flag                                     *
25  **---------------------------------------------------------------------------*/
26 #ifdef __cplusplus
27     extern   "C"
28     {
29 #endif
30
31 /**---------------------------------------------------------------------------*
32  **                         Defines                                           *
33  **---------------------------------------------------------------------------*/
34 /**---------------------------------------------------------------------------*
35  **                         Constant Variables                                *
36  **---------------------------------------------------------------------------*/
37 // Assert mode value.
38 // If it is in debug mode, print assert information when assert; 
39 // else reset.
40 #define SCI_ASSERT_DEBUG_MODE       1
41 /* @Jim.zhang CR:MS12298 2004-08-26 */
42 #define SCI_ASSERT_RELEASE_MODE     0x35
43 /* end CR:MS12298 */
44
45 /**---------------------------------------------------------------------------*
46  **                         Data Structures                                   *
47  **---------------------------------------------------------------------------*/
48 /**---------------------------------------------------------------------------*
49  **                         Function Prototypes                               *
50  **---------------------------------------------------------------------------*/
51 /*****************************************************************************/
52 //  Description:    The function initialize os parameters which on NVItem.
53 //      Global resource dependence: 
54 //  Author:         Xueliang.Wang
55 //      Note:           It must be called before use the os parameters, 
56 //                  and after flash could access.
57 /*****************************************************************************/
58 PUBLIC void OSPARAM_InitOsParam(void);
59
60 /*****************************************************************************/
61 //  Description:    The function gets static thread log table.
62 //      Global resource dependence: 
63 //  Author:         Xueliang.Wang
64 //      Note:           Size of log_table should be not less than 
65 //                  uint32[SCI_MAX_STATIC_THREAD_ID].
66 /*****************************************************************************/
67 PUBLIC uint32 OSPARAM_GetThreadLogTable(// If set successfully, return 
68                                         // SCI_SUCCESS; else return SCI_ERROR
69     uint32  *log_table_ptr  // Pointer to a uint32 arry, 
70                             // which used to save log table.
71     );
72
73 /*****************************************************************************/
74 //  Description:    The function sets static thread log table.
75 //      Global resource dependence: 
76 //  Author:         Xueliang.Wang
77 //      Note:           Size of log_table should be equal
78 //                  uint32[SCI_MAX_STATIC_THREAD_ID].
79 /*****************************************************************************/
80 PUBLIC uint32 OSPARAM_SetThreadLogTable(// If set successfully, return 
81                                         // SCI_SUCCESS; else return SCI_ERROR
82     uint32  *log_table_ptr  // Pointer to log table which used to set.
83     );
84
85 /*****************************************************************************/
86 //  Description:    The function gets assert mode.
87 //      Global resource dependence: 
88 //  Author:         Xueliang.Wang
89 //      Note:           The valid value should be:
90 //                      SCI_ASSERT_DEBUG_MODE  or SCI_ASSERT_RELEASE_MODE
91 /*****************************************************************************/
92 PUBLIC uint32 OSPARAM_GetAssertMode(// If set successfully, return SCI_SUCCESS; 
93                                     // else return SCI_ERROR
94     uint8  *assert_mode_ptr     // Pointer to a uint8, 
95                                 // which used to save assert mode.
96     );
97
98 /*****************************************************************************/
99 //  Description:    The function sets assert mode.
100 //      Global resource dependence: 
101 //  Author:         Xueliang.Wang
102 //      Note:           The valid value should be:
103 //                      SCI_ASSERT_DEBUG_MODE  or SCI_ASSERT_RELEASE_MODE
104 /*****************************************************************************/
105 PUBLIC uint32 OSPARAM_SetAssertMode(// If set successfully, return SCI_SUCCESS; 
106                                     // else return SCI_ERROR
107     uint8  assert_mode              // Assert mode value used to set.
108     );
109     
110 /*****************************************************************************/
111 //  Description:    The function get record assert infor to flash flag.
112 //      Global resource dependence: 
113 //  Author:         Johnson.sun
114 //      Note:           
115 /*****************************************************************************/
116 PUBLIC uint8 OSPARAM_GetRecordAssertInforToFlashFlag( void );    
117     
118 /**---------------------------------------------------------------------------*
119  **                         Compiler Flag                                     *
120  **---------------------------------------------------------------------------*/
121 #ifdef __cplusplus
122     }
123 #endif
124
125 #endif  // _OS_PARAM_H