comparison src/aci2/aci/cmh_gpppf.c @ 3:93999a60b835

src/aci2, src/condat2: import of g23m/condat source pieces from TCS211
author Mychaela Falconia <falcon@freecalypso.org>
date Mon, 26 Sep 2016 00:29:36 +0000
parents
children
comparison
equal deleted inserted replaced
2:c41a534f33c6 3:93999a60b835
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 GLOBAL void cmhGPPPS_Disable( T_DTI_CONN_LINK_ID link_id )
60 {
61
62 cmhSM_deactivateAContext(CMD_SRC_NONE, gaci_get_cid_over_link_id( link_id ));
63 }
64
65 GLOBAL void cmhGPPPS_DTIconnected( UBYTE dti_direction )
66 {
67 T_DTI_CONN_LINK_ID link_id = DTI_LINK_ID_NOTPRESENT;
68
69 TRACE_FUNCTION ("cmhGPPPS_DTIconnected()");
70
71 /*
72 *-------------------------------------------------------------------
73 * inform DTI Manager
74 *-------------------------------------------------------------------
75 */
76 switch ( dti_direction )
77 {
78 case PPP_DTI_CONN_PEER:
79 link_id = pdp_context[work_cids[0] - 1].link_id_uart;
80 break;
81 case PPP_DTI_CONN_PROT:
82 link_id = cmhSM_get_link_id_SNDCP_peer( work_cids[0], SNDCP_PEER_NORMAL );
83 break;
84 default:
85 return;
86 }
87
88 dti_cntrl_entity_connected( link_id, DTI_ENTITY_PPPS, DTI_OK );
89 }
90
91
92 #endif /* GPRS */
93 /*==== EOF ========================================================*/