comparison gsm-fw/services/dar/dar_messages_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
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 #ifdef RVM_DAR_SWE 21 #ifdef RVM_DAR_SWE
22 #ifndef __DAR_MESSAGES_I_H_ 22 #ifndef __DAR_MESSAGES_I_H_
23 #define __DAR_MESSAGES_I_H_ 23 #define __DAR_MESSAGES_I_H_
24 24
25 #include "dar/dar_structs_i.h" 25 #include "dar_structs_i.h"
26 26
27 #ifdef __cplusplus 27 #ifdef __cplusplus
28 extern "C" 28 extern "C"
29 { 29 {
30 #endif 30 #endif
31 31
32 /******************************* Diagnose messages ************************************/ 32 /************************ Diagnose messages *****************************/
33 /* Diagnose filter and no filter messages */ 33 /* Diagnose filter and no filter messages */
34 #define DAR_FILTER_REQ (0x0001 | DAR_EVENT_INTERN | DAR_EVENTS_MASK) 34 #define DAR_FILTER_REQ (0x0001 | DAR_EVENT_INTERN | DAR_EVENTS_MASK)
35 35
36 /* Diagnose filter structure */ 36 /* Diagnose filter structure */
37 typedef struct 37 typedef struct
38 { 38 {
39 T_RV_HDR os_hdr; 39 T_RV_HDR os_hdr;
40 T_DAR_MSG_PARAM use_msg_parameter; 40 T_DAR_MSG_PARAM use_msg_parameter;
41 T_RV_RETURN return_path; 41 T_RV_RETURN return_path;
42 } T_DAR_FILTER_START; 42 } T_DAR_FILTER_START;
43 43
44 /* Diagnose write messages */ 44 /* Diagnose write messages */
45 #define DAR_WRITE_REQ (0x0003 | DAR_EVENT_INTERN | DAR_EVENTS_MASK) 45 #define DAR_WRITE_REQ (0x0003 | DAR_EVENT_INTERN | DAR_EVENTS_MASK)
46 46
47 /* Diagnose write data structure */ 47 /* Diagnose write data structure */
48 typedef struct 48 typedef struct
49 { 49 {
50 T_RV_HDR os_hdr; 50 T_RV_HDR os_hdr;
51 T_DAR_WRITE data_write; 51 T_DAR_WRITE data_write;
52 T_RV_RETURN return_path; 52 T_RV_RETURN return_path;
53 } T_DAR_WRITE_START; 53 } T_DAR_WRITE_START;
54 54
55 /******************************* FFS interface ************************************/ 55 /************************** FFS interface *******************************/
56 /* FFS RAM to FLASH interface */ 56 /* FFS RAM to FLASH interface */
57 /* start message */ 57 /* start message */
58 #define DAR_FFS_RAM_2_FLASH_START_REQ (0x0004 | DAR_EVENT_INTERN | DAR_EVENTS_MASK) 58 #define DAR_FFS_RAM_2_FLASH_START_REQ \
59 (0x0004 | DAR_EVENT_INTERN | DAR_EVENTS_MASK)
59 typedef struct 60 typedef struct
60 { 61 {
61 T_RV_HDR os_hdr; 62 T_RV_HDR os_hdr;
62 UINT16 initial_size; 63 UINT16 initial_size;
63 } T_DAR_FFS_RAM_2_FLASH_START; 64 } T_DAR_FFS_RAM_2_FLASH_START;
64 65
65 /* start confirmation message */ 66 /* start confirmation message */
66 #define DAR_FFS_INIT_DONE (0x0005 | DAR_EVENT_INTERN | DAR_EVENTS_MASK) 67 #define DAR_FFS_INIT_DONE (0x0005 | DAR_EVENT_INTERN | DAR_EVENTS_MASK)
67 68
68 typedef struct 69 typedef struct
69 { 70 {
70 T_RV_HDR os_hdr; 71 T_RV_HDR os_hdr;
71 } T_DAR_FFS_INIT; 72 } T_DAR_FFS_INIT;
72 73
73 /* stop message */ 74 /* stop message */
74 #define DAR_FFS_STOP_REQ (0x0006 | DAR_EVENT_INTERN | DAR_EVENTS_MASK) 75 #define DAR_FFS_STOP_REQ (0x0006 | DAR_EVENT_INTERN | DAR_EVENTS_MASK)
75 typedef struct 76 typedef struct
76 { 77 {
77 T_RV_HDR os_hdr; 78 T_RV_HDR os_hdr;
78 } T_DAR_FFS_STOP; 79 } T_DAR_FFS_STOP;
79 80
80 /* stop confirmation message */ 81 /* stop confirmation message */
81 #define DAR_FFS_STOP_CON (0x0007 | DAR_EVENT_INTERN | DAR_EVENTS_MASK) 82 #define DAR_FFS_STOP_CON (0x0007 | DAR_EVENT_INTERN | DAR_EVENTS_MASK)
82 83
83 #ifdef __cplusplus 84 #ifdef __cplusplus
84 } 85 }
85 #endif 86 #endif
86 87