FreeCalypso > hg > freecalypso-sw
comparison gsm-fw/g23m-aci/aci/psa_ipap.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 (6147) | |
4 | Modul : PSA_IPAP | |
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 IPA | |
19 | module. | |
20 +----------------------------------------------------------------------------- | |
21 */ | |
22 #if defined (FF_WAP) || defined (FF_SAT_E) | |
23 #ifdef DTI | |
24 | |
25 #ifndef PSA_IPAP_C | |
26 #define PSA_IPAP_C | |
27 #endif | |
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 | |
36 #include "aci.h" | |
37 #include "psa.h" | |
38 #include "aci_fd.h" | |
39 #include "cmh.h" | |
40 #include "dti_conn_mng.h" | |
41 #include "dti_cntrl_mng.h" | |
42 | |
43 #include "wap_aci.h" | |
44 | |
45 #include "psa_ra.h" | |
46 #include "cmh_ra.h" | |
47 | |
48 #include "psa_cc.h" | |
49 | |
50 /*==== CONSTANTS ==================================================*/ | |
51 | |
52 | |
53 /*==== TYPES ======================================================*/ | |
54 | |
55 | |
56 /*==== EXPORT =====================================================*/ | |
57 | |
58 | |
59 /*==== VARIABLES ==================================================*/ | |
60 | |
61 | |
62 /*==== FUNCTIONS ==================================================*/ | |
63 | |
64 | |
65 /* | |
66 +-------------------------------------------------------------------+ | |
67 | PROJECT : GSM-PS (6147) MODULE : PSA_IPA | | |
68 | ROUTINE : psa_ipa_dti_cnf | | |
69 +-------------------------------------------------------------------+ | |
70 | |
71 PURPOSE : processes IPA_DTI_CNF received from IPA. | |
72 | |
73 */ | |
74 | |
75 GLOBAL void psa_ipa_dti_cnf( T_IPA_DTI_CNF *ipa_dti_cnf ) | |
76 { | |
77 TRACE_FUNCTION ("psa_ipa_dti_cnf()"); | |
78 | |
79 switch( ipa_dti_cnf->dti_conn ) | |
80 { | |
81 case(IPA_CONNECT_DTI): | |
82 dti_cntrl_entity_connected( ipa_dti_cnf->link_id, DTI_ENTITY_IP, DTI_OK ); | |
83 break; | |
84 | |
85 case(IPA_DISCONNECT_DTI): | |
86 dti_cntrl_entity_disconnected( ipa_dti_cnf->link_id, DTI_ENTITY_IP ); | |
87 break; | |
88 | |
89 } | |
90 PFREE(ipa_dti_cnf); | |
91 } | |
92 | |
93 | |
94 /* | |
95 +-------------------------------------------------------------------+ | |
96 | PROJECT : GSM-PS (6147) MODULE : PSA_IPA | | |
97 | ROUTINE : psa_ipa_dti_ind | | |
98 +-------------------------------------------------------------------+ | |
99 | |
100 PURPOSE : processes IPA_DTI_CNF received from IPA. | |
101 | |
102 */ | |
103 | |
104 GLOBAL void psa_ipa_dti_ind( T_IPA_DTI_IND *ipa_dti_ind ) | |
105 { | |
106 TRACE_FUNCTION ("psa_ipa_dti_ind()"); | |
107 | |
108 dti_cntrl_entity_disconnected( ipa_dti_ind->link_id, DTI_ENTITY_IP ); | |
109 | |
110 PFREE(ipa_dti_ind); | |
111 } | |
112 | |
113 | |
114 /* | |
115 +-------------------------------------------------------------------+ | |
116 | PROJECT : GSM-PS (6147) MODULE : PSA_IPA | | |
117 | ROUTINE : psa_ipa_config_cnf | | |
118 +-------------------------------------------------------------------+ | |
119 | |
120 PURPOSE : processes IPA_CONFIG_CNF received from IP. | |
121 | |
122 */ | |
123 | |
124 GLOBAL void psa_ipa_config_cnf( T_IPA_CONFIG_CNF *ipa_config_cnf ) | |
125 { | |
126 TRACE_FUNCTION ("psa_ipa_config_cnf()"); | |
127 | |
128 if (wap_state EQ IPA_Configuration) | |
129 { | |
130 wap_state = IPA_Configurated; | |
131 cmhIPA_Configurated(); | |
132 } | |
133 else if (wap_state EQ IPA_Deconfiguration) | |
134 { | |
135 wap_state = IPA_Deconfigurated; | |
136 if (ipa_config_cnf -> all_down EQ IPA_ALLDOWN_TRUE) | |
137 { | |
138 cmhIPA_Deconfigurated(); | |
139 } | |
140 else | |
141 { | |
142 TRACE_EVENT("all entities not down yet"); | |
143 } | |
144 } | |
145 else | |
146 { | |
147 TRACE_EVENT("unexpected IPA_CONFIG_CNF primitive received"); | |
148 } | |
149 | |
150 PFREE(ipa_config_cnf); | |
151 } | |
152 | |
153 #endif /* DTI */ | |
154 | |
155 #endif /* of FF_WAP or SAT E */ |