FreeCalypso > hg > freecalypso-sw
comparison gsm-fw/services/dar/dar_structs_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 |
---|---|
1 /********************************************************************************/ | 1 /******************************************************************************/ |
2 /* */ | 2 /* */ |
3 /* File Name: dar_structs_i.h */ | 3 /* File Name: dar_structs_i.h */ |
4 /* */ | 4 /* */ |
5 /* Purpose: This file contains constants, data type, and data */ | 5 /* Purpose: This file contains constants, data type, and data */ |
6 /* structures that are used by the diagnose's task. */ | 6 /* structures that are used by the diagnose's task. */ |
7 /* */ | 7 /* */ |
8 /* Note: */ | 8 /* Note: */ |
9 /* None. */ | 9 /* None. */ |
10 /* */ | 10 /* */ |
11 /* Revision History: */ | 11 /* Revision History: */ |
12 /* 26 september 01 Stephanie Gerthoux Create */ | 12 /* 26 september 01 Stephanie Gerthoux Create */ |
13 /* */ | 13 /* */ |
14 /* (C) Copyright 2001 by Texas Instruments Incorporated, All Rights Reserved. */ | 14 /* (C) Copyright 2001 by Texas Instruments Incorporated, All Rights Reserved. */ |
15 /* */ | 15 /* */ |
16 /********************************************************************************/ | 16 /******************************************************************************/ |
17 #include "rv/rv_defined_swe.h" | 17 #include "../../riviera/rv/rv_defined_swe.h" |
18 #ifdef RVM_DAR_SWE | 18 #ifdef RVM_DAR_SWE |
19 #ifndef _DAR_STRUCTS_I_ | 19 #ifndef _DAR_STRUCTS_I_ |
20 #define _DAR_STRUCTS_I_ | 20 #define _DAR_STRUCTS_I_ |
21 | 21 |
22 #include "rvm/rvm_gen.h" | 22 #include "../../riviera/rvm/rvm_gen.h" |
23 #include "dar/dar_gen.h" | 23 #include "dar_gen.h" |
24 #include "dar/dar_const_i.h" | 24 #include "dar_const_i.h" |
25 | 25 |
26 #ifdef __cplusplus | 26 #ifdef __cplusplus |
27 extern "C" | 27 extern "C" |
28 { | 28 { |
29 #endif | 29 #endif |
30 | 30 |
31 /* ***************** DAR internal structures ********************************/ | 31 /* ***************** DAR internal structures *************************/ |
32 | 32 |
33 /* Diagnose Use parameter with masks for warning and debug messages */ | 33 /* Diagnose Use parameter with masks for warning and debug messages */ |
34 typedef struct | 34 typedef struct |
35 { | 35 { |
36 UINT16 group_nb; | 36 UINT16 group_nb; |
37 UINT16 mask_warning; | 37 UINT16 mask_warning; |
38 UINT16 mask_debug; | 38 UINT16 mask_debug; |
39 }T_DAR_FILTER_PARAMETER; | 39 }T_DAR_FILTER_PARAMETER; |
40 | 40 |
41 /* Diagnose Use Messages parameter (used to send messages in DAR mailbox) */ | 41 /* Diagnose Use Messages parameter (used to send messages in DAR |
42 mailbox) */ | |
42 typedef struct | 43 typedef struct |
43 { | 44 { |
44 UINT16 group_nb; | 45 UINT16 group_nb; |
45 UINT16 mask; | 46 UINT16 mask; |
46 UINT8 level; | 47 UINT8 level; |
54 T_DAR_LEVEL level; | 55 T_DAR_LEVEL level; |
55 T_DAR_USE_ID use_id; | 56 T_DAR_USE_ID use_id; |
56 }T_DAR_WRITE; | 57 }T_DAR_WRITE; |
57 | 58 |
58 | 59 |
59 /****************************** DAR'S ENVIRONMENT **************************** */ | 60 /****************************** DAR'S ENVIRONMENT **********************/ |
60 /* Define a structure used to store all information related to the DAR's task */ | 61 /* Define a structure used to store all information related to the */ |
61 /* & memory bank identifiers. */ | 62 /* DAR's task & memory bank identifiers. */ |
62 | 63 |
63 typedef struct | 64 typedef struct |
64 { | 65 { |
65 /* DAR addr ID. */ | 66 /* DAR addr ID. */ |
66 T_RVF_ADDR_ID addrId; | 67 T_RVF_ADDR_ID addrId; |
85 T_RVM_ERROR_TYPE errorType, | 86 T_RVM_ERROR_TYPE errorType, |
86 T_RVM_STRING errorMsg); | 87 T_RVM_STRING errorMsg); |
87 /* Pointer to the DAR callback function */ | 88 /* Pointer to the DAR callback function */ |
88 T_RV_RET (*entity_dar_callback)(T_DAR_BUFFER buffer_p, | 89 T_RV_RET (*entity_dar_callback)(T_DAR_BUFFER buffer_p, |
89 UINT16 length); | 90 UINT16 length); |
90 /* Filter Array that contains the group and the masks ( Warning, debug) */ | 91 /* Filter Array that contains the group and the masks */ |
91 /* in order to filter messages */ | 92 /* (Warning, debug) in order to filter messages */ |
92 T_DAR_FILTER_PARAMETER dar_filter_array[DAR_MAX_GROUP_NB]; | 93 T_DAR_FILTER_PARAMETER dar_filter_array[DAR_MAX_GROUP_NB]; |
93 /* index to indicate the group position in the dar_filter_array */ | 94 /* index to indicate the group position in the dar_filter_array */ |
94 UINT16 index; | 95 UINT16 index; |
95 /* free index to indicate the first free group position in the */ | 96 /* free index to indicate the first free group position in the */ |
96 /* dar_filter_array ( to add a new group in the array) */ | 97 /* dar_filter_array ( to add a new group in the array) */ |
97 UINT16 free_index; | 98 UINT16 free_index; |
98 /* Buffer to store diagnose data*/ | 99 /* Buffer to store diagnose data*/ |
99 | 100 |
100 } T_DAR_ENV_CTRL_BLK; | 101 } T_DAR_ENV_CTRL_BLK; |
101 | 102 |
102 #ifdef __cplusplus | 103 #ifdef __cplusplus |
103 } | 104 } |
104 #endif | 105 #endif |