comparison g23m/condat/ms/src/aci/sap_pppp.c @ 0:509db1a7b7b8

initial import: leo2moko-r1
author Space Falcon <falcon@ivan.Harhan.ORG>
date Mon, 01 Jun 2015 03:24:05 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:509db1a7b7b8
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 #ifndef SAP_PPPP_C
27 #define SAP_PPPP_C
28 #endif
29
30 #include "aci_all.h"
31 /*==== INCLUDES ===================================================*/
32 #include "aci_cmh.h"
33 #include "ati_cmd.h"
34 #include "aci_cmd.h"
35
36 #if defined (FF_WAP) || defined (FF_SAT_E)
37 #include "wap_aci.h"
38 #endif /* WAP or SAT E */
39
40 #include "aci.h"
41
42 /*==== CONSTANTS ==================================================*/
43
44
45 /*==== TYPES ======================================================*/
46
47
48 /*==== EXPORT =====================================================*/
49 #ifdef GPRS
50 EXTERN const void psa_gppp_establish_cnf ( T_PPP_ESTABLISH_CNF *ppp_establish_cnf );
51 EXTERN const void psa_gppp_terminate_ind ( T_PPP_TERMINATE_IND *ppp_terminate_ind );
52 EXTERN const void psa_gppp_pdp_activate_ind ( T_PPP_PDP_ACTIVATE_IND *ppp_pdp_activate_ind );
53 EXTERN const void psa_gppp_modification_cnf ( T_PPP_MODIFICATION_CNF *ppp_modification_cnf );
54 EXTERN const void psa_gppp_dti_connected_ind ( T_PPP_DTI_CONNECTED_IND *ppp_dti_connected_ind );
55 #endif /* GPRS */
56
57 #if defined (FF_WAP) || defined (FF_SAT_E)
58 EXTERN const void psa_wppp_establish_cnf(T_PPP_ESTABLISH_CNF *ppp_establish_cnf);
59 EXTERN const void psa_wppp_terminate_ind(T_PPP_TERMINATE_IND *ppp_terminate_ind);
60 #endif /* WAP or SAT E */
61 /*==== VARIABLES ==================================================*/
62
63
64 /*==== FUNCTIONS ==================================================*/
65
66 /*
67 +-------------------------------------------------------------------+
68 | PROJECT : GSM MODULE : SAP_DTI |
69 | ROUTINE : psa_ppp_establish_cnf |
70 +-------------------------------------------------------------------+
71
72 PURPOSE :
73 */
74
75 GLOBAL const void psa_ppp_establish_cnf ( T_PPP_ESTABLISH_CNF *ppp_establish_cnf )
76 {
77 #if defined (FF_WAP) || defined (FF_SAT_E)
78 if( Wap_Call EQ TRUE )
79 {
80 psa_wppp_establish_cnf(ppp_establish_cnf);
81 return;
82 }
83 else
84 #endif /* WAP or SAT E */
85 {
86 #ifdef GPRS
87 psa_gppp_establish_cnf ( ppp_establish_cnf );
88 return;
89 #endif /* GPRS */
90 }
91
92 PFREE(ppp_establish_cnf);
93 }
94
95 /*
96 +-------------------------------------------------------------------+
97 | PROJECT : GSM MODULE : SAP_DTI |
98 | ROUTINE : psa_ppp_terminate_ind |
99 +-------------------------------------------------------------------+
100
101 PURPOSE :
102 */
103
104 GLOBAL const void psa_ppp_terminate_ind ( T_PPP_TERMINATE_IND *ppp_terminate_ind )
105 {
106 #if defined (FF_WAP) || defined (FF_GPF_TCPIP) || defined (FF_SAT_E)
107 if( Wap_Call EQ TRUE )
108 {
109 psa_wppp_terminate_ind(ppp_terminate_ind);
110 return;
111 }
112 else
113 #endif /* WAP OR FF_GPF_TCPIP OR SAT E */
114 {
115 #ifdef GPRS
116 psa_gppp_terminate_ind ( ppp_terminate_ind );
117 return;
118 #endif /* GPRS */
119 }
120
121 PFREE(ppp_terminate_ind);
122 }
123
124 /*
125 +-------------------------------------------------------------------+
126 | PROJECT : GSM MODULE : SAP_DTI |
127 | ROUTINE : psa_ppp_pdp_activate_ind|
128 +-------------------------------------------------------------------+
129
130 PURPOSE :
131 */
132
133 GLOBAL const void psa_ppp_pdp_activate_ind ( T_PPP_PDP_ACTIVATE_IND *ppp_pdp_activate_ind )
134 {
135 #if defined (FF_WAP) || defined (FF_SAT_E)
136 if( Wap_Call EQ TRUE )
137 {
138 return;
139 }
140 else
141 #endif /* WAP or SAT E */
142 {
143 #ifdef GPRS
144 psa_gppp_pdp_activate_ind ( ppp_pdp_activate_ind );
145 return;
146 #endif /* GPRS */
147 }
148
149 PFREE(ppp_pdp_activate_ind);
150 }
151
152 /*
153 +-------------------------------------------------------------------+
154 | PROJECT : GSM MODULE : SAP_DTI |
155 | ROUTINE : psa_ppp_modification_cnf|
156 +-------------------------------------------------------------------+
157
158 PURPOSE :
159 */
160
161 GLOBAL const void psa_ppp_modification_cnf ( T_PPP_MODIFICATION_CNF *ppp_modification_cnf )
162 {
163 #ifdef GPRS
164 psa_gppp_modification_cnf ( ppp_modification_cnf );
165 return;
166 #endif /* GPRS */
167
168 PFREE(ppp_modification_cnf);
169 }
170
171 /*
172 +--------------------------------------------------------------------+
173 | PROJECT : GSM MODULE : SAP_DTI |
174 | ROUTINE : psa_ppp_dti_connected_ind|
175 +--------------------------------------------------------------------+
176
177 PURPOSE :
178 */
179
180 GLOBAL const void psa_ppp_dti_connected_ind ( T_PPP_DTI_CONNECTED_IND *ppp_dti_connected_ind )
181 {
182 #if defined (FF_WAP) || defined (FF_SAT_E)
183 if( Wap_Call EQ TRUE )
184 {
185 return;
186 }
187 else
188 #endif /* WAP or SAT E */
189 {
190 #ifdef GPRS
191 psa_gppp_dti_connected_ind ( ppp_dti_connected_ind );
192 return;
193 #endif /* GPRS */
194 }
195
196 PFREE(ppp_dti_connected_ind);
197 }