FreeCalypso > hg > freecalypso-citrine
comparison services/dar/dar_const_i.h @ 0:75a11d740a02
initial import of gsm-fw from freecalypso-sw rev 1033:5ab737ac3ad7
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Thu, 09 Jun 2016 00:02:41 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:75a11d740a02 |
---|---|
1 /****************************************************************************/ | |
2 /* */ | |
3 /* File Name: dar_const_i.h */ | |
4 /* */ | |
5 /* Purpose: Internal constants used by DAR instance */ | |
6 /* */ | |
7 /* */ | |
8 /* Version 0.1 */ | |
9 /* */ | |
10 /* Date Modification */ | |
11 /* ------------------------------------ */ | |
12 /* 26 Septembre 2001 Create */ | |
13 /* */ | |
14 /* Author Stephanie Gerthoux */ | |
15 /* */ | |
16 /* */ | |
17 /* (C) Copyright 2001 by Texas Instruments Incorporated, All Rights Reserved*/ | |
18 /****************************************************************************/ | |
19 | |
20 #include "../../riviera/rv/rv_defined_swe.h" | |
21 | |
22 #ifdef RVM_DAR_SWE | |
23 | |
24 #ifndef __DAR_CONST_I_H_ | |
25 #define __DAR_CONST_I_H_ | |
26 | |
27 #ifdef __cplusplus | |
28 extern "C" | |
29 { | |
30 #endif | |
31 | |
32 /* Define a mask used to identify the events */ | |
33 #define DAR_EVENT_EXTERN (0x0C00) | |
34 #define DAR_EVENT_INTERN (0x0300) | |
35 | |
36 /* The DAR task run without any time out */ | |
37 #define DAR_NOT_TIME_OUT (0) | |
38 | |
39 /* The DAR entity processes only the messages send to the following | |
40 mail box */ | |
41 #define DAR_MBOX (RVF_TASK_MBOX_0) | |
42 | |
43 /* The DAR entity takes into account only the following events: */ | |
44 #define DAR_TASK_MBOX_EVT_MASK (RVF_TASK_MBOX_0_EVT_MASK) | |
45 | |
46 /* The DAR entity waits all event type */ | |
47 #define DAR_ALL_EVENT_FLAGS (0xFFFF) | |
48 | |
49 /* The DAR use max group elements used */ | |
50 #define DAR_MAX_GROUP_NB (4) | |
51 | |
52 /* RAM max buffer size */ | |
53 #define DAR_MAX_BUFFER_SIZE (3000) | |
54 | |
55 /* Recovery data max buffer size */ | |
56 #define DAR_RECOVERY_DATA_MAX_BUFFER_SIZE (50) | |
57 | |
58 /* Dar invalid value */ | |
59 #define DAR_INVALID_VALUE (0xFFFF) | |
60 | |
61 /* Dar initialization */ | |
62 #define DAR_INITIALIZATION_VALUE (0x0000) | |
63 | |
64 /* Define the Watchdog timer register mode */ | |
65 #define WATCHDOG_TIM_MODE (0xFFFFF804) | |
66 | |
67 | |
68 #if (CHIPSET == 7 || CHIPSET == 8 || CHIPSET == 10 || CHIPSET == 11) | |
69 /* Define the Debug Unit register mode */ | |
70 #define DAR_DEBUG_UNIT_REGISTER (0x03C00000) | |
71 #elif (CHIPSET == 12) | |
72 /* Define the Debug Unit register mode */ | |
73 #define DAR_DEBUG_UNIT_REGISTER (0x09F00000) | |
74 #endif | |
75 | |
76 /* Mask to enable the Debug Unit Module */ | |
77 #define ENABLE_DU_MASK (0xF7FF) | |
78 | |
79 /* Mask to disable the Debug Unit Module */ | |
80 #define DISABLE_DU_MASK (0x0800) | |
81 | |
82 /* Extra Control register CONF Adress */ | |
83 #define DAR_DU_EXTRA_CONTROL_REG (0xFFFFFB10) | |
84 | |
85 /* Define the size of the Debug Unit register */ | |
86 /* This size is 64 words of 32 bits = 64*4 bytes */ | |
87 /* Size in bytes */ | |
88 #define DEBUG_UNIT_BYTES_SIZE (256) | |
89 /* Define the size in words */ | |
90 #define DEBUG_UNIT_WORD_SIZE (64) | |
91 | |
92 /* Define the size of the X_dump _buffer */ | |
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 */ | |
96 #define DAR_X_DUMP_BUFFER_SIZE (152) | |
97 | |
98 /* Define the exceptions */ | |
99 #define DAR_NO_ABORT_EXCEPTION (0) | |
100 #define DAR_EXCEPTION_DATA_ABORT (1) | |
101 #define DAR_EXCEPTION_PREFETCH_ABORT (2) | |
102 #define DAR_EXCEPTION_UNDEFINED (3) | |
103 #define DAR_EXCEPTION_SWI (4) | |
104 #define DAR_EXCEPTION_RESERVED (5) | |
105 | |
106 #ifdef __cplusplus | |
107 } | |
108 #endif | |
109 #endif /* __DAR_CONST_I_H_ */ | |
110 #endif /* #ifdef RVM_DAR_SWE */ |