blob: 376ea11d837dc4ff8a66862258d62680daf8da1d [file] [log] [blame]
yu.dongc33b3072024-08-21 23:14:49 -07001/*****************************************************************************
2* Copyright Statement:
3* --------------------
4* This software is protected by Copyright and the information contained
5* herein is confidential. The software may not be copied and the information
6* contained herein may not be used or disclosed except with the written
7* permission of MediaTek Inc. (C) 2005
8*
9* BY OPENING THIS FILE, BUYER HEREBY UNEQUIVOCALLY ACKNOWLEDGES AND AGREES
10* THAT THE SOFTWARE/FIRMWARE AND ITS DOCUMENTATIONS ("MEDIATEK SOFTWARE")
11* RECEIVED FROM MEDIATEK AND/OR ITS REPRESENTATIVES ARE PROVIDED TO BUYER ON
12* AN "AS-IS" BASIS ONLY. MEDIATEK EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES,
13* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF
14* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT.
15* NEITHER DOES MEDIATEK PROVIDE ANY WARRANTY WHATSOEVER WITH RESPECT TO THE
16* SOFTWARE OF ANY THIRD PARTY WHICH MAY BE USED BY, INCORPORATED IN, OR
17* SUPPLIED WITH THE MEDIATEK SOFTWARE, AND BUYER AGREES TO LOOK ONLY TO SUCH
18* THIRD PARTY FOR ANY WARRANTY CLAIM RELATING THERETO. MEDIATEK SHALL ALSO
19* NOT BE RESPONSIBLE FOR ANY MEDIATEK SOFTWARE RELEASES MADE TO BUYER'S
20* SPECIFICATION OR TO CONFORM TO A PARTICULAR STANDARD OR OPEN FORUM.
21*
22* BUYER'S SOLE AND EXCLUSIVE REMEDY AND MEDIATEK'S ENTIRE AND CUMULATIVE
23* LIABILITY WITH RESPECT TO THE MEDIATEK SOFTWARE RELEASED HEREUNDER WILL BE,
24* AT MEDIATEK'S OPTION, TO REVISE OR REPLACE THE MEDIATEK SOFTWARE AT ISSUE,
25* OR REFUND ANY SOFTWARE LICENSE FEES OR SERVICE CHARGE PAID BY BUYER TO
26* MEDIATEK FOR SUCH MEDIATEK SOFTWARE AT ISSUE.
27*
28* THE TRANSACTION CONTEMPLATED HEREUNDER SHALL BE CONSTRUED IN ACCORDANCE
29* WITH THE LAWS OF THE STATE OF CALIFORNIA, USA, EXCLUDING ITS CONFLICT OF
30* LAWS PRINCIPLES. ANY DISPUTES, CONTROVERSIES OR CLAIMS ARISING THEREOF AND
31* RELATED THERETO SHALL BE SETTLED BY ARBITRATION IN SAN FRANCISCO, CA, UNDER
32* THE RULES OF THE INTERNATIONAL CHAMBER OF COMMERCE (ICC).
33*
34*****************************************************************************/
35
36/*****************************************************************************
37 *
38 * Filename:
39 * ---------
40 * lapdm2rr_struct.h
41 *
42 * Project:
43 * --------
44 * MAUI
45 *
46 * Description:
47 * ------------
48 *
49 * Author:
50 * -------
51 * -------
52 *
53 *============================================================================
54 * HISTORY
55 * Below this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
56 *------------------------------------------------------------------------------
57 * removed!
58 *
59 * removed!
60 * removed!
61 * removed!
62 *
63 * removed!
64 * removed!
65 * removed!
66 *
67 * removed!
68 * removed!
69 * removed!
70 *
71 * removed!
72 * removed!
73 * removed!
74 *
75 * removed!
76 * removed!
77 * removed!
78 *
79 * removed!
80 * removed!
81 * removed!
82 *
83 * removed!
84 * removed!
85 * removed!
86 *
87 * removed!
88 * removed!
89 * removed!
90 *
91 * removed!
92 * removed!
93 * removed!
94 *
95 * removed!
96 * removed!
97 * removed!
98 *
99 * removed!
100 * removed!
101 * removed!
102 *
103 * removed!
104 * removed!
105 * removed!
106 *
107 * removed!
108 * removed!
109 * removed!
110 *
111 *------------------------------------------------------------------------------
112 * Upper this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
113 *============================================================================
114 ****************************************************************************/
115
116/********************************************************************************
117* Copyright Statement:
118* --------------------
119*
120* This product has been developed using a protocol stack
121* developed by Sasken Communication Technologies Limited.
122*
123********************************************************************************/
124
125#ifndef _LAPDM2RR_STRUCT_H
126#define _LAPDM2RR_STRUCT_H
127
128/* add RHR */
129#include "l3_inc_enums.h" /* MSBB by Rachel */
130#include "kal_general_types.h"
131
132#include "rr_common_enums.h"
133#include "lapdm_enums.h"
134
135typedef struct {
136 LOCAL_PARA_HDR
137 lapdm_sapi_header sap_id;
138 channel_type_enum channel_type;
139} lapdm_rr_unitdata_ind_struct;
140
141typedef struct {
142 LOCAL_PARA_HDR
143 lapdm_sapi_header sap_id;
144 LAPDM_ESTB_MODE estb_mode;
145 channel_type_enum channel_type;
146} lapdm_rr_estb_conf_struct;
147
148typedef struct {
149 LOCAL_PARA_HDR
150 lapdm_sapi_header sap_id;
151 LAPDM_ESTB_MODE estb_mode;
152 channel_type_enum channel_type;
153} lapdm_rr_estb_ind_struct;
154
155typedef struct {
156 LOCAL_PARA_HDR
157 lapdm_sapi_header sap_id;
158 channel_type_enum channel_type;
159} lapdm_rr_sus_conf_struct;
160
161typedef struct {
162 LOCAL_PARA_HDR
163 lapdm_sapi_header sap_id;
164 LAPDM_ESTB_MODE estb_mode;
165 channel_type_enum channel_type;
166} lapdm_rr_resume_conf_struct;
167
168typedef struct {
169 LOCAL_PARA_HDR
170 lapdm_sapi_header sap_id;
171 LAPDM_ESTB_MODE estb_mode;
172 channel_type_enum channel_type;
173} lapdm_rr_recon_conf_struct;
174
175typedef struct {
176 LOCAL_PARA_HDR
177 lapdm_sapi_header sap_id;
178 channel_type_enum channel_type;
179} lapdm_rr_data_ind_struct;
180
181typedef struct {
182 LOCAL_PARA_HDR
183 lapdm_sapi_header sap_id;
184 kal_uint8 release_mode;
185 LAPDM_ERROR_CAUSE error_cause;
186 channel_type_enum channel_type;
187} lapdm_rr_rel_conf_struct;
188
189typedef struct {
190 LOCAL_PARA_HDR
191 lapdm_sapi_header sap_id;
192 kal_uint8 release_mode;
193 LAPDM_ERROR_CAUSE error_cause;
194 channel_type_enum channel_type;
195} lapdm_rr_rel_ind_struct;
196
197typedef struct {
198 LOCAL_PARA_HDR
199 lapdm_sapi_header sap_id;
200 LAPDM_ERROR_CAUSE error_cause;
201 channel_type_enum channel_type;
202} lapdm_rr_error_ind_struct;
203
204typedef struct {
205 LOCAL_PARA_HDR
206 lapdm_sapi_header sap_id;
207 kal_uint8 ch_mode;
208 channel_type_enum ch_type;
209 kal_uint8 tch_type;
210} lapdm_ul_data_req_struct;
211
212typedef struct {
213 LOCAL_PARA_HDR
214
215 /* downlink */
216 kal_bool valid;
217 lapdm_sapi_header sap_id;
218 channel_type_enum ch_type;
219 kal_bool is_bad_frame;
220 lapdm_frame_type frame_type;
221 kal_bool bit_cr;
222 kal_bool bit_m;
223 kal_bool bit_pf;
224 kal_uint8 send_seq_num; /*ripple: used to store NS of down link data*/
225 kal_uint8 recv_seq_num;
226 kal_uint16 info_len;
227
228 /* uplink */
229 kal_uint16 sdcch_tq_current_count; /* Writing time */
230 kal_uint32 sdcch_ul_data_index; /* index of each ul data req */
231 kal_bool sdcch_need_transmit_ul_data; /* indicate if ul_data needs to be transmitted */
232 kal_uint8 sdcch_ul_data[23];
233 kal_uint16 facch_tq_current_count; /* Writing time */
234 kal_uint32 facch_ul_data_index; /* index of each ul data req */
235 kal_bool facch_need_transmit_ul_data; /* indicate if ul_data needs to be transmitted */
236 kal_uint8 facch_ul_data[23];
237 kal_uint16 sacch_tq_current_count; /* Writing time */
238 kal_uint32 sacch_ul_data_index; /* index of each ul data req */
239 kal_bool sacch_need_transmit_ul_data; /* indicate if ul_data needs to be transmitted */
240 kal_uint8 sacch_ul_data[23];
241#ifdef __REPEATED_ACCH__
242 kal_bool is_repetition; /* SACCH */
243#endif /*__REPEATED_ACCH__*/
244} lapdm_dl_and_ul_ind_struct;
245
246/* brwang, 06/04/08, [MAUI_00185915] { */
247typedef struct {
248 LOCAL_PARA_HDR
249 lapdm_sapi_header sapi;
250 kal_uint8 mui;
251 kal_bool is_successful;
252#ifdef __AGPS_CONTROL_PLANE__
253 lapdm_layer3_message_type_enum segment_type;
254#endif /* __AGPS_CONTROL_PLANE__ */
255} lapdm_rr_data_conf_struct;
256/* brwang, 06/04/08, [MAUI_00185915] } */
257
258#endif
259
260