comparison src/g23m-aci/aci/psa_ras.c @ 1:fa8dc04885d8

src/g23m-*: import from Magnetite
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 16 Oct 2020 06:25:50 +0000
parents
children
comparison
equal deleted inserted replaced
0:4e78acac3d88 1:fa8dc04885d8
1 /*
2 +-----------------------------------------------------------------------------
3 | Project : GSM-PS (6147)
4 | Modul : PSA_RAS
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 rate adaptation.
19 +-----------------------------------------------------------------------------
20 */
21
22 #ifdef DTI
23
24 #ifndef PSA_RAS_C
25 #define PSA_RAS_C
26 #endif
27
28 #include "aci_all.h"
29
30 /*==== INCLUDES ===================================================*/
31 #include "aci_cmh.h"
32 #include "ati_cmd.h"
33 #include "aci_cmd.h"
34 #include "aci.h"
35 #include "psa.h"
36 #include "aci_io.h"
37 #include "psa_ra.h"
38 #include "ra_l1int.h"
39
40 /*==== CONSTANTS ==================================================*/
41
42
43 /*==== TYPES ======================================================*/
44
45
46 /*==== EXPORT =====================================================*/
47
48
49 /*==== VARIABLES ==================================================*/
50
51
52 /*==== FUNCTIONS ==================================================*/
53
54
55 /*
56 +-------------------------------------------------------------------+
57 | PROJECT : GSM-PS (6147) MODULE : PSA_RA |
58 | ROUTINE : psaRA_Activate |
59 +-------------------------------------------------------------------+
60
61 PURPOSE : Activation RA.
62
63 */
64
65 GLOBAL void psaRA_Activate(void)
66 {
67 #define X raShrdPrm.set_prm[raShrdPrm.owner]
68
69 TRACE_FUNCTION ("psaRA_Activate()");
70
71 #ifdef USE_L1FD_FUNC_INTERFACE
72 {
73 T_RA_ACTIVATE_REQ ra_activate_req;
74
75 ra_activate_req.model = X.model;
76 ra_activate_req.tra_rate = X.tra_rate;
77 ra_activate_req.user_rate = X.user_rate;
78 ra_activate_req.ndb = X.ndb;
79 ra_activate_req.nsb = X.nsb;
80
81 l1i_ra_activate_req (&ra_activate_req);
82 }
83 #else
84 {
85 PALLOC (ra_activate_req, RA_ACTIVATE_REQ);
86
87 ra_activate_req->model = X.model;
88 ra_activate_req->tra_rate = X.tra_rate;
89 ra_activate_req->user_rate = X.user_rate;
90 ra_activate_req->ndb = X.ndb;
91 ra_activate_req->nsb = X.nsb;
92
93 PSENDX (RA, ra_activate_req);
94 }
95 #endif
96
97 #undef X
98 }
99
100 /*
101 +-------------------------------------------------------------------+
102 | PROJECT : GSM-PS (6147) MODULE : PSA_RA |
103 | ROUTINE : psaRA_Deactivate |
104 +-------------------------------------------------------------------+
105
106 PURPOSE : Deactivation of RA.
107
108 */
109
110 GLOBAL void psaRA_Deactivate (void)
111 {
112 TRACE_FUNCTION ("psaRA_Deactivate()");
113
114 #ifdef USE_L1FD_FUNC_INTERFACE
115 {
116 T_RA_DEACTIVATE_REQ ra_deactivate_req;
117
118 l1i_ra_deactivate_req (&ra_deactivate_req);
119 }
120 #else
121 {
122 PALLOC (ra_deactivate_req, RA_DEACTIVATE_REQ);
123
124 PSENDX (RA, ra_deactivate_req);
125 }
126 #endif
127 }
128
129 /*
130 +-------------------------------------------------------------------+
131 | PROJECT : GSM-PS (6147) MODULE : PSA_RA |
132 | ROUTINE : psaRA_Modify |
133 +-------------------------------------------------------------------+
134
135 PURPOSE : Modification of RA in case of CMM.
136
137 */
138
139 GLOBAL void psaRA_Modify (void)
140 {
141 #define X raShrdPrm.set_prm[raShrdPrm.owner]
142
143 TRACE_FUNCTION ("psaRA_Modify()");
144
145 #ifdef USE_L1FD_FUNC_INTERFACE
146 {
147 T_RA_MODIFY_REQ ra_modify_req;
148
149 ra_modify_req.tra_rate = X.tra_rate;
150 ra_modify_req.user_rate = X.user_rate;
151
152 l1i_ra_modify_req (&ra_modify_req);
153 }
154 #else
155 {
156 PALLOC (ra_modify_req, RA_MODIFY_REQ);
157
158 ra_modify_req->tra_rate = X.tra_rate;
159 ra_modify_req->user_rate = X.user_rate;
160
161 PSENDX (RA, ra_modify_req);
162 }
163 #endif
164 }
165
166 #endif /* DTI */
167 /*==== EOF ========================================================*/