FreeCalypso > hg > freecalypso-sw
comparison gsm-fw/g23m-aci/aci/cmh_gpppf.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 : | |
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 : This module defines the functions used by the command | |
18 | handler for GPRS Point-to-Point Protocol ( PPP ). | |
19 +----------------------------------------------------------------------------- | |
20 */ | |
21 | |
22 #if defined (GPRS) && defined (DTI) | |
23 | |
24 #ifndef CMH_PPPF_C | |
25 #define CMH_PPPF_C | |
26 #endif | |
27 | |
28 #include "aci_all.h" | |
29 /*==== INCLUDES ===================================================*/ | |
30 #include "dti.h" /* functionality of the dti library */ | |
31 #include "aci_cmh.h" | |
32 #include "ati_cmd.h" | |
33 #include "aci_cmd.h" | |
34 #include "pcm.h" | |
35 | |
36 #include "dti_conn_mng.h" | |
37 #include "dti_cntrl_mng.h" | |
38 | |
39 #include "aci.h" | |
40 #include "gaci.h" | |
41 #include "gaci_cmh.h" | |
42 #include "psa.h" | |
43 #include "psa_gppp.h" | |
44 #include "psa_sm.h" | |
45 | |
46 #include "cmh.h" | |
47 #include "cmh_gppp.h" | |
48 #include "cmh_sm.h" | |
49 /*==== CONSTANTS ==================================================*/ | |
50 | |
51 /*==== TYPES ======================================================*/ | |
52 | |
53 /*==== EXPORT =====================================================*/ | |
54 | |
55 /*==== VARIABLES ==================================================*/ | |
56 | |
57 /*==== FUNCTIONS ==================================================*/ | |
58 | |
59 | |
60 | |
61 GLOBAL void cmhGPPPS_DTIconnected( UBYTE dti_direction ) | |
62 { | |
63 T_DTI_CONN_LINK_ID link_id = DTI_LINK_ID_NOTPRESENT; | |
64 T_PDP_CONTEXT_INTERNAL *p_pdp_context_node = NULL; | |
65 | |
66 TRACE_FUNCTION ("cmhGPPPS_DTIconnected()"); | |
67 | |
68 p_pdp_context_node = pdp_context_find_node_from_cid( work_cids[0] ); | |
69 if( p_pdp_context_node ) | |
70 { | |
71 | |
72 /* | |
73 *------------------------------------------------------------------- | |
74 * inform DTI Manager | |
75 *------------------------------------------------------------------- | |
76 */ | |
77 switch ( dti_direction ) | |
78 { | |
79 case NAS_HOME: | |
80 link_id = p_pdp_context_node->internal_data.link_id_uart; | |
81 break; | |
82 case NAS_NEIGHBOR: | |
83 link_id = p_pdp_context_node->internal_data.link_id; | |
84 break; | |
85 default: | |
86 return; | |
87 } | |
88 | |
89 dti_cntrl_entity_connected( link_id, DTI_ENTITY_PPPS, DTI_OK ); | |
90 } | |
91 else | |
92 { | |
93 TRACE_ERROR( "ERROR: PDP context not found, in fundtion cmhGPPPS_DTIconnected"); | |
94 } | |
95 | |
96 } | |
97 | |
98 | |
99 #endif /* GPRS */ | |
100 /*==== EOF ========================================================*/ |