comparison src/g23m-gprs/sm/sm_context_deactivate_control.h @ 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 | Project : 3G PS
3 | Module : SM
4 +-----------------------------------------------------------------------------
5 | Copyright 2003 Texas Instruments.
6 | All rights reserved.
7 |
8 | This file is confidential and a trade secret of Texas
9 | Instruments .
10 | The receipt of or possession of this file does not convey
11 | any rights to reproduce or disclose its contents or to
12 | manufacture, use, or sell anything it may describe, in
13 | whole, or in part, without the specific written consent of
14 | Texas Instruments.
15 +-----------------------------------------------------------------------------
16 | Purpose: Context Deactivate Control sub-state machine definitions in
17 | the SM entity.
18 | For design details, see:
19 | 8010.908 SM Detailed Specification
20 +---------------------------------------------------------------------------*/
21
22 /*==== DECLARATION CONTROL =================================================*/
23
24 #ifndef SM_CONTEXT_DEACTIVATE_CONTROL_H
25 #define SM_CONTEXT_DEACTIVATE_CONTROL_H
26
27 /*==== INCLUDES =============================================================*/
28
29 /*==== CONSTS ===============================================================*/
30
31 /*==== TYPES ================================================================*/
32
33 typedef enum
34 {
35 /* Events from Context Control */
36 SM_I_DEACTIVATE_NETWORK,
37 SM_I_DEACTIVATE_USER_PLANE,
38 SM_I_DEACTIVATE_NETWORK_AND_USER_PLANE,
39 /* Events from Network Control (Forwarded by Context Control) */
40 SM_I_DEACTIVATE_NETWORK_COMPLETED,
41 /* Events from User Plane Control (Forwarded by Context Control) */
42 SM_I_DEACTIVATE_USER_PLANE_COMPLETED,
43 /* Number of events */
44 SM_CONTEXT_DEACTIVATE_CONTROL_NUMBER_OF_EVENTS
45 } T_SM_CONTEXT_DEACTIVATE_CONTROL_EVENT;
46
47 typedef enum
48 {
49 SM_CONTEXT_DEACTIVATE_NULL,
50 SM_CONTEXT_DEACTIVATE_NETWORK,
51 SM_CONTEXT_DEACTIVATE_USER_PLANE,
52 SM_CONTEXT_DEACTIVATE_BOTH,
53 /* Number of states */
54 SM_CONTEXT_DEACTIVATE_CONTROL_NUMBER_OF_STATES
55 } T_SM_CONTEXT_DEACTIVATE_CONTROL_STATE;
56
57 /*==== EXPORTS ==============================================================*/
58
59 extern void sm_context_deactivate_control_init(struct T_SM_CONTEXT_DATA *context);
60 extern void sm_context_deactivate_control_exit(struct T_SM_CONTEXT_DATA *context);
61 #ifdef DEBUG
62 extern /*@observer@*/
63 const char *sm_context_deactivate_control_state(struct T_SM_CONTEXT_DATA *context);
64 #endif
65 extern void sm_context_deactivate_control(struct T_SM_CONTEXT_DATA *context,
66 T_SM_CONTEXT_DEACTIVATE_CONTROL_EVENT event,
67 /*@null@*/ void *data);
68
69 #endif /* SM_CONTEXT_DEACTIVATE_CONTROL_H */
70 /*==== END OF FILE ==========================================================*/