FreeCalypso > hg > tcs211-l1-reconst
comparison chipsetsw/services/dar/dar_const_i.h @ 0:509db1a7b7b8
initial import: leo2moko-r1
author | Space Falcon <falcon@ivan.Harhan.ORG> |
---|---|
date | Mon, 01 Jun 2015 03:24:05 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:509db1a7b7b8 |
---|---|
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 "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 #include "config/chipset.cfg" | |
28 | |
29 #ifdef __cplusplus | |
30 extern "C" | |
31 { | |
32 #endif | |
33 | |
34 /* Define a mask used to identify the events */ | |
35 #define DAR_EVENT_EXTERN (0x0C00) | |
36 #define DAR_EVENT_INTERN (0x0300) | |
37 | |
38 /* The DAR task run without any time out */ | |
39 #define DAR_NOT_TIME_OUT (0) | |
40 | |
41 /* The DAR entity processes only the messages send to the following mail box */ | |
42 #define DAR_MBOX (RVF_TASK_MBOX_0) | |
43 | |
44 /* The DAR entity takes into account only the following events: */ | |
45 #define DAR_TASK_MBOX_EVT_MASK (RVF_TASK_MBOX_0_EVT_MASK) | |
46 | |
47 /* The DAR entity waits all event type */ | |
48 #define DAR_ALL_EVENT_FLAGS (0xFFFF) | |
49 | |
50 /* The DAR use max group elements used */ | |
51 #define DAR_MAX_GROUP_NB (4) | |
52 | |
53 /* RAM max buffer size */ | |
54 #define DAR_MAX_BUFFER_SIZE (3000) | |
55 | |
56 /* Recovery data max buffer size */ | |
57 #define DAR_RECOVERY_DATA_MAX_BUFFER_SIZE (50) | |
58 | |
59 /* Dar invalid value */ | |
60 #define DAR_INVALID_VALUE (0xFFFF) | |
61 | |
62 /* Dar initialization */ | |
63 #define DAR_INITIALIZATION_VALUE (0x0000) | |
64 | |
65 /* Define the Watchdog timer register mode */ | |
66 #define WATCHDOG_TIM_MODE (0xFFFFF804) | |
67 | |
68 | |
69 #if ((CHIPSET == 7) || (CHIPSET == 8) || (CHIPSET == 10) || (CHIPSET == 11)) | |
70 /* Define the Debug Unit register mode */ | |
71 #define DAR_DEBUG_UNIT_REGISTER (0x03C00000) | |
72 #elif (CHIPSET == 12) | |
73 /* Define the Debug Unit register mode */ | |
74 #define DAR_DEBUG_UNIT_REGISTER (0x09F00000) | |
75 #endif | |
76 | |
77 /* Mask to enable the Debug Unit Module */ | |
78 #define ENABLE_DU_MASK (0xF7FF) | |
79 | |
80 /* Mask to disable the Debug Unit Module */ | |
81 #define DISABLE_DU_MASK (0x0800) | |
82 | |
83 /* Extra Control register CONF Adress */ | |
84 #define DAR_DU_EXTRA_CONTROL_REG (0xFFFFFB10) | |
85 | |
86 /* Define the size of the Debug Unit register */ | |
87 /* This size is 64 words of 32 bits = 64*4 bytes */ | |
88 /* Size in bytes */ | |
89 #define DEBUG_UNIT_BYTES_SIZE (256) | |
90 /* Define the size in words */ | |
91 #define DEBUG_UNIT_WORD_SIZE (64) | |
92 | |
93 /* Define the size of the X_dump _buffer */ | |
94 /* This size is specified in the gsm_cs_amd4_lj3_test.cmd (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 */ | |
111 | |
112 | |
113 |