rjw | 6c1fd8f | 2022-11-30 14:33:01 +0800 | [diff] [blame^] | 1 | /***************************************************************************** |
| 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 | * ratdm_sndcp_struct.h |
| 40 | * |
| 41 | * Project: |
| 42 | * -------- |
| 43 | * MONZA |
| 44 | * |
| 45 | * Description: |
| 46 | * ------------ |
| 47 | * |
| 48 | * |
| 49 | * Author: |
| 50 | * ------- |
| 51 | * ------- |
| 52 | * |
| 53 | ******************************************************************************/ |
| 54 | |
| 55 | #ifndef RATDM_SNDCP_STRUCT_H |
| 56 | #define RATDM_SNDCP_STRUCT_H |
| 57 | |
| 58 | // Poying: 20101005. RHR. |
| 59 | // ------------------------------ suggest Add ------------------------------ |
| 60 | #include "mcd_l3_inc_gprs_struct.h" |
| 61 | #include "l3_inc_local.h" |
| 62 | // |
| 63 | // Poying: 20101105. RHR |
| 64 | //------------------------------ suggest Add ------------------------------ |
| 65 | #include "kal_general_types.h" |
| 66 | #include "kal_public_defs.h" |
| 67 | |
| 68 | #include "flc2_config.h" |
| 69 | |
| 70 | #ifndef _MCD_L3_INC_GPRS_STRUCT_H |
| 71 | #error "Please include mcd_l3_inc_grps_struct.h before ratdm_sndcp_struct.h" |
| 72 | #endif |
| 73 | |
| 74 | typedef enum { |
| 75 | RATDM_SND_SEND_FROM_OLDEST, //0 |
| 76 | RATDM_SND_SEND_FROM_SN // 1 |
| 77 | } ratdm_sndcp_transmit_type_enum; |
| 78 | |
| 79 | typedef struct { |
| 80 | kal_uint8 nsapi; |
| 81 | kal_uint8 is_NwRxSeq_valid; //valid only when it is ACK mode |
| 82 | kal_uint16 nw_rx_seq; //this is derived from SGSN's Received NPDU number |
| 83 | kal_uint8 ms_rx_seq; //this is MS's Received NPDU number, need to be passed to network. |
| 84 | } nsapi_npdu_number_list; |
| 85 | |
| 86 | typedef struct { |
| 87 | LOCAL_PARA_HDR |
| 88 | kal_uint8 nsapi; |
| 89 | kal_uint16 npdu_number; |
| 90 | flc2_pool_id_enum pool_id; |
| 91 | } ratdm_sndcp_data_req_struct, ratdm_sndcp_data_ind_struct, ratdm_sndcp_data_cnf_struct; |
| 92 | |
| 93 | |
| 94 | typedef struct { |
| 95 | LOCAL_PARA_HDR |
| 96 | kal_uint8 nsapi; |
| 97 | qos_struct qos_negotiated; |
| 98 | kal_uint32 p_comp_algo; |
| 99 | kal_uint32 d_comp_algo; |
| 100 | kal_uint8 llc_sapi; |
| 101 | kal_uint8 dl_pool_id; //flc2_pool_id_enum |
| 102 | kal_uint8 radio_priority; |
| 103 | kal_uint16 rcv_seq_no; |
| 104 | kal_uint16 send_seq_no; |
| 105 | kal_uint8 pfi; //erica 20060719 |
| 106 | } ratdm_sndcp_activate_req_struct, ratdm_sndcp_rat_enter_req_struct; |
| 107 | |
| 108 | |
| 109 | typedef struct { |
| 110 | LOCAL_PARA_HDR |
| 111 | kal_uint8 nsapi; |
| 112 | } ratdm_sndcp_activate_cnf_struct, ratdm_sndcp_rat_ready_ind_struct; |
| 113 | |
| 114 | |
| 115 | typedef struct { |
| 116 | LOCAL_PARA_HDR |
| 117 | kal_uint8 nsapi; |
| 118 | qos_struct qos_negotiated; |
| 119 | kal_uint8 llc_sapi; |
| 120 | kal_uint8 radio_priority; |
| 121 | kal_uint8 pfi; //erica 20060719 |
| 122 | } ratdm_sndcp_modify_req_struct; |
| 123 | |
| 124 | |
| 125 | typedef struct { |
| 126 | LOCAL_PARA_HDR |
| 127 | kal_uint8 nsapi; |
| 128 | } ratdm_sndcp_modify_cnf_struct; |
| 129 | |
| 130 | |
| 131 | typedef struct { |
| 132 | LOCAL_PARA_HDR |
| 133 | kal_uint8 no_of_valid_entries; |
| 134 | kal_uint8 nsapi_list[11]; |
| 135 | kal_uint32 cause; |
| 136 | kal_bool xid_neg_indicator[11]; |
| 137 | } ratdm_sndcp_deactivate_req_struct; |
| 138 | |
| 139 | typedef struct { |
| 140 | LOCAL_PARA_HDR |
| 141 | kal_uint8 no_of_valid_entries; |
| 142 | kal_uint8 nsapi_list[11]; |
| 143 | } ratdm_sndcp_deactivate_cnf_struct; |
| 144 | |
| 145 | |
| 146 | typedef struct { |
| 147 | LOCAL_PARA_HDR |
| 148 | kal_uint8 nsapi; |
| 149 | kal_uint8 cause; //llsnd_cause_enum |
| 150 | } ratdm_sndcp_status_ind_struct; |
| 151 | |
| 152 | /* RATDM_RABM_SUSPEND_DATA_PLANE_IND */ |
| 153 | typedef struct { |
| 154 | LOCAL_PARA_HDR |
| 155 | kal_uint8 no_of_valid_entries; |
| 156 | kal_uint8 nsapi_list[11]; |
| 157 | } ratdm_sndcp_suspend_data_plane_ind_struct; |
| 158 | |
| 159 | /* RATDM_RABM_RESUME_DATA_PLANE_IND */ |
| 160 | typedef struct { |
| 161 | LOCAL_PARA_HDR |
| 162 | kal_uint8 no_of_valid_entries; |
| 163 | kal_uint8 nsapi_list[11]; |
| 164 | kal_uint16 RetransmitFromSN[11]; |
| 165 | } ratdm_sndcp_resume_data_plane_ind_struct; |
| 166 | |
| 167 | typedef struct { |
| 168 | LOCAL_PARA_HDR |
| 169 | kal_uint8 no_of_valid_entries; |
| 170 | kal_uint8 nsapi_list[11]; |
| 171 | kal_uint16 sequence_list[11]; |
| 172 | } ratdm_sndcp_sequence_req_struct; |
| 173 | |
| 174 | typedef struct { |
| 175 | LOCAL_PARA_HDR |
| 176 | kal_uint8 no_of_valid_entries; |
| 177 | nsapi_npdu_number_list nsapi_list[11]; |
| 178 | } ratdm_sndcp_sequence_cnf_struct; |
| 179 | |
| 180 | /* |
| 181 | typedef struct { |
| 182 | LOCAL_PARA_HDR |
| 183 | kal_uint8 nsapi; |
| 184 | } ratcm_sndcp_flush_ind_struct; |
| 185 | */ |
| 186 | |
| 187 | typedef struct { |
| 188 | LOCAL_PARA_HDR |
| 189 | kal_uint8 nsapi; |
| 190 | kal_bool set_send_to_0; |
| 191 | kal_bool set_recv_to_0; |
| 192 | } ratdm_sndcp_flush_ind_struct; |
| 193 | |
| 194 | typedef struct { |
| 195 | LOCAL_PARA_HDR |
| 196 | kal_uint8 nsapi; |
| 197 | kal_bool set_send_to_0; |
| 198 | kal_bool set_recv_to_0; |
| 199 | } ratdm_sndcp_reset_npdu_seq_ind_struct; |
| 200 | |
| 201 | typedef struct { |
| 202 | LOCAL_PARA_HDR |
| 203 | kal_uint8 nsapi; |
| 204 | ratdm_sndcp_transmit_type_enum type; |
| 205 | kal_uint16 seq_no; |
| 206 | } ratdm_sndcp_transmit_ind_struct; |
| 207 | |
| 208 | /* |
| 209 | typedef struct { |
| 210 | LOCAL_PARA_HDR |
| 211 | kal_uint8 nsapi; |
| 212 | kal_uint16 ack_seq_no; |
| 213 | } ratcm_sndcp_retransmit_ind_struct; |
| 214 | */ |
| 215 | |
| 216 | typedef struct { |
| 217 | LOCAL_PARA_HDR |
| 218 | kal_uint8 no_of_valid_entries; |
| 219 | kal_uint8 nsapi_list[11]; |
| 220 | } ratdm_sndcp_rat_leave_req_struct; |
| 221 | |
| 222 | #endif /* RATDM_SNDCP_STRUCT_H */ |