comparison src/g23m-gprs/grlc/grlc_rdp.c @ 183:219afcfc6250

src/g23m-gprs: initial import from TCS3.2/LoCosto
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 13 Oct 2016 04:24:13 +0000
parents
children
comparison
equal deleted inserted replaced
182:f02d0a0e1849 183:219afcfc6250
1 /*
2 +-----------------------------------------------------------------------------
3 | Project : GPRS (8441)
4 | Modul : GRLC
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 implements primitive handler functions for service
18 | RD of entity GRLC.
19 +-----------------------------------------------------------------------------
20 */
21
22 #ifndef GRLC_RDP_C
23 #define GRLC_RDP_C
24 #endif
25
26 #define ENTITY_GRLC
27
28 /*==== INCLUDES =============================================================*/
29
30 #include "typedefs.h" /* to get Condat data types */
31
32 #include "vsi.h" /* to get a lot of macros */
33 #include "macdef.h"
34 #include "gprs.h"
35 #include "gsm.h" /* to get a lot of macros */
36 #include "ccdapi.h" /* to get CCD API */
37 #include "cnf_grlc.h" /* to get cnf-definitions */
38 #include "mon_grlc.h" /* to get mon-definitions */
39 #include "prim.h" /* to get the definitions of used SAP and directions */
40 #include "message.h"
41 #include "grlc.h" /* to get the global entity definitions */
42 #include "grlc_tms.h"
43 #include "grlc_rdf.h"
44 #include "grlc_f.h"
45
46 /*==== CONST ================================================================*/
47
48
49 /*==== LOCAL VARS ===========================================================*/
50
51 /*==== PRIVATE FUNCTIONS ====================================================*/
52
53 /*==== PUBLIC FUNCTIONS =====================================================*/
54
55
56 /*
57 +------------------------------------------------------------------------------
58 | Function : rd_t3190
59 +------------------------------------------------------------------------------
60 | Description : Handles the primitive T3190
61 |
62 | Parameters : *t3190 - Ptr to primitive payload
63 |
64 +------------------------------------------------------------------------------
65 */
66 GLOBAL void rd_t3190 ( void )
67 {
68 TRACE_FUNCTION( "t3190" );
69
70
71 switch( GET_STATE( RD ) )
72 {
73 case RD_ACK:
74 case RD_UACK:
75 case RD_REL_ACK:
76 case RD_REL_UACK:
77 SET_STATE(RD,RD_NULL);
78 TRACE_EVENT("timeout T3190");
79
80 rd_free_desc_list_partions();
81 rd_free_database_partions();
82
83 grlc_data->tbf_ctrl[grlc_data->dl_index].vs_vr = grlc_data->rd.vr;
84 grlc_data->tbf_ctrl[grlc_data->dl_index].va_vq = grlc_data->rd.vq;
85 grlc_trace_tbf_par ( grlc_data->dl_index );
86 sig_rd_tm_end_of_tbf(TRUE);
87 break;
88 default:
89 TRACE_ERROR( "T3190 unexpected" );
90 break;
91 }
92
93 } /* rd_t3190() */
94
95
96
97 /*
98 +------------------------------------------------------------------------------
99 | Function : rd_t3192
100 +------------------------------------------------------------------------------
101 | Description : Handles the primitive T3192
102 |
103 | Parameters : *t3192 - Ptr to primitive payload
104 |
105 +------------------------------------------------------------------------------
106 */
107 GLOBAL void rd_t3192 ( void )
108 {
109 TRACE_FUNCTION( "t3192" );
110
111
112 switch( GET_STATE( RD ) )
113 {
114 case RD_REL_ACK:
115 case RD_REL_UACK:
116 SET_STATE(RD,RD_NULL);
117 grlc_data->tbf_ctrl[grlc_data->dl_index].vs_vr = grlc_data->rd.vr;
118 grlc_data->tbf_ctrl[grlc_data->dl_index].va_vq = grlc_data->rd.vq;
119 grlc_trace_tbf_par ( grlc_data->dl_index );
120 sig_rd_tm_end_of_tbf(FALSE);
121 break;
122 default:
123 TRACE_ERROR( "T3192 unexpected" );
124 break;
125 }
126
127 } /* rd_t3192() */
128
129
130
131
132
133