1 /******************************************************************************
2 ** File Name: common.h *
3 ** Author: Daniel.Ding *
5 ** Copyright: 2005 Spreatrum, Incoporated. All Rights Reserved. *
7 ******************************************************************************/
8 /******************************************************************************
10 **---------------------------------------------------------------------------*
11 ** DATE NAME DESCRIPTION *
12 ** 9/1/2003 Daniel.Ding Create. *
13 ******************************************************************************/
16 /*----------------------------------------------------------------------------*
18 **-------------------------------------------------------------------------- */
22 #include "linux/string.h"
23 #include "sci_types.h"
24 #include "sc_fdl_reg.h"
25 /**---------------------------------------------------------------------------*
27 **---------------------------------------------------------------------------*/
32 /**----------------------------------------------------------------------------*
34 **----------------------------------------------------------------------------*/
38 //#define REG32(x) (*((volatile uint32 *)(x)))
42 #define BIT_0 0x00000001
43 #define BIT_1 0x00000002
44 #define BIT_2 0x00000004
45 #define BIT_3 0x00000008
46 #define BIT_4 0x00000010
47 #define BIT_5 0x00000020
48 #define BIT_6 0x00000040
49 #define BIT_7 0x00000080
50 #define BIT_8 0x00000100
51 #define BIT_9 0x00000200
52 #define BIT_10 0x00000400
53 #define BIT_11 0x00000800
54 #define BIT_12 0x00001000
55 #define BIT_13 0x00002000
56 #define BIT_14 0x00004000
57 #define BIT_15 0x00008000
58 #define BIT_16 0x00010000
59 #define BIT_17 0x00020000
60 #define BIT_18 0x00040000
61 #define BIT_19 0x00080000
62 #define BIT_20 0x00100000
63 #define BIT_21 0x00200000
64 #define BIT_22 0x00400000
65 #define BIT_23 0x00800000
66 #define BIT_24 0x01000000
67 #define BIT_25 0x02000000
68 #define BIT_26 0x04000000
69 #define BIT_27 0x08000000
70 #define BIT_28 0x10000000
71 #define BIT_29 0x20000000
72 #define BIT_30 0x40000000
73 #define BIT_31 0x80000000
74 /**----------------------------------------------------------------------------*
76 **----------------------------------------------------------------------------*/
78 /**----------------------------------------------------------------------------*
79 ** Local Function Prototype **
80 **----------------------------------------------------------------------------*/
82 /**----------------------------------------------------------------------------*
83 ** Function Prototype **
84 **----------------------------------------------------------------------------*/
86 /**----------------------------------------------------------------------------*
88 **----------------------------------------------------------------------------*/
92 /**---------------------------------------------------------------------------*/