comparison src/g23m-gprs/sndcp/sndcp_mgf.h @ 1:fa8dc04885d8

src/g23m-*: import from Magnetite
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 16 Oct 2020 06:25:50 +0000
parents
children
comparison
equal deleted inserted replaced
0:4e78acac3d88 1:fa8dc04885d8
1 /*
2 +-----------------------------------------------------------------------------
3 | Project : GPRS (8441)
4 | Modul : sndcp_mgf.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_mgf.c
18 +-----------------------------------------------------------------------------
19 */
20
21 /*---- HISTORY --------------------------------------------------------------*/
22
23 #ifndef SNDCP_MGF_H
24 #define SNDCP_MGF_H
25
26
27 #define NAS_HCOMP_BOTH_DIRECT 3
28
29 EXTERN void mg_check_cnf_xid (UBYTE* ret, UBYTE sapi);
30
31 EXTERN void mg_check_ind_xid (UBYTE* ret, UBYTE sapi);
32
33 #ifndef NCONFIG
34 EXTERN void mg_config_delay (USHORT millis);
35 #endif
36
37 EXTERN void mg_delete_npdus (UBYTE nsapi);
38
39 EXTERN void mg_del_comp_pdus_ack (UBYTE sapi);
40
41 EXTERN void mg_reset_compressors (UBYTE nsapi);
42
43 EXTERN void mg_xid_cnf_ok_res(UBYTE sapi);
44
45 EXTERN void mg_dti_close (UBYTE nsapi);
46
47 EXTERN void mg_dti_open (UBYTE nsapi);
48
49 EXTERN void mg_decode_xid (T_sdu* sdu,
50 T_XID_BLOCK* xid_block,
51 UBYTE* ret,
52 UBYTE sapi);
53
54 EXTERN void mg_clean_xid (UBYTE sapi);
55
56 EXTERN void mg_init (void);
57
58 EXTERN void mg_is_ack (T_snsm_qos snsm_qos,
59 BOOL* spec,
60 BOOL* b);
61
62 EXTERN void mg_is_rel_comp_nec (UBYTE nsapi, BOOL* nec);
63
64 EXTERN void mg_rel_nsapi_nec (UBYTE nsapi);
65
66 EXTERN void mg_re_negotiate(UBYTE sapi);
67
68 EXTERN void mg_re_negotiate_ack(UBYTE sapi,
69 U16 cause);
70
71 EXTERN void mg_resend_xid_if_nec(UBYTE sapi);
72
73 EXTERN void mg_reset_comp_ack (UBYTE sapi);
74
75 EXTERN void mg_reset_states_n_rej (UBYTE sapi_index);
76
77 EXTERN void mg_resume_affected_nus(UBYTE sapi);
78
79 #ifndef SNDCP_UPM_INCLUDED
80 EXTERN void mg_send_modification_if_nec (UBYTE sapi);
81 #endif
82
83 EXTERN void mg_send_snsm_activate_res (UBYTE nsapi);
84
85 #ifdef SNDCP_UPM_INCLUDED
86 EXTERN void mg_send_empty_xid_req (T_SN_ACTIVATE_REQ* snsm_activate_ind);
87 #else
88 EXTERN void mg_send_empty_xid_req (T_SNSM_ACTIVATE_IND* snsm_activate_ind);
89 #endif /*#ifdef SNDCP_UPM_INCLUDED*/
90
91 #ifdef SNDCP_UPM_INCLUDED
92 EXTERN void mg_send_xid_req (T_SN_ACTIVATE_REQ* snsm_activate_ind);
93 #else
94 EXTERN void mg_send_xid_req (T_SNSM_ACTIVATE_IND* snsm_activate_ind);
95 #endif /*#ifdef SNDCP_UPM_INCLUDED*/
96
97 EXTERN void mg_send_xid_req_del (UBYTE sapi);
98
99 EXTERN void mg_set_cur_xid_block (UBYTE sapi);
100
101 #ifdef SNDCP_UPM_INCLUDED
102 EXTERN void mg_set_new_xid_block (T_SN_ACTIVATE_REQ* snsm_activate_ind);
103 #else
104 EXTERN void mg_set_new_xid_block (T_SNSM_ACTIVATE_IND* snsm_activate_ind);
105 #endif /*#ifdef SNDCP_UPM_INCLUDED*/
106
107 #ifdef SNDCP_UPM_INCLUDED
108 EXTERN void mg_set_req_xid_block (T_SN_ACTIVATE_REQ* snsm_activate_ind);
109 #else
110 EXTERN void mg_set_req_xid_block (T_SNSM_ACTIVATE_IND* snsm_activate_ind);
111 #endif /*#ifdef SNDCP_UPM_INCLUDED*/
112
113 EXTERN void mg_set_res_cur_xid_block (UBYTE sapi, USHORT* res_sdu_len);
114
115 EXTERN void mg_set_xid_params (UBYTE sapi, T_sdu* sdu, T_XID_BLOCK block);
116
117 EXTERN void mg_set_res_xid_params (T_sdu* sdu, UBYTE sapi);
118
119 EXTERN void mg_suspend_affected_nus(UBYTE sapi);
120
121 EXTERN void mg_no_col_no_re(T_LL_ESTABLISH_IND* ll_establish_ind);
122
123 EXTERN void mg_no_col_re(T_LL_ESTABLISH_IND* ll_establish_ind);
124
125 EXTERN void mg_col_no_re(T_LL_ESTABLISH_IND* ll_establish_ind);
126
127 EXTERN void mg_col_re(T_LL_ESTABLISH_IND* ll_establish_ind);
128
129 EXTERN void mg_get_sapi_dntt_rej (UBYTE sapi, UBYTE dntt, BOOL* rej);
130
131 EXTERN void mg_get_sapi_pntt_rej (UBYTE sapi, UBYTE pntt, BOOL* rej);
132
133 EXTERN void mg_get_sapi_pntt_nsapi (UBYTE sapi, UBYTE pntt, UBYTE nsapi, BOOL* used);
134
135 EXTERN void mg_get_sapi_pcomp_pntt (UBYTE sapi, UBYTE pcomp, UBYTE* pntt);
136
137 #ifdef TI_DUAL_MODE
138 EXTERN T_SN_GET_PENDING_PDU_CNF* mg_get_unsent_unconfirmed_npdus(U8 nsapi, T_SN_GET_PENDING_PDU_CNF* sn_get_pending_pdu_cnf);
139
140 EXTERN void mg_clean_ack_npdu_queues_leave_data(U8 nsapi);
141
142 EXTERN void mg_clean_unack_npdu_queues_including_data(U8 nsapi);
143 EXTERN void sm_make_test_pending_pdu_cnf(T_SN_GET_PENDING_PDU_CNF* sn_get_pending_pdu_cnf,
144 T_SN_TEST_GET_PENDING_PDU_CNF* sn_test_get_pending_pdu_cnf);
145
146 #endif
147
148
149
150 #endif /* !SNDCP_MGF_H */
151