comparison gsm-fw/g23m-aci/aci/sap_ppp.c @ 775:eedbf248bac0

gsm-fw/g23m-aci subtree: initial import from LoCosto source
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Sun, 12 Oct 2014 01:45:14 +0000
parents
children
comparison
equal deleted inserted replaced
774:40a721fd9854 775:eedbf248bac0
1 /*
2 +-----------------------------------------------------------------------------
3 | Project : GSM-PS
4 | Modul :
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 : MUX for PPP primitives
18 |
19 | Different cases occur for same PPP primitives. In this
20 | file the correct PSA function will be called
21 +-----------------------------------------------------------------------------
22 */
23
24 /*==== INCLUDES ===================================================*/
25
26 /* All this is only needed if we have GPRS, an internal WAP application, or
27 * Riviera data. */
28 #if defined(FF_WAP) || defined(GPRS) || defined(FF_PPP) || defined(FF_SAT_E)
29
30 #ifndef SAP_PPPP_C
31 #define SAP_PPPP_C
32 #endif
33
34 #include "aci_all.h"
35 /*==== INCLUDES ===================================================*/
36 #include "aci_cmh.h"
37 #include "ati_cmd.h"
38 #include "aci_cmd.h"
39
40 #if defined (FF_WAP) || defined (FF_GPF_TCPIP) || defined (FF_SAT_E)
41 #include "wap_aci.h"
42 #endif /* WAP */
43
44 #include "aci.h"
45
46 #include "dti.h"
47 #include "dti_conn_mng.h"
48 #include "dti_cntrl_mng.h"
49 #include "psa_ppp_w.h"
50 /*==== CONSTANTS ==================================================*/
51
52
53 /*==== TYPES ======================================================*/
54
55
56 /*==== EXPORT =====================================================*/
57 #if defined (GPRS) AND defined (DTI)
58 EXTERN void psa_gppp_establish_cnf ( T_PPP_ESTABLISH_CNF *ppp_establish_cnf );
59 EXTERN void psa_gppp_terminate_ind ( T_PPP_TERMINATE_IND *ppp_terminate_ind );
60 EXTERN void psa_gppp_pdp_activate_ind ( T_PPP_PDP_ACTIVATE_IND *ppp_pdp_activate_ind );
61 EXTERN void psa_gppp_modification_cnf ( T_PPP_MODIFICATION_CNF *ppp_modification_cnf );
62 EXTERN void psa_gppp_dti_connected_ind ( T_PPP_DTI_CONNECTED_IND *ppp_dti_connected_ind );
63 #endif /* GPRS */
64
65 #if defined(FF_WAP) || defined(FF_PPP) || defined (FF_GPF_TCPIP) || defined(FF_SAT_E)
66 EXTERN void psa_wppp_establish_cnf(T_PPP_ESTABLISH_CNF *ppp_establish_cnf);
67 EXTERN void psa_wppp_terminate_ind(T_PPP_TERMINATE_IND *ppp_terminate_ind);
68 EXTERN void psa_wppp_dti_connected_ind(T_PPP_DTI_CONNECTED_IND *ppp_dti_connected_ind);
69 #endif /* WAP or FF_PPP or SAT E */
70 /*==== VARIABLES ==================================================*/
71
72
73 /*==== FUNCTIONS ==================================================*/
74
75 /*
76 +-------------------------------------------------------------------+
77 | PROJECT : GSM MODULE : SAP_DTI |
78 | ROUTINE : psa_ppp_establish_cnf |
79 +-------------------------------------------------------------------+
80
81 PURPOSE :
82 */
83
84 GLOBAL void psa_ppp_establish_cnf ( T_PPP_ESTABLISH_CNF *ppp_establish_cnf )
85 {
86 TRACE_FUNCTION("psa_ppp_establish_cnf()...") ;
87 #if defined (FF_WAP) || defined (FF_GPF_TCPIP) || defined (FF_SAT_E)
88 if( Wap_Call EQ TRUE )
89 {
90 psa_wppp_establish_cnf(ppp_establish_cnf);
91 return;
92 }
93 else
94 #endif /* WAP or SAT E */
95 #ifdef FF_PPP
96 if (pppShrdPrm.is_PPP_CALL EQ TRUE)
97 {
98 psa_wppp_establish_cnf(ppp_establish_cnf);
99 return;
100 }
101 else
102 #endif /* FF_PPP */
103 {
104 #if defined (GPRS) AND defined (DTI)
105 psa_gppp_establish_cnf ( ppp_establish_cnf );
106 return;
107 #endif /* GPRS */
108 }
109
110 /* The primitive is PFREEd in the functions called. */
111 }
112
113 /*
114 +-------------------------------------------------------------------+
115 | PROJECT : GSM MODULE : SAP_DTI |
116 | ROUTINE : psa_ppp_terminate_ind |
117 +-------------------------------------------------------------------+
118
119 PURPOSE :
120 */
121
122 GLOBAL void psa_ppp_terminate_ind ( T_PPP_TERMINATE_IND *ppp_terminate_ind )
123 {
124 #if defined (FF_WAP) || defined (FF_GPF_TCPIP) || defined (FF_SAT_E)
125 if( Wap_Call EQ TRUE )
126 {
127 psa_wppp_terminate_ind(ppp_terminate_ind);
128 return;
129 }
130 else
131 #endif /* WAP or SAT E */
132 #ifdef FF_PPP
133 if (pppShrdPrm.is_PPP_CALL EQ TRUE)
134 {
135 psa_wppp_terminate_ind(ppp_terminate_ind);
136 return;
137 }
138 else
139 #endif /* FF_TCP_IP */
140 {
141 #if defined (GPRS) AND defined (DTI)
142 psa_gppp_terminate_ind ( ppp_terminate_ind );
143 return;
144 #endif /* GPRS */
145 }
146
147 /* The primitive is PFREEd in the function called. */
148 }
149
150 /*
151 +-------------------------------------------------------------------+
152 | PROJECT : GSM MODULE : SAP_DTI |
153 | ROUTINE : psa_ppp_pdp_activate_ind|
154 +-------------------------------------------------------------------+
155
156 PURPOSE :
157 */
158
159 GLOBAL void psa_ppp_pdp_activate_ind ( T_PPP_PDP_ACTIVATE_IND *ppp_pdp_activate_ind )
160 {
161 #if defined (FF_WAP) || defined (FF_GPF_TCPIP) || defined (FF_SAT_E)
162
163 if( Wap_Call EQ TRUE )
164 {
165 PFREE (ppp_pdp_activate_ind);
166 return;
167 }
168 else
169 #endif /* WAP or SAT E */
170 {
171 #if defined (GPRS) AND defined (DTI)
172 psa_gppp_pdp_activate_ind ( ppp_pdp_activate_ind );
173 return;
174 #endif /* GPRS */
175 }
176
177 /* The primitive is PFREEd in the function called. */
178 }
179
180 /*
181 +-------------------------------------------------------------------+
182 | PROJECT : GSM MODULE : SAP_DTI |
183 | ROUTINE : psa_ppp_modification_cnf|
184 +-------------------------------------------------------------------+
185
186 PURPOSE :
187 */
188
189 GLOBAL void psa_ppp_modification_cnf ( T_PPP_MODIFICATION_CNF *ppp_modification_cnf )
190 {
191 #if defined (GPRS) AND defined (DTI)
192 psa_gppp_modification_cnf ( ppp_modification_cnf );
193 return;
194 #endif /* GPRS */
195
196 /* The primitive is PFREEd in the function called. */
197 }
198
199 /*
200 +--------------------------------------------------------------------+
201 | PROJECT : GSM MODULE : SAP_DTI |
202 | ROUTINE : psa_ppp_dti_connected_ind|
203 +--------------------------------------------------------------------+
204
205 PURPOSE :
206 */
207
208 GLOBAL void psa_ppp_dti_connected_ind ( T_PPP_DTI_CONNECTED_IND *ppp_dti_connected_ind )
209 {
210
211 TRACE_FUNCTION("psa_ppp_dti_connected_ind()");
212
213 #if defined (FF_WAP) || defined (FF_GPF_TCPIP) || defined (FF_SAT_E)
214 if( Wap_Call EQ TRUE )
215 {
216 psa_wppp_dti_connected_ind(ppp_dti_connected_ind);
217 return;
218 }
219 else
220 #endif /* WAP or SAT E */
221 #ifdef FF_PPP
222 if (pppShrdPrm.is_PPP_CALL EQ TRUE)
223 {
224 psa_wppp_dti_connected_ind(ppp_dti_connected_ind);
225 return;
226 }
227 else
228 #endif /* FF_PPP */
229 {
230 #if defined (GPRS) AND defined (DTI)
231 psa_gppp_dti_connected_ind ( ppp_dti_connected_ind );
232 return;
233 #endif /* GPRS */
234 }
235
236 /* The primitive is PFREEd in the function called. */
237 }
238
239
240
241 #endif /* WAP or GPRS or FF_PPP or SAT E */