comparison g23m/condat/ms/src/aci/psa_udpap.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 (6147)
4 | Modul : PSA_UDPAP
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 : This module defines the processing functions for the
18 | primitives sent to the protocol stack adapter by the UDPA
19 | module.
20 +-----------------------------------------------------------------------------
21 */
22 #ifdef DTI
23 #ifdef CO_UDP_IP
24
25 #ifndef PSA_UDPAP_C
26 #define PSA_UDPAP_C
27 #endif /* of PSA_UDPAP_C */
28
29 #include "aci_all.h"
30 /*==== INCLUDES ===================================================*/
31 #include "aci_cmh.h"
32 #include "ati_cmd.h"
33 #include "aci_cmd.h"
34 #include "dti.h" /* functionality of the dti library */
35 #include "dti_conn_mng.h"
36 #include "dti_cntrl_mng.h"
37
38 #include "aci_fd.h"
39 #include "aci.h"
40 #include "psa.h"
41 #include "psa_l2r.h"
42 #include "cmh.h"
43 #include "cmh_ra.h"
44 #include "cmh_l2r.h"
45 #include "psa_tcpip.h"
46 #include "psa_cc.h"
47
48 #include "wap_aci.h"
49 #include "psa_sat.h"
50
51 /*==== CONSTANTS ==================================================*/
52
53 /*==== TYPES ======================================================*/
54
55 /*==== EXPORT =====================================================*/
56
57 /*==== VARIABLES ==================================================*/
58
59 /*==== FUNCTIONS ==================================================*/
60
61 /*
62 +-------------------------------------------------------------------+
63 | PROJECT : GSM-PS (6147) MODULE : PSA_UDPA |
64 | ROUTINE : psa_udpa_dti_cnf |
65 +-------------------------------------------------------------------+
66
67 PURPOSE : processes the UDPA_DTI_CNF primitive sent by UDP.
68
69 */
70
71 GLOBAL const void psa_udpa_dti_cnf(T_UDPA_DTI_CNF *udpa_dti_cnf)
72 {
73 TRACE_FUNCTION ("psa_udpa_dti_cnf()");
74
75 switch( udpa_dti_cnf->dti_conn )
76 {
77 case(UDPA_CONNECT_DTI):
78 dti_cntrl_entity_connected( udpa_dti_cnf->link_id, DTI_ENTITY_UDP, DTI_OK );
79 break;
80
81 case(UDPA_DISCONNECT_DTI):
82 dti_cntrl_entity_disconnected( udpa_dti_cnf->link_id, DTI_ENTITY_UDP );
83 break;
84
85 }
86
87 PFREE(udpa_dti_cnf);
88 }
89
90
91 /*
92 +-------------------------------------------------------------------+
93 | PROJECT : GSM-PS (6147) MODULE : PSA_UDPA |
94 | ROUTINE : psa_udpa_dti_ind |
95 +-------------------------------------------------------------------+
96
97 PURPOSE : processes the UDPA_DTI_IND primitive sent by UDP.
98
99 */
100
101 GLOBAL const void psa_udpa_dti_ind(T_UDPA_DTI_IND *udpa_dti_ind)
102 {
103 TRACE_FUNCTION ("psa_udpa_dti_ind()");
104
105 dti_cntrl_entity_disconnected( udpa_dti_ind->link_id, DTI_ENTITY_UDP );
106
107 PFREE(udpa_dti_ind);
108 }
109
110
111 /*
112 +-------------------------------------------------------------------+
113 | PROJECT : GSM-PS (6147) MODULE : PSA_UDPA |
114 | ROUTINE : psa_udpa_config_cnf |
115 +-------------------------------------------------------------------+
116
117 PURPOSE : processes the UDPA_CONFIG_CNF primitive sent by UDP.
118
119 */
120
121 GLOBAL const void psa_udpa_config_cnf(T_UDPA_CONFIG_CNF *udpa_config_cnf)
122 {
123 TRACE_FUNCTION ("psa_udpa_config_cnf()");
124
125 if (wap_state EQ UDPA_Configuration)
126 {
127 wap_state = UDPA_Configurated;
128 cmhUDPA_Configurated();
129 }
130 else if (wap_state EQ UDPA_Deconfiguration)
131 {
132 wap_state = UPDA_Deconfigurated;
133 cmhUDPA_Deconfigurated();
134 }
135 else
136 {
137 TRACE_EVENT("unexpected UDPA_CONFIG_CNF primitive received");
138 }
139
140 PFREE(udpa_config_cnf);
141 }
142
143 #endif /* CO_UDP_IP */
144
145 #endif /* DTI */