comparison src/aci2/aci/psa_snds.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 signalling functions of the
18 | protocol stack adapter for the registration part of
19 | the SNDCP entity.
20 +-----------------------------------------------------------------------------
21 */
22
23 #if defined (GPRS) && defined (DTI)
24
25 #ifndef PSA_SNDS_C
26 #define PSA_SNDS_C
27 #endif
28
29 #include "aci_all.h"
30 /*==== INCLUDES ===================================================*/
31 #include "aci.h"
32 /*==== CONSTANTS ==================================================*/
33
34 /*==== TYPES ======================================================*/
35
36 /*==== EXPORT =====================================================*/
37
38 /*==== VARIABLES ==================================================*/
39
40 /*==== FUNCTIONS ==================================================*/
41
42 /*
43 +-------------------------------------------------------------------+
44 | PROJECT : GPRS (8441) MODULE : PSA_SMS |
45 | STATE : finished ROUTINE : psaSN_CountReq |
46 +-------------------------------------------------------------------+
47
48 PURPOSE : Requests SNDCP count.
49
50 */
51 GLOBAL void psaSN_CountReq ( UBYTE c_id, BOOL reset )
52 {
53 PALLOC (sn_count_req, SN_COUNT_REQ);
54
55 TRACE_FUNCTION ("psaSN_CountReq()");
56
57 sn_count_req -> nsapi = c_id;
58
59 if( reset )
60 {
61 sn_count_req -> reset = SN_RESET_YES;
62 }
63 else
64 {
65 sn_count_req -> reset = SN_RESET_NO;
66 }
67
68 PSENDX (SNDCP, sn_count_req);
69 }
70
71 /*
72 +-------------------------------------------------------------------+
73 | PROJECT : GPRS (8441) MODULE : PSA_SMS |
74 | STATE : finished ROUTINE : psaSN_SwitchReq |
75 +-------------------------------------------------------------------+
76
77 PURPOSE : Request of switching DTI peer for a activated PDP context.
78
79 */
80 GLOBAL void psaSN_SwitchReq ( UBYTE nsapi,
81 ULONG dti_linkid,
82 ULONG dti_neighbor,
83 UBYTE dti_direction )
84 {
85 PALLOC (sn_switch_req, SN_SWITCH_REQ);
86
87 TRACE_FUNCTION ("psaSN_SwitchReq()");
88
89 sn_switch_req -> nsapi = nsapi;
90 sn_switch_req -> dti_linkid = dti_linkid;
91 sn_switch_req -> dti_neighbor = dti_neighbor;
92 sn_switch_req -> dti_direction = dti_direction;
93
94
95 PSENDX (SNDCP, sn_switch_req);
96 }
97
98 #endif /* GPRS */