comparison src/g23m-gprs/gmm/gmm_txs.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 : gmm_txs.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 GMM and implements all
18 | functions to handles the incoming process internal signals as
19 | described in the SDL-documentation (TX-statemachine)
20 +-----------------------------------------------------------------------------
21 */
22
23
24 #ifndef GMM_TXS_C
25 #define GMM_TXS_C
26 #endif
27
28 #define ENTITY_GMM
29
30 /*==== INCLUDES =============================================================*/
31
32 #include "typedefs.h" /* to get Condat data types */
33 #include "vsi.h" /* to get a lot of macros */
34 #include "macdef.h"
35 #include "gprs.h"
36 #include "gsm.h" /* to get a lot of macros */
37 #include "ccdapi.h" /* to get CCD API */
38 #include "cnf_gmm.h" /* to get cnf-definitions */
39 #include "mon_gmm.h" /* to get mon-definitions */
40 #include "prim.h" /* to get the definitions of used SAP and directions */
41 #include "gmm.h" /* to get the global entity definitions */
42 #include "gmm_txf.h" /* to get the local funktions */
43
44
45 /*==== CONST ================================================================*/
46
47 /*==== LOCAL VARS ===========================================================*/
48
49 /*==== PRIVATE FUNCTIONS ====================================================*/
50
51 /*==== PUBLIC FUNCTIONS =====================================================*/
52
53
54
55 /*
56 +------------------------------------------------------------------------------
57 | Function : sig_kern_tx_data_req
58 +------------------------------------------------------------------------------
59 | Description : Handles the internal signal SIG_KERN_TX_DATA_REQ
60 |
61 | Parameters : void
62 |
63 +------------------------------------------------------------------------------
64 */
65 GLOBAL void sig_kern_tx_data_req ( T_TLLI_TYPE tlli_type, UBYTE msg_type )
66 {
67 TRACE_ISIG( "sig_kern_tx_data_req" );
68 tx_unitdata_req ( tlli_type, msg_type );
69
70 } /* sig_kern_tx_data_req() */
71
72 /*
73 +------------------------------------------------------------------------------
74 | Function : sig_rx_tx_data_req
75 +------------------------------------------------------------------------------
76 | Description : Handles the internal signal SIG_KERN_TX_DATA_REQ
77 |
78 | Parameters : void
79 |
80 +------------------------------------------------------------------------------
81 */
82 GLOBAL void sig_rx_tx_data_req ( T_TLLI_TYPE tlli_type, UBYTE msg_type )
83 {
84 TRACE_ISIG( "sig_rx_tx_data_req" );
85
86 #ifdef _SIMULATION_
87 switch ( msg_type ) {
88 case ATTACH_REQUEST:
89 TRACE_EVENT ( " send: ATTACH_REQUEST");break;
90 case ATTACH_ACCEPT:
91 TRACE_EVENT ( " send: ATTACH_ACCEPT");break;
92 case ATTACH_COMPLETE:
93 TRACE_EVENT ( " send: ATTACH_COMPLETE");break;
94 case ATTACH_REJECT:
95 TRACE_EVENT ( " send: ATTACH_REJECT");break;
96 case D_DETACH_REQUEST:
97 TRACE_EVENT ( " send: DETACH_REQUEST");break;
98 case D_DETACH_ACCEPT:
99 TRACE_EVENT ( " send: DETACH_ACCEPT");break;
100 case ROUTING_AREA_UPDATE_REQUEST:
101 TRACE_EVENT ( " send: RAU_REQUEST");break;
102 case ROUTING_AREA_UPDATE_ACCEPT:
103 TRACE_EVENT ( " send: RAU_ACCEPT");break;
104 case ROUTING_AREA_UPDATE_COMPLETE:
105 TRACE_EVENT ( " send: RAU_COMPLETE");break;
106 case ROUTING_AREA_UPDATE_REJECT:
107 TRACE_EVENT ( " send: RAU_REJ");break;
108 case P_TMSI_REALLOCATION_COMMAND:
109 TRACE_EVENT ( " send: P_TMSI_REALLOCATION_COMMAND");break;
110 case P_TMSI_REALLOCATION_COMPLETE:
111 TRACE_EVENT ( " send: P_TMSI_REALLOCATION_COMPLETE");break;
112 case AUTHENTICATION_AND_CIPHERING_REQUEST:
113 TRACE_EVENT ( " send: AUTHENTICATION_AND_CIPHERING_REQUEST");break;
114 case AUTHENTICATION_AND_CIPHERING_RESPONSE:
115 TRACE_EVENT ( " send: ATTACH_REQUEST");break;
116 case AUTHENTICATION_AND_CIPHERING_REJECT:
117 TRACE_EVENT ( " send: AUTHENTICATION_AND_CIPHERING_REJECT");break;
118 case IDENTITY_REQUEST:
119 TRACE_EVENT ( " send: IDENTITY_REQUEST");break;
120 case IDENTITY_RESPONSE:
121 TRACE_EVENT ( " send: IDENTITY_RESPONSE");break;
122 case GMM_STATUS:
123 TRACE_EVENT ( " send: GMM_STATUS");break;
124 case GMM_INFORMATION:
125 TRACE_EVENT ( " send: GMM_INFORMATION");break;
126 default:
127 break;
128 }
129 #endif /* _SIMULATION_ */
130
131 tx_unitdata_req ( tlli_type, msg_type );
132
133 } /* sig_rx_tx_data_req() */
134
135