comparison src/g23m-gprs/sndcp/sndcp_f.h @ 183:219afcfc6250

src/g23m-gprs: initial import from TCS3.2/LoCosto
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 13 Oct 2016 04:24:13 +0000
parents
children
comparison
equal deleted inserted replaced
182:f02d0a0e1849 183:219afcfc6250
1 /*
2 +-----------------------------------------------------------------------------
3 | Project : GPRS (8441)
4 | Modul : sndcp_f.h
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 sndcp_f.c
18 +-----------------------------------------------------------------------------
19 */
20
21 /*---- HISTORY --------------------------------------------------------------*/
22 #if 0
23
24 $Log:: /GPRS/Condat/MS/SRC/SNDCP/sndcp_f.h $
25 *
26 * 23 15.05.00 16:55 Hk
27 * T H E E N D.
28 *
29 * 22 15.05.00 16:16 Hk
30 * backup.
31 *
32 * 21 9.05.00 18:59 Hk
33 * XID negotiation work in progress. Backup.
34 *
35 * 20 18.04.00 18:47 Hk
36 * Backup. Work on XID negotiation.
37 *
38 * 19 30.03.00 16:04 Hk
39 *
40 * 18 17.03.00 18:02 Hk
41 * Acknowledged data transfer is now implemented and tested uplink and
42 * downlink.
43 *
44 * 17 10.03.00 17:48 Hk
45 * Backup. First downlink ack data transfer ok (case 700).
46 *
47 * 16 7.03.00 18:24 Hk
48 * Backup. Last check in before adding extra downlink service for timeout and
49 * re-ordering.
50 *
51 * 15 25.02.00 18:27 Hk
52 * Backup, test case 346 runs (deactivation of ack context including ll
53 * release.
54 *
55 * 14 17.02.00 14:32 Hk
56 * Last checkin before maybe splitting sd in two services for 1.unack and 2.
57 * ack op mode.
58 *
59 * 13 11.02.00 18:49 Hk
60 * Establishment of LLC acknowledged operation mode. First test case SNDCP035
61 * successful. Backup.
62 *
63 * 12 9.02.00 15:02 Hk
64 * Backup. Unacknowledged data transfer possible. Up to testcase SNDCP034.
65 *
66 * 11 7.02.00 18:02 Hk
67 * Backup, error situations in service sd, up to testcase 028.
68 *
69 * 10 3.02.00 18:08 Hk
70 * Backup, downlink transfer up to test case 016.
71 *
72 * 9 26.01.00 16:24 Hk
73 * Made services sd and nd compilable.
74 *
75 * 8 13.01.00 18:07 Hk
76 * Backup. Test case SNDCP008 successful.
77 *
78 * 7 7.01.00 18:09 Hk
79 * Backup. Data transfer in service su in case of LL_READY_IND, test case
80 * SNDCP005.
81 *
82 * 6 4.01.00 18:56 Hk
83 * Work on uplink data transfer, test case SNDCP003 successful.
84 *
85 * 5 30.12.99 17:16 Hk
86 * Last backup before millennium crash. Continued work on service su, data
87 * transfer.
88 *
89 * 4 29.12.99 17:21 Hk
90 * Started to rework service su, queue of inoming sn_nuitdata_req prims will
91 * be designed in more detail in SDL.
92 *
93 * 3 28.12.99 18:18 Hk
94 * Added test primitives with sdu instead of desc_list and started work on
95 * data transfer.
96 *
97 * 2 27.12.99 18:33 Hk
98 * Implemented and tested SNDCP000, SNDCP001.
99 *
100 * 1 21.12.99 18:39 Hk
101 * Initial.
102
103
104 #endif
105
106 #ifndef SNDCP_F_H
107 #define SNDCP_F_H
108
109
110 #define NAS_DCOMP_BOTH_DIRECT 3
111 EXTERN void sndcp_get_nsapi_state(UBYTE nsapi,
112 USHORT* stat);
113
114 #ifdef _SNDCP_DTI_2_
115 EXTERN void sndcp_get_nsapi_direction(UBYTE nsapi,
116 U8* direction);
117 #else /*_SNDCP_DTI_2_*/
118 EXTERN void sndcp_get_nsapi_direction(UBYTE nsapi,
119 BOOL* direction);
120 #endif /*_SNDCP_DTI_2_*/
121
122 EXTERN void sndcp_get_nsapi_interface(UBYTE nsapi,
123 U8* interfac);
124
125 EXTERN void sndcp_get_nsapi_linkid(UBYTE nsapi,
126 U32* linkid);
127
128 EXTERN void sndcp_get_nsapi_neighbor(UBYTE nsapi,
129 U8** neighbor);
130
131
132 EXTERN void sndcp_get_sapi_index(UBYTE sapi,
133 UBYTE* index);
134
135 EXTERN void sndcp_is_nsapi_data_compressed(UBYTE nsapi,
136 BOOL* compressed);
137
138 EXTERN void sndcp_is_nsapi_header_compressed(UBYTE nsapi,
139 BOOL* compressed);
140
141 EXTERN void sndcp_mean_trace(UBYTE nsapi, UBYTE direction, UBYTE ack_mode, USHORT len);
142
143 EXTERN void sndcp_reset_xid_block(T_XID_BLOCK* xid_block);
144
145
146 #ifdef _SIMULATION_
147 #ifdef _SNDCP_DTI_2_
148 EXTERN void sndcp_sdu_to_desc_list(T_sdu*, T_desc_list2*);
149 EXTERN void su_send_ll_unitdata_req_test(T_LL_UNITDESC_REQ* ll_unitdesc_req);
150 EXTERN void su_send_ll_data_req_test(T_LL_DESC_REQ* ll_desc_req);
151 #else /*_SNDCP_DTI_2_*/
152 EXTERN void sndcp_sdu_to_desc_list(T_sdu*, T_desc_list*);
153 #endif /*_SNDCP_DTI_2_*/
154 #endif /* _SIMULATION_ */
155
156
157 EXTERN void sndcp_set_nsapi_direction(UBYTE nsapi,
158 BOOL direction);
159
160 EXTERN void sndcp_set_nsapi_interface(UBYTE nsapi,
161 U8 interfac);
162
163
164 EXTERN void sndcp_set_nsapi_linkid(UBYTE nsapi,
165 U32 linkid);
166
167 EXTERN void sndcp_set_nsapi_neighbor(UBYTE nsapi,
168 U8* neighbor);
169
170 EXTERN void sndcp_set_nsapi_state(UBYTE nsapi,
171 USHORT stat);
172
173 EXTERN void sndcp_get_sapi_state(UBYTE sapi,
174 USHORT* state);
175
176 EXTERN void sndcp_set_sapi_state(UBYTE sapi,
177 USHORT stat);
178
179 EXTERN void sndcp_get_nsapi_ack(UBYTE nsapi,
180 BOOL* b);
181
182 EXTERN void sndcp_set_nsapi_ack(UBYTE nsapi,
183 BOOL b);
184
185 EXTERN void sndcp_get_sapi_ack(UBYTE sapi,
186 BOOL* b);
187
188 EXTERN void sndcp_set_sapi_ack(UBYTE sapi,
189 BOOL b);
190
191 EXTERN void sndcp_get_nsapi_prio(UBYTE nsapi,
192 UBYTE* prio);
193 #ifdef REL99
194 EXTERN void sndcp_get_nsapi_pktflowid(U8 nsapi, U16* pkt_flow_id);
195 EXTERN void sndcp_set_nsapi_pktflowid(UBYTE nsapi,
196 U16 packet_flow_identifier);
197 #endif /*REL99*/
198
199 EXTERN void sndcp_no_xid(void);
200
201 EXTERN void sndcp_set_nsapi_prio(UBYTE nsapi,
202 UBYTE prio);
203
204 EXTERN void sndcp_get_nsapi_sapi(UBYTE nsapi,
205 UBYTE* sapi);
206
207 EXTERN void sndcp_set_nsapi_sapi(UBYTE nsapi,
208 UBYTE sapi);
209
210 EXTERN void sndcp_is_nsapi_used(UBYTE nsapi,
211 BOOL* b);
212
213 EXTERN void sndcp_set_nsapi_used(UBYTE nsapi,
214 BOOL sapi);
215
216 EXTERN void sndcp_get_nsapi_qos(UBYTE nsapi,
217 T_snsm_qos* qos);
218
219 EXTERN void sndcp_set_nsapi_qos(UBYTE nsapi,
220 T_snsm_qos qos);
221
222 EXTERN void sndcp_snsm_qos_to_ll_qos(T_snsm_qos snsm_qos,
223 T_ll_qos* ll_qos);
224 #ifdef _SNDCP_DTI_2_
225 EXTERN void sndcp_sig_callback(U8 instance,
226 U8 interfac,
227 U8 channel,
228 U8 reason,
229 T_DTI2_DATA_IND *dti_data_ind);
230
231 EXTERN void sndcp_cl_desc2_attach(T_desc2* p_desc2);
232 EXTERN void sndcp_cl_desc3_free(T_desc3* p_desc3);
233 #else
234 EXTERN void sndcp_sig_callback(U8 instance,
235 U8 interfac,
236 U8 channel,
237 U8 reason,
238 T_DTI_DATA_IND *dti_data_ind);
239 #endif /*_SNDCP_DTI_2_*/
240
241 #ifdef SNDCP_TRACE_ALL
242
243 EXTERN void sndcp_trace_sdu(T_sdu* sdu);
244
245 #ifdef _SNDCP_DTI_2_
246 EXTERN void sndcp_trace_desc_list3_content(T_desc_list3 desc_list3);
247 #endif /*_SNDCP_DTI_2_*/
248
249 #endif /* SNDCP_TRACE_ALL */
250
251 #ifdef SNDCP_TRACE_BUFFER
252 #ifdef _SNDCP_DTI_2_
253 EXTERN void sndcp_trace_desc_list(T_desc_list2* desc_list);
254 #else /*_SNDCP_DTI_2_*/
255 EXTERN void sndcp_trace_desc_list(T_desc_list* desc_list);
256 #endif /*_SNDCP_DTI_2_*/
257 #endif /* SNDCP_TRACE_BUFFER */
258
259 #ifdef SNDCP_TRACE_IP_DATAGRAM
260
261 #ifdef _SNDCP_DTI_2_
262 GLOBAL void sndcp_trace_ip_datagram(T_desc_list2* desc_list);
263 GLOBAL void sndcp_bin_trace_ip(T_desc_list2* desc_list, U8 direction);
264 GLOBAL void sndcp_default_ip_trace(T_desc_list2* desc_list, U8 direction);
265 #else /*_SNDCP_DTI_2_*/
266 GLOBAL void sndcp_trace_ip_datagram(T_desc_list* desc_list);
267 GLOBAL void sndcp_bin_trace_ip(T_desc_list* desc_list, U8 direction);
268 GLOBAL void sndcp_default_ip_trace(T_desc_list* desc_list, U8 direction);
269 #endif /*_SNDCP_DTI_2_*/
270
271 #endif /* SNDCP_TRACE_IP_DATAGRAM */
272
273
274 EXTERN void sndcp_unset_nsapi_state(UBYTE nsapi,
275 USHORT stat);
276
277 EXTERN void sndcp_unset_sapi_state(UBYTE nsapi,
278 USHORT stat);
279
280 EXTERN void sndcp_sn_count_req(T_SN_COUNT_REQ * sn_count_req);
281
282 EXTERN USHORT sndcp_swap2(USHORT n);
283
284 EXTERN ULONG sndcp_swap4(ULONG n);
285
286 EXTERN U8 sndcp_get_nsapi_rec_state (U8 nsapi);
287
288 EXTERN void sndcp_set_nsapi_rec_state (U8 nsapi, U8 state);
289
290 EXTERN void sndcp_set_unack_transfer_params (T_LL_UNITDATA_IND* ll_unitdata_ind);
291
292 EXTERN void sndcp_set_ack_transfer_params (T_LL_DATA_IND* ll_data_ind);
293
294 #endif /* !SNDCP_F_H */