comparison g23m-aci/dti/dti_int_def.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 | Project : DTILIB
4 | Modul : DTI
5 +-----------------------------------------------------------------------------
6 | Copyright 2002 Texas Instruments Berlin, AG
7 | All rights reserved.
8 |
9 | This file is confidential and a trade secret of Texas
10 | Instruments Berlin, AG
11 | The receipt of or possession of this file does not convey
12 | any rights to reproduce or disclose its contents or to
13 | manufacture, use, or sell anything it may describe, in
14 | whole, or in part, without the specific written consent of
15 | Texas Instruments Berlin, AG.
16 +-----------------------------------------------------------------------------
17 | Purpose : Definitions for the internal Data Transmission Interface
18 | Library, DTI.
19 +-----------------------------------------------------------------------------
20 */
21 /*
22 * Version 1.6
23 */
24
25 #ifndef DTI_INT_DEF_H
26 #define DTI_INT_DEF_H
27
28 /*==== Constants ==================================================================*/
29
30 /* definition disappeared from vsi.h */
31 #ifdef MEMORY_SUPERVISION
32 #define FILE_AND_LINE ,__FILE__,__LINE__
33 #else /* MEMORY_SUPERVISION */
34 #define FILE_AND_LINE
35 #endif /* else MEMORY_SUPERVISION */
36
37 /*
38 * Please do NOT use D_FREE_LINK_ID as your link_id.
39 * This constant indicates a free link in the link structure and in the dti_data_ind queue.
40 */
41
42 #define D_FREE_LINK_ID 65000 /* Indicate a free link ID */
43 #define NO_DATA_PACKET NULL /* Indicate that is no data packet in the link
44 structure */
45
46 /*
47 * Default parameter
48 */
49
50 #define D_HANDLE 0
51 #define D_CHANNEL 0
52 #define D_LINK ((U32)NULL)
53 #define D_LINK_HANDLE 0
54 #define D_QUEUE_SIZE 0
55 #define D_DIRECTION DTI_CHANNEL_TO_LOWER_LAYER
56 #define D_VERSION DTI_VERSION_10
57 #define D_INSTANCE 0
58 #define D_INTERFACE 0
59 #define D_LINK_OPTIONS DTI_QUEUE_UNUSED
60 #define D_CONNECT_STATE DTI_CLOSED
61 #define D_MAX_LINKS 0
62 #define D_ATP_SW_ENTITY_ID 0 /* target ID within Riviera */
63
64 /*
65 * RX states
66 */
67
68 #define DTI_RX_IDLE 0 /* No Flow Control primitive sent (initial state) */
69 #define DTI_RX_READY 1 /* Flow Control primitive sent expect data primitive */
70 #define DTI_RX_STOPPED 2 /* Flow Control primitive sent
71 but data flow was stopped by the entity */
72 /*
73 * TX states
74 */
75
76 #define DTI_TX_IDLE 1 /* Waiting for Flow Control primitive (initial state) */
77 #define DTI_TX_FLOW 2 /* Flow Control primitive received */
78 #define DTI_TX_BUFFER_FULL 3 /* TX buffer buffer full signal has been sent */
79
80 /*
81 * Connect states
82 */
83 #if 0
84 /* already defined in dti.h */
85 #define DTI_CLOSED 0 /* DTI connection is not established */
86 #define DTI_SETUP 1 /* Waiting for Connect Confirm primitive */
87 #define DTI_IDLE 2 /* DTI connection is opened */
88 #endif /* 0 */
89 #define DTI_CONNECTING 3 /* Connect primitive received,
90 but no appropriate dti_open() was called */
91 #define DTI_CLOSING 4 /* DTI connection is to be closed
92 when the send queue is empty */
93
94 /*
95 * Bitoffset for encoding/decoding
96 */
97 #define ENCODE_OFFSET 0
98
99 /*============ TYPES ======================================================*/
100
101 /*
102 * Return values
103 */
104 typedef enum {
105 DTI_E_FAIL = 0,
106 DTI_S_OK = 1,
107 DTI_S_FOUND,
108 DTI_S_CREATED_NEW
109 } DTI_RESULT;
110
111 /*============ MACROS =====================================================*/
112
113 /*
114 +------------------------------------------------------------------------------
115 | Purpose: Additions to general definitions in vsi.h
116 | for execution without traces (no matter which flags are set).
117 |
118 | This is needed for MTST - please be aware of possible code
119 | changes in vsi.h, however...
120 | $Identity:$
121 +------------------------------------------------------------------------------
122 */
123
124 #define PSEND_NTRACE(E,D) vsi_c_psend_ntrace ( VSI_CALLER E, \
125 (T_VOID_STRUCT*)D, PSIZE(D) FILE_LINE_MACRO );
126
127
128
129 #define PPASS_NTRACE(D0,D,T) T_##T *D = (T_##T*)D0; \
130 D_OPC(D) = (T);
131
132 /*============ DATA STRUCTURES ============================================*/
133
134 #ifdef FF_TCP_IP
135 /*
136 * Link reference table, references links in ANY entity data base
137 * towards ATP
138 */
139 #ifdef DTI_ATP_C
140 DTI_LINK* atp_links[MAX_ATP_LINKS];
141 #else /* DTI_ATP_C */
142 extern DTI_LINK* atp_links[] ;
143 #endif /* DTI_ATP_C */
144
145 #endif /* FF_TCP_IP */
146
147
148
149
150 #endif /* DTI_INT_DEF_H */