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 | * mac_rmpc_enums.h |
| 40 | * |
| 41 | * Project: |
| 42 | * -------- |
| 43 | * MAUI |
| 44 | * |
| 45 | * Description: |
| 46 | * ------------ |
| 47 | * This file is intends to define related messages and paramters between MAC |
| 48 | * and RMPC. |
| 49 | * |
| 50 | * Author: |
| 51 | * ------- |
| 52 | * ------- |
| 53 | * |
| 54 | *============================================================================= |
| 55 | * HISTORY |
| 56 | * Below this line, this part is controlled by PVCS VM. DO NOT MODIFY!! |
| 57 | *------------------------------------------------------------------------------ |
| 58 | * removed! |
| 59 | * |
| 60 | * removed! |
| 61 | * removed! |
| 62 | * removed! |
| 63 | * |
| 64 | * removed! |
| 65 | * removed! |
| 66 | * removed! |
| 67 | * |
| 68 | * removed! |
| 69 | * removed! |
| 70 | * removed! |
| 71 | * |
| 72 | * removed! |
| 73 | * removed! |
| 74 | * removed! |
| 75 | * |
| 76 | * removed! |
| 77 | * removed! |
| 78 | * removed! |
| 79 | * |
| 80 | * removed! |
| 81 | * removed! |
| 82 | * removed! |
| 83 | * |
| 84 | * removed! |
| 85 | * removed! |
| 86 | * removed! |
| 87 | * |
| 88 | * removed! |
| 89 | * removed! |
| 90 | * removed! |
| 91 | * |
| 92 | *------------------------------------------------------------------------------ |
| 93 | * Upper this line, this part is controlled by PVCS VM. DO NOT MODIFY!! |
| 94 | *============================================================================= |
| 95 | ******************************************************************************/ |
| 96 | |
| 97 | /******************************************************************************** |
| 98 | * Copyright Statement: |
| 99 | * -------------------- |
| 100 | * |
| 101 | * This product has been developed using a protocol stack |
| 102 | * developed by Sasken Communication Technologies Limited. |
| 103 | * |
| 104 | ********************************************************************************/ |
| 105 | |
| 106 | #ifndef _MAC_RMPC_ENUMS_H |
| 107 | #define _MAC_RMPC_ENUMS_H |
| 108 | |
| 109 | |
| 110 | |
| 111 | /****************************************************************************** |
| 112 | * Constant |
| 113 | ******************************************************************************/ |
| 114 | #define MAX_RADIO_PRIORITY 4 |
| 115 | #define MAX_OCTETS_IN_CONTROL_BLOCK 22 |
| 116 | #define MAX_OCTETS_WITH_HEADER_IN_CONTROL_BLOCK 23 |
| 117 | |
| 118 | /****************************************************************************** |
| 119 | * Enum Value |
| 120 | ******************************************************************************/ |
| 121 | typedef enum { |
| 122 | UL_FAILURE, |
| 123 | UL_SUCCESS, |
| 124 | UPDATE_PROTECT_PACCH |
| 125 | } pa_result_type_enum; |
| 126 | |
| 127 | typedef enum { |
| 128 | DL_FAILURE, |
| 129 | DL_SUCCESS |
| 130 | } dl_result_type_enum; |
| 131 | |
| 132 | typedef enum { |
| 133 | ONE_PHASE_CONTENTION_IN_PROG, /* 0 */ |
| 134 | TWO_PHASE_CONTENTION_IN_PROG, /* 1 */ |
| 135 | CONTENTION_PASS, /* 2 */ |
| 136 | DL_TBF_PENDING, /* 3 */ |
| 137 | INVALID_FREQ_PARAMS, /* 4 */ |
| 138 | NO_FREQ_PARAMS, /* 5 */ |
| 139 | NOT_SUPPORTING_MODE, /* 6 */ |
| 140 | INVALID_CODING_SCHEME, /* 7 */ |
| 141 | ONE_PHASE_CONTENTION_FAIL, /* 8 */ |
| 142 | TWO_PHASE_CONTENTION_FAIL, /* 9 */ |
| 143 | MULTI_SLOT_RESTRICTION_NOT_MET, /* 10 */ |
| 144 | GOT_ACCESS_REJ, /* 11 */ |
| 145 | UL_TFI_ABSENT, /* 12 */ |
| 146 | DL_TFI_ABSENT, /* 13 */ |
| 147 | MSG_DECODE_ERR, /* 14 */ |
| 148 | MSG_WITH_INVALID_STARTING_TIME, /* 15 */ |
| 149 | ACCESS_FAIL_WITH_MAX_RETRY, /* 16 */ |
| 150 | |
| 151 | #ifdef __TBF_EST__ |
| 152 | MSG_WITH_INVALID_STARTING_TIME_TBF_EST, /*17 */ |
| 153 | #endif |
| 154 | |
| 155 | /* Lanslo 20070424: MONZA receives bad single block |
| 156 | (should be PCCO) during packet access in 8960 inter-RAT test */ |
| 157 | DL_SINGLE_BLK_ERR, /* 18 */ |
| 158 | |
| 159 | /* Byron: Add for GEMINI, for DL single block that MAC accept it, |
| 160 | Another RR actually can be resume. Therefore, add this cause |
| 161 | to let MAC inform RMC when accept this DL single block assignment. |
| 162 | This inform procedure is also the new one*/ |
| 163 | /*Byron: 2007/11/19: This is needed for MONZA due to there is a DL TBF in progress substate*/ |
| 164 | DL_SINGLE_BLK_SUCC, /* 19 */ |
| 165 | /*Evelyn 20080826: Add to notify RMPC that second DL_ASSIGN_IND is dropped by MAC |
| 166 | Because DL TBF is in progress*/ |
| 167 | DROP_DUE_TO_DL_IN_PROG, /* 20 */ |
| 168 | |
| 169 | /* Nancy 20090727: Send uplink single block through MAC. */ |
| 170 | UL_SINGLE_BLK_IN_PROG, /* 21 */ |
| 171 | UL_SINGLE_BLK_SUCC, /* 22 */ |
| 172 | /* Nancy 20090727: If uplink single block and failure is due to invalid |
| 173 | * starting time, access procedure is aborted. |
| 174 | * [TS 04.18] 3.5.2.1.3.3 If the mobile station receives the IMMEDIATE |
| 175 | * ASSIGNMENT message after the TBF starting time has expired, a failure has |
| 176 | * occurred. If a failure occurs and the packet access attempt was due to the |
| 177 | * sending of an RLC/MAC control message, the packet access is aborted, the |
| 178 | * mobile station returns to packet idle mode. */ |
| 179 | MSG_WITH_INVALID_STARTING_TIME_FOR_CTRL_MSG, /* 23 */ |
| 180 | START_PACCH_PROTECT_REQ, /* 24 */ |
| 181 | STOP_PACCH_PROTECT_REQ, /* 25 */ |
| 182 | |
| 183 | TOTAL_ACCESS_RESULT_ENUM /* 26 */ |
| 184 | } access_result_enum; |
| 185 | |
| 186 | /* Vincent 040207 add */ |
| 187 | typedef enum |
| 188 | { |
| 189 | ALL_TBF_END, |
| 190 | DL_TBF_START, |
| 191 | UL_TBF_START |
| 192 | } tbf_status_change_enum; |
| 193 | |
| 194 | #ifdef __EGPRS_MODE__ |
| 195 | typedef enum EGPRS_MEAS_PARAM |
| 196 | { |
| 197 | LINK_QUALITY_MEASUREMENT_MODE, |
| 198 | BEP_PERIOD, |
| 199 | BEP_PERIOD2 |
| 200 | } egprs_meas_param_enum; |
| 201 | #endif /* end of __EGPRS_MODE__ */ |
| 202 | |
| 203 | #endif /* end of _MAC_RMPC_ENUMS_H */ |
| 204 | |
| 205 | |