annotate gsm-fw/services/dar/dar_macro_i.h @ 510:ceae0979e685

GPF: OSX added to libgpf.iram.a
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Tue, 01 Jul 2014 20:04:04 +0000
parents 81bee6125882
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
306
81bee6125882 DAR integration: header cleanup
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 305
diff changeset
1 /******************************************************************************/
81bee6125882 DAR integration: header cleanup
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 305
diff changeset
2 /* */
81bee6125882 DAR integration: header cleanup
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 305
diff changeset
3 /* File Name: dar_macro_i.h */
81bee6125882 DAR integration: header cleanup
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 305
diff changeset
4 /* */
81bee6125882 DAR integration: header cleanup
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 305
diff changeset
5 /* Purpose: This header contains the generic structures and constants */
81bee6125882 DAR integration: header cleanup
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 305
diff changeset
6 /* that are used by the Diagnose And Recovery layer. */
81bee6125882 DAR integration: header cleanup
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 305
diff changeset
7 /* */
81bee6125882 DAR integration: header cleanup
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 305
diff changeset
8 /* Note: */
81bee6125882 DAR integration: header cleanup
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 305
diff changeset
9 /* None. */
81bee6125882 DAR integration: header cleanup
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 305
diff changeset
10 /* */
81bee6125882 DAR integration: header cleanup
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 305
diff changeset
11 /* Revision History: */
81bee6125882 DAR integration: header cleanup
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 305
diff changeset
12 /* 27 September 2001 Stephanie Gerthoux Create */
81bee6125882 DAR integration: header cleanup
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 305
diff changeset
13 /* */
81bee6125882 DAR integration: header cleanup
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 305
diff changeset
14 /* (C) Copyright 2001 by Texas Instruments Incorporated, All Rights Reserved. */
81bee6125882 DAR integration: header cleanup
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 305
diff changeset
15 /* */
81bee6125882 DAR integration: header cleanup
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 305
diff changeset
16 /******************************************************************************/
305
4dccc9d3305f gsm-fw: checking in DAR from Leonardo source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
17
306
81bee6125882 DAR integration: header cleanup
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 305
diff changeset
18 #include "../../riviera/rv/rv_defined_swe.h"
81bee6125882 DAR integration: header cleanup
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 305
diff changeset
19 #include "dar_const_i.h"
81bee6125882 DAR integration: header cleanup
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 305
diff changeset
20 #include "../../riviera/rvm/rvm_use_id_list.h"
305
4dccc9d3305f gsm-fw: checking in DAR from Leonardo source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
21
4dccc9d3305f gsm-fw: checking in DAR from Leonardo source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
22 #ifdef RVM_DAR_SWE
4dccc9d3305f gsm-fw: checking in DAR from Leonardo source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
23 #ifndef _DAR_MACRO_I_H
4dccc9d3305f gsm-fw: checking in DAR from Leonardo source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
24 #define _DAR_MACRO_I_H
4dccc9d3305f gsm-fw: checking in DAR from Leonardo source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
25
4dccc9d3305f gsm-fw: checking in DAR from Leonardo source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
26 #ifdef __cplusplus
4dccc9d3305f gsm-fw: checking in DAR from Leonardo source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
27 extern "C"
4dccc9d3305f gsm-fw: checking in DAR from Leonardo source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
28 {
4dccc9d3305f gsm-fw: checking in DAR from Leonardo source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
29 #endif
4dccc9d3305f gsm-fw: checking in DAR from Leonardo source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
30
4dccc9d3305f gsm-fw: checking in DAR from Leonardo source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
31 /* DAR trace macros */
4dccc9d3305f gsm-fw: checking in DAR from Leonardo source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
32 #define DAR_SEND_TRACE(string,type) rvf_send_trace (string,(sizeof(string)-1),NULL_PARAM,type,DAR_USE_ID)
4dccc9d3305f gsm-fw: checking in DAR from Leonardo source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
33 #define DAR_SEND_TRACE_PARAM(string,param,type) rvf_send_trace (string,(sizeof(string)-1),(UINT32)param,type,DAR_USE_ID)
4dccc9d3305f gsm-fw: checking in DAR from Leonardo source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
34 #define DAR_TRACE_WARNING(string) rvf_send_trace (string,(sizeof(string)-1),NULL_PARAM,RV_TRACE_LEVEL_WARNING,DAR_USE_ID)
4dccc9d3305f gsm-fw: checking in DAR from Leonardo source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
35
306
81bee6125882 DAR integration: header cleanup
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 305
diff changeset
36 /* Macro used to calculate the value of the index */
81bee6125882 DAR integration: header cleanup
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 305
diff changeset
37 /* of the circular buffer */
305
4dccc9d3305f gsm-fw: checking in DAR from Leonardo source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
38 /* When the end of the buffer is reached, the index = 0 */
4dccc9d3305f gsm-fw: checking in DAR from Leonardo source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
39 #define DAR_PLUS_PLUS(dar_current_index) \
4dccc9d3305f gsm-fw: checking in DAR from Leonardo source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
40 { \
4dccc9d3305f gsm-fw: checking in DAR from Leonardo source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
41 dar_current_index++;\
4dccc9d3305f gsm-fw: checking in DAR from Leonardo source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
42 if (dar_current_index == DAR_MAX_BUFFER_SIZE)\
4dccc9d3305f gsm-fw: checking in DAR from Leonardo source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
43 {\
4dccc9d3305f gsm-fw: checking in DAR from Leonardo source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
44 dar_current_index = 0;\
4dccc9d3305f gsm-fw: checking in DAR from Leonardo source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
45 }\
4dccc9d3305f gsm-fw: checking in DAR from Leonardo source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
46 } \
4dccc9d3305f gsm-fw: checking in DAR from Leonardo source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
47
4dccc9d3305f gsm-fw: checking in DAR from Leonardo source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
48
4dccc9d3305f gsm-fw: checking in DAR from Leonardo source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
49 #ifdef __cplusplus
4dccc9d3305f gsm-fw: checking in DAR from Leonardo source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
50 }
4dccc9d3305f gsm-fw: checking in DAR from Leonardo source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
51 #endif
4dccc9d3305f gsm-fw: checking in DAR from Leonardo source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
52
4dccc9d3305f gsm-fw: checking in DAR from Leonardo source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
53 #endif
4dccc9d3305f gsm-fw: checking in DAR from Leonardo source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
54
306
81bee6125882 DAR integration: header cleanup
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 305
diff changeset
55 #endif /* #ifdef RVM_DAR_SWE */