comparison src/g23m-gprs/sndcp/sndcp_pds.c @ 1:d393cd9bb723

src/g23m-*: initial import from Magnetite
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 15 Jul 2018 04:40:46 +0000
parents
children
comparison
equal deleted inserted replaced
0:b6a5e36de839 1:d393cd9bb723
1 /*
2 +-----------------------------------------------------------------------------
3 | Project : GPRS (8441)
4 | Modul : sndcp_pds.c
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 modul is part of the entity SNDCP and implements all
18 | functions to handles the incoming process internal signals as
19 | described in the SDL-documentation (PD-statemachine)
20 +-----------------------------------------------------------------------------
21 */
22
23
24 #define ENTITY_SNDCP
25
26 /*==== INCLUDES =============================================================*/
27
28 #include "typedefs.h" /* to get Condat data types */
29 #include "vsi.h" /* to get a lot of macros */
30 #include "macdef.h"
31 #include "gsm.h" /* to get a lot of macros */
32 #include "prim.h" /* to get the definitions of used SAP and directions */
33
34 #include "dti.h"
35
36 #include "sndcp.h" /* to get the global entity definitions */
37 #include "sndcp_f.h" /* to get the functions to access the global arrays*/
38
39 /*==== CONST ================================================================*/
40
41 /*==== LOCAL VARS ===========================================================*/
42
43 /*==== PRIVATE FUNCTIONS ====================================================*/
44
45 /*==== PUBLIC FUNCTIONS =====================================================*/
46
47
48
49 /*
50 +------------------------------------------------------------------------------
51 | Function : sig_sd_pd_getunitdata_req
52 +------------------------------------------------------------------------------
53 | Description : Handles the internal signal SIG_SD_PD_GETUNITDATA_REQ
54 |
55 | Parameters : the affected sapi.
56 |
57 +------------------------------------------------------------------------------
58 */
59 GLOBAL void sig_sd_pd_getunitdata_req (UBYTE sapi)
60 {
61 UBYTE sapi_index = 0;
62
63 TRACE_ISIG( "sig_sd_pd_getunitdata_req" );
64
65 /*
66 * set service instance according to sapi in primitive
67 */
68 sndcp_get_sapi_index(sapi, &sapi_index);
69 sndcp_data->pd = & sndcp_data->pd_base[sapi_index];
70
71 switch( GET_STATE( PD ) )
72 {
73 case PD_DEFAULT:
74 {
75 PALLOC(ll_getunitdata_req, LL_GETUNITDATA_REQ);
76
77 ll_getunitdata_req->sapi = sapi;
78 /*
79 * TLLI is not evaluated by LLC.
80 */
81 #ifdef FLOW_TRACE
82 sndcp_trace_flow_control(FLOW_TRACE_SNDCP,
83 FLOW_TRACE_DOWN,
84 FLOW_TRACE_BOTTOM,
85 TRUE);
86 #endif
87 PSEND(hCommLLC, ll_getunitdata_req);
88 }
89 break;
90 default:
91 TRACE_ERROR( "SIG_SD_PD_GETUNITDATA_REQ unexpected" );
92 break;
93 }
94 } /* sig_sd_pd_getunitdata_req() */
95
96