comparison gsm-fw/services/dar/dar_const_i.h @ 306:81bee6125882

DAR integration: header cleanup
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Sun, 16 Mar 2014 06:50:26 +0000
parents 4dccc9d3305f
children
comparison
equal deleted inserted replaced
305:4dccc9d3305f 306:81bee6125882
5 /* Purpose: Internal constants used by DAR instance */ 5 /* Purpose: Internal constants used by DAR instance */
6 /* */ 6 /* */
7 /* */ 7 /* */
8 /* Version 0.1 */ 8 /* Version 0.1 */
9 /* */ 9 /* */
10 /* Date Modification */ 10 /* Date Modification */
11 /* ------------------------------------ */ 11 /* ------------------------------------ */
12 /* 26 Septembre 2001 Create */ 12 /* 26 Septembre 2001 Create */
13 /* */ 13 /* */
14 /* Author Stephanie Gerthoux */ 14 /* Author Stephanie Gerthoux */
15 /* */ 15 /* */
16 /* */ 16 /* */
17 /* (C) Copyright 2001 by Texas Instruments Incorporated, All Rights Reserved*/ 17 /* (C) Copyright 2001 by Texas Instruments Incorporated, All Rights Reserved*/
18 /****************************************************************************/ 18 /****************************************************************************/
19 19
20 #include "rv/rv_defined_swe.h" 20 #include "../../riviera/rv/rv_defined_swe.h"
21 21
22 #ifdef RVM_DAR_SWE 22 #ifdef RVM_DAR_SWE
23 23
24 #ifndef __DAR_CONST_I_H_ 24 #ifndef __DAR_CONST_I_H_
25 #define __DAR_CONST_I_H_ 25 #define __DAR_CONST_I_H_
26
27 #include "config/chipset.cfg"
28 26
29 #ifdef __cplusplus 27 #ifdef __cplusplus
30 extern "C" 28 extern "C"
31 { 29 {
32 #endif 30 #endif
36 #define DAR_EVENT_INTERN (0x0300) 34 #define DAR_EVENT_INTERN (0x0300)
37 35
38 /* The DAR task run without any time out */ 36 /* The DAR task run without any time out */
39 #define DAR_NOT_TIME_OUT (0) 37 #define DAR_NOT_TIME_OUT (0)
40 38
41 /* The DAR entity processes only the messages send to the following mail box */ 39 /* The DAR entity processes only the messages send to the following
40 mail box */
42 #define DAR_MBOX (RVF_TASK_MBOX_0) 41 #define DAR_MBOX (RVF_TASK_MBOX_0)
43 42
44 /* The DAR entity takes into account only the following events: */ 43 /* The DAR entity takes into account only the following events: */
45 #define DAR_TASK_MBOX_EVT_MASK (RVF_TASK_MBOX_0_EVT_MASK) 44 #define DAR_TASK_MBOX_EVT_MASK (RVF_TASK_MBOX_0_EVT_MASK)
46 45
47 /* The DAR entity waits all event type */ 46 /* The DAR entity waits all event type */
48 #define DAR_ALL_EVENT_FLAGS (0xFFFF) 47 #define DAR_ALL_EVENT_FLAGS (0xFFFF)
49 48
50 /* The DAR use max group elements used */ 49 /* The DAR use max group elements used */
63 #define DAR_INITIALIZATION_VALUE (0x0000) 62 #define DAR_INITIALIZATION_VALUE (0x0000)
64 63
65 /* Define the Watchdog timer register mode */ 64 /* Define the Watchdog timer register mode */
66 #define WATCHDOG_TIM_MODE (0xFFFFF804) 65 #define WATCHDOG_TIM_MODE (0xFFFFF804)
67 66
68 67
69 #if ((CHIPSET == 7) || (CHIPSET == 8) || (CHIPSET == 10) || (CHIPSET == 11)) 68 #if (CHIPSET == 7 || CHIPSET == 8 || CHIPSET == 10 || CHIPSET == 11)
70 /* Define the Debug Unit register mode */ 69 /* Define the Debug Unit register mode */
71 #define DAR_DEBUG_UNIT_REGISTER (0x03C00000) 70 #define DAR_DEBUG_UNIT_REGISTER (0x03C00000)
72 #elif (CHIPSET == 12) 71 #elif (CHIPSET == 12)
73 /* Define the Debug Unit register mode */ 72 /* Define the Debug Unit register mode */
74 #define DAR_DEBUG_UNIT_REGISTER (0x09F00000) 73 #define DAR_DEBUG_UNIT_REGISTER (0x09F00000)
75 #endif 74 #endif
76 75
77 /* Mask to enable the Debug Unit Module */ 76 /* Mask to enable the Debug Unit Module */
78 #define ENABLE_DU_MASK (0xF7FF) 77 #define ENABLE_DU_MASK (0xF7FF)
79 78
89 #define DEBUG_UNIT_BYTES_SIZE (256) 88 #define DEBUG_UNIT_BYTES_SIZE (256)
90 /* Define the size in words */ 89 /* Define the size in words */
91 #define DEBUG_UNIT_WORD_SIZE (64) 90 #define DEBUG_UNIT_WORD_SIZE (64)
92 91
93 /* Define the size of the X_dump _buffer */ 92 /* Define the size of the X_dump _buffer */
94 /* This size is specified in the gsm_cs_amd4_lj3_test.cmd (in "system" directory) */ 93 /* This size is specified in the gsm_cs_amd4_lj3_test.cmd
94 (in "system" directory) */
95 /* Its size is 38*32 bits = 38*4 bytes = 152 bytes */ 95 /* Its size is 38*32 bits = 38*4 bytes = 152 bytes */
96 #define DAR_X_DUMP_BUFFER_SIZE (152) 96 #define DAR_X_DUMP_BUFFER_SIZE (152)
97 97
98 /* Define the exceptions */ 98 /* Define the exceptions */
99 #define DAR_NO_ABORT_EXCEPTION (0) 99 #define DAR_NO_ABORT_EXCEPTION (0)
100 #define DAR_EXCEPTION_DATA_ABORT (1) 100 #define DAR_EXCEPTION_DATA_ABORT (1)
101 #define DAR_EXCEPTION_PREFETCH_ABORT (2) 101 #define DAR_EXCEPTION_PREFETCH_ABORT (2)
102 #define DAR_EXCEPTION_UNDEFINED (3) 102 #define DAR_EXCEPTION_UNDEFINED (3)
106 #ifdef __cplusplus 106 #ifdef __cplusplus
107 } 107 }
108 #endif 108 #endif
109 #endif /* __DAR_CONST_I_H_ */ 109 #endif /* __DAR_CONST_I_H_ */
110 #endif /* #ifdef RVM_DAR_SWE */ 110 #endif /* #ifdef RVM_DAR_SWE */
111
112
113