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 | * sm_ratdm_struct.h |
| 40 | * |
| 41 | * Project: |
| 42 | * -------- |
| 43 | * MONZA |
| 44 | * |
| 45 | * Description: |
| 46 | * ------------ |
| 47 | * |
| 48 | * |
| 49 | * Author: |
| 50 | * ------- |
| 51 | * ------- |
| 52 | * |
| 53 | ******************************************************************************/ |
| 54 | |
| 55 | #ifndef SM_RATDM_STRUCT_H |
| 56 | #define SM_RATDM_STRUCT_H |
| 57 | |
| 58 | #include "kal_general_types.h" |
| 59 | #include "mcd_l3_inc_gprs_struct.h" |
| 60 | #include "l3_inc_local.h" |
| 61 | #include "esm_ratdm_struct.h" |
| 62 | #include "kal_public_defs.h" |
| 63 | |
| 64 | |
| 65 | typedef struct { |
| 66 | LOCAL_PARA_HDR |
| 67 | kal_uint8 no_of_nsapis; |
| 68 | kal_uint8 nsapi_list[11]; |
| 69 | kal_bool need_sm_modify; |
| 70 | } sm_ratdm_rab_activate_ind_struct; |
| 71 | |
| 72 | typedef struct { |
| 73 | NSAPI_STRUCT_HDR // LOCAL_PARA_HDR + kal_uint8 nsapi (SM code assume nsapi is the first parameter of some primitive) |
| 74 | kal_uint8 is_successful; |
| 75 | } sm_ratdm_rab_activate_rsp_struct; |
| 76 | |
| 77 | typedef struct { |
| 78 | NSAPI_STRUCT_HDR // LOCAL_PARA_HDR + kal_uint8 nsapi (SM code assume nsapi is the first parameter of some primitive) |
| 79 | /* 23G ralated parameters */ |
| 80 | kal_uint8 llc_sapi; |
| 81 | qos_struct qos_negotiated; |
| 82 | kal_uint8 radio_priority; |
| 83 | kal_uint8 pfi; |
| 84 | |
| 85 | /* 4G ralated parameters */ |
| 86 | esm_qci_enum qci; |
| 87 | } sm_ratdm_activate_req_struct; |
| 88 | |
| 89 | typedef struct { |
| 90 | NSAPI_STRUCT_HDR // LOCAL_PARA_HDR + kal_uint8 nsapi (SM code assume nsapi is the first parameter of some primitive) |
| 91 | } sm_ratdm_activate_cnf_struct; |
| 92 | |
| 93 | typedef struct { |
| 94 | LOCAL_PARA_HDR |
| 95 | kal_uint8 no_of_nsapis; |
| 96 | kal_uint8 nsapi_list[11]; |
| 97 | kal_uint8 cause; |
| 98 | kal_bool xid_neg_indicator[11]; |
| 99 | kal_bool MMiRAT[11]; // This parameter is used by SM to inform RATDM the reason to establish this context: |
| 100 | // if TRUE, means this context is transferred from 4G, |
| 101 | // if FALSE, means this context is established by user trigger |
| 102 | } sm_ratdm_deactivate_req_struct; |
| 103 | |
| 104 | typedef struct { |
| 105 | LOCAL_PARA_HDR |
| 106 | kal_uint8 no_of_nsapis; |
| 107 | kal_uint8 nsapi_list[11]; |
| 108 | #ifdef __DIALUP_GPRS_COUNTER_SUPPORT__ |
| 109 | kal_uint64 tx_data_amount[11]; // new field for gprs call history |
| 110 | kal_uint64 rx_data_amount[11]; // new field for gprs call history |
| 111 | #endif |
| 112 | } sm_ratdm_deactivate_cnf_struct; |
| 113 | |
| 114 | typedef struct { |
| 115 | LOCAL_PARA_HDR |
| 116 | kal_uint8 no_of_nsapis; |
| 117 | kal_uint8 nsapi_list[11]; |
| 118 | } sm_ratdm_rab_deactivate_ind_struct; |
| 119 | |
| 120 | typedef struct { |
| 121 | NSAPI_STRUCT_HDR // LOCAL_PARA_HDR + kal_uint8 nsapi (SM code assume nsapi is the first parameter of some primitive) |
| 122 | /* 23G ralated parameters */ |
| 123 | kal_bool is_radio_priority_present; |
| 124 | kal_uint8 radio_priority; |
| 125 | |
| 126 | kal_bool is_llc_sapi_present; |
| 127 | kal_uint8 llc_sapi; |
| 128 | |
| 129 | kal_bool is_qos_negotiated_present; |
| 130 | qos_struct qos_negotiated; |
| 131 | |
| 132 | kal_bool is_pfi_present; |
| 133 | kal_uint8 pfi; |
| 134 | |
| 135 | /* 4G ralated parameters */ |
| 136 | esm_qci_enum qci; |
| 137 | } sm_ratdm_modify_req_struct; |
| 138 | |
| 139 | typedef struct { |
| 140 | NSAPI_STRUCT_HDR // LOCAL_PARA_HDR + kal_uint8 nsapi (SM code assume nsapi is the first parameter of some primitive) |
| 141 | } sm_ratdm_modify_cnf_struct; |
| 142 | |
| 143 | typedef struct { |
| 144 | NSAPI_STRUCT_HDR // LOCAL_PARA_HDR + kal_uint8 nsapi (SM code assume nsapi is the first parameter of some primitive) |
| 145 | kal_uint8 cause; |
| 146 | } sm_ratdm_status_ind_struct; |
| 147 | |
| 148 | // The primitive is used to indicate RATDM that upper layer (UPCM, IPCore¡Ketc) configuration is done, |
| 149 | // and downlink packet data can now route to upper layer if they were queued in RATDM or lower layer. |
| 150 | // Although current RATDM does not queue any DL data, |
| 151 | // we decide to align 4G design and still send this primitive for future possible usage |
| 152 | typedef struct { |
| 153 | NSAPI_STRUCT_HDR // LOCAL_PARA_HDR + kal_uint8 nsapi (SM code assume nsapi is the first parameter of some primitive) |
| 154 | } sm_ratdm_allow_dl_packet_ind_struct; |
| 155 | |
| 156 | #if 0 |
| 157 | /* under construction !*/ |
| 158 | /* under construction !*/ |
| 159 | /* under construction !*/ |
| 160 | /* under construction !*/ |
| 161 | /* under construction !*/ |
| 162 | /* under construction !*/ |
| 163 | /* under construction !*/ |
| 164 | /* under construction !*/ |
| 165 | /* under construction !*/ |
| 166 | /* under construction !*/ |
| 167 | /* under construction !*/ |
| 168 | /* under construction !*/ |
| 169 | /* under construction !*/ |
| 170 | #endif // ~ #if 0 |
| 171 | |
| 172 | |
| 173 | #endif /* SM_RATDM_STRUCT_H */ |