blob: 0bcd82375a3e57b47fd8f4b7192703e06ee15359 [file] [log] [blame]
rjw6c1fd8f2022-11-30 14:33:01 +08001/*****************************************************************************
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 * Filename:
38 * ---------
39 * l2r2rlp_struct.h
40 *
41 * Project:
42 * --------
43 * MAUI
44 *
45 * Description:
46 * ------------
47 * This file is for L2R to RLP interface.
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 *------------------------------------------------------------------------------
80 * Upper this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
81 *============================================================================
82 ****************************************************************************/
83
84/********************************************************************************
85* Copyright Statement:
86* --------------------
87*
88* This product has been developed using a protocol stack
89* developed by Sasken Communication Technologies Limited.
90*
91********************************************************************************/
92
93/*******************************************************************************
94* Copyright Statement:
95* --------------------
96* This software is protected by Copyright and the information contained
97* herein is confidential. The software may not be copied and the information
98* contained herein may not be used or disclosed except with the written
99* permission of MediaTek Inc. (C) 2002
100*
101*******************************************************************************
102 * FILENAME : l2r2rlp_struct.h
103 * SYNOPSIS : Functions for encoding/decoding.
104 *
105 * R E V I S I O N H I S T O R Y
106 *
107 */
108#ifndef _L2R2RLP_STRUCT_H
109#define _L2R2RLP_STRUCT_H
110
111#include "data_xid_struct.h"
112
113#include "kal_general_types.h"
114#include "kal_public_defs.h"
115
116typedef struct {
117 LOCAL_PARA_HDR
118 kal_uint8 rat;
119 kal_uint8 user_rate;
120 kal_uint8 is_FR;
121} l2r_rlp_attach_req_struct;
122
123typedef struct {
124 LOCAL_PARA_HDR
125 kal_uint8 is_successful;
126} l2r_rlp_conn_cnf_struct;
127
128typedef struct {
129 LOCAL_PARA_HDR
130 kal_uint8 is_successful;
131} l2r_rlp_conn_resp_struct;
132
133typedef struct {
134 LOCAL_PARA_HDR
135 kal_uint8 c_or_r; /* command or resp*/
136 xid_params_struct xid_params;
137} l2r_rlp_xid_req_struct;
138
139typedef struct {
140 LOCAL_PARA_HDR
141 kal_uint8 c_or_r; /* command or resp*/
142 xid_params_struct xid_params;
143} l2r_rlp_xid_ind_struct;
144
145typedef struct {
146 LOCAL_PARA_HDR
147 kal_uint8 error_cause;
148} l2r_rlp_error_ind_struct;
149
150typedef struct {
151 LOCAL_PARA_HDR
152 kal_uint8 is_successful;
153} l2r_rlp_reset_cnf_struct;
154
155typedef struct {
156 LOCAL_PARA_HDR
157 kal_uint8 num_of_frames_allowed;
158} l2r_rlp_ready_ind_struct;
159
160typedef struct {
161 LOCAL_PARA_HDR
162 kal_uint8 is_next_followed;
163} l2r_rlp_data_req_struct;
164
165typedef struct {
166 LOCAL_PARA_HDR
167 kal_uint8 user_rate;
168 kal_uint8 rat;
169} l2r_rlp_change_rate_ind_struct;
170
171typedef struct {
172 LOCAL_PARA_HDR
173 kal_uint8 rat;
174 kal_uint8 user_rate;
175 kal_uint16 num_of_frames; /* no of frames to be remapped*/
176} l2r_rlp_remap_ind_struct;
177
178typedef struct {
179 LOCAL_PARA_HDR
180 kal_uint8 is_successful;
181} l2r_rlp_test_cnf_struct;
182
183/* For UT environment. */
184typedef struct {
185 LOCAL_PARA_HDR
186 kal_uint8 dtx_allow;
187 kal_uint8 rat;
188 kal_uint8 user_rate;
189 kal_uint8 is_FR;
190 kal_uint8 tick_rate;
191 kal_uint8 byte_cnt;
192} csd_uplink_tick_ind_struct;
193
194typedef struct {
195 LOCAL_PARA_HDR
196 kal_uint8 port;
197 kal_uint16 byte_cnt;
198} csd_uart_ready_to_read_struct;
199
200typedef struct {
201 LOCAL_PARA_HDR
202 kal_uint8 port;
203} csd_uart_ready_to_write_struct;
204
205typedef struct {
206 LOCAL_PARA_HDR
207 kal_uint8 port;
208} csd_uart_full_ind_struct;
209
210#endif
211
212