⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 rmc_context.h

📁 最新MTK手机软件源码
💻 H
📖 第 1 页 / 共 4 页
字号:
/*****************************************************************************
*  Copyright Statement:
*  --------------------
*  This software is protected by Copyright and the information contained
*  herein is confidential. The software may not be copied and the information
*  contained herein may not be used or disclosed except with the written
*  permission of MediaTek Inc. (C) 2005
*
*  BY OPENING THIS FILE, BUYER HEREBY UNEQUIVOCALLY ACKNOWLEDGES AND AGREES
*  THAT THE SOFTWARE/FIRMWARE AND ITS DOCUMENTATIONS ("MEDIATEK SOFTWARE")
*  RECEIVED FROM MEDIATEK AND/OR ITS REPRESENTATIVES ARE PROVIDED TO BUYER ON
*  AN "AS-IS" BASIS ONLY. MEDIATEK EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES,
*  EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF
*  MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT.
*  NEITHER DOES MEDIATEK PROVIDE ANY WARRANTY WHATSOEVER WITH RESPECT TO THE
*  SOFTWARE OF ANY THIRD PARTY WHICH MAY BE USED BY, INCORPORATED IN, OR
*  SUPPLIED WITH THE MEDIATEK SOFTWARE, AND BUYER AGREES TO LOOK ONLY TO SUCH
*  THIRD PARTY FOR ANY WARRANTY CLAIM RELATING THERETO. MEDIATEK SHALL ALSO
*  NOT BE RESPONSIBLE FOR ANY MEDIATEK SOFTWARE RELEASES MADE TO BUYER'S
*  SPECIFICATION OR TO CONFORM TO A PARTICULAR STANDARD OR OPEN FORUM.
*
*  BUYER'S SOLE AND EXCLUSIVE REMEDY AND MEDIATEK'S ENTIRE AND CUMULATIVE
*  LIABILITY WITH RESPECT TO THE MEDIATEK SOFTWARE RELEASED HEREUNDER WILL BE,
*  AT MEDIATEK'S OPTION, TO REVISE OR REPLACE THE MEDIATEK SOFTWARE AT ISSUE,
*  OR REFUND ANY SOFTWARE LICENSE FEES OR SERVICE CHARGE PAID BY BUYER TO
*  MEDIATEK FOR SUCH MEDIATEK SOFTWARE AT ISSUE. 
*
*  THE TRANSACTION CONTEMPLATED HEREUNDER SHALL BE CONSTRUED IN ACCORDANCE
*  WITH THE LAWS OF THE STATE OF CALIFORNIA, USA, EXCLUDING ITS CONFLICT OF
*  LAWS PRINCIPLES.  ANY DISPUTES, CONTROVERSIES OR CLAIMS ARISING THEREOF AND
*  RELATED THERETO SHALL BE SETTLED BY ARBITRATION IN SAN FRANCISCO, CA, UNDER
*  THE RULES OF THE INTERNATIONAL CHAMBER OF COMMERCE (ICC).
*
*****************************************************************************/

 /******************************************************************************
 * Filename:
 * ---------
 *   rmc_context.h
 *
 * Project:
 * --------
 *   MAUI
 *
 * Description:
 * ------------
 *
 *
 * Author:
 * -------
 * -------
 *
 *-----------------------------------------------------------------------------
 * $Log$
 *
 * removed!
 * removed!
 * remove HO pending
 *
 * removed!
 * removed!
 * 
 *
 * removed!
 * removed!
 * 
 *
 * removed!
 * removed!
 * 1. Define ext_ra_struct.
 * 2. Create new member extended_RA_in_IAR[4] in rmc_context_struct.
 *
 * removed!
 * removed!
 * 
 *
 * removed!
 * removed!
 * 
 *
 * removed!
 * removed!
 * 
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * 
 *
 ******************************************************************************/

/********************************************************************************
*  Copyright Statement:
*  --------------------
*
*  This product has been developed using a protocol stack
*  developed by Sasken Communication Technologies Limited.
*
********************************************************************************/


#ifndef _RMC_CONTEXT_H
#define _RMC_CONTEXT_H

/*****************
TIMER duration definition
******************/
/***RMC***/

#define HPLMN_SRCH_TIMER_TIMED_OUT_VALUE_UNIT \
         (KAL_TICKS_1_MIN + KAL_TICKS_1_MIN + KAL_TICKS_1_MIN + \
          KAL_TICKS_1_MIN + KAL_TICKS_1_MIN + KAL_TICKS_1_MIN)
/*default nc_report_period_i = 61.44 s*/
#define DEFAULT_NC_REPORT_PERIOD_I (KAL_TICKS_1_MIN + KAL_TICKS_1_SEC +\
                  4 * (KAL_TICKS_100_MSEC+KAL_TICKS_10_MSEC))

/*default nc_report_period_t = 3.84 s*/
#define DEFAULT_NC_REPORT_PERIOD_T (KAL_TICKS_1_SEC + KAL_TICKS_1_SEC +\
               KAL_TICKS_1_SEC + (8 * KAL_TICKS_100_MSEC) + (4 * KAL_TICKS_10_MSEC))


/*TMA timeout value = 2 multi-frame*/
#define TMA_TIMER_TIMED_OUT_VALUE  (102)

/*NON_DRX default value*/
#define DEFAULT_NON_DRX  (KAL_TICKS_50_MSEC+KAL_TICKS_10_MSEC)


#define KAL_TICKS_10_SEC  (KAL_TICKS_5_SEC + KAL_TICKS_5_SEC)

#define KAL_TICKS_15_SEC  (KAL_TICKS_5_SEC + KAL_TICKS_5_SEC +KAL_TICKS_5_SEC)

#define KAL_TICKS_20_SEC  (KAL_TICKS_10_SEC + KAL_TICKS_10_SEC)


/* Claire add (CSRR) */
/**********************
 MACRO without params
***********************/
#define RMC_ADDTNL_ASSGN_MAND_LEN 24
#define RMC_PRTL_REL_MAND_LEN 24
#define RMC_CIPHER_MODE_MAND_LEN 8
#define RMC_CONFIG_CHG_MAND_LEN 8
#define RMC_CHANNEL_REL_MAND_LEN 8
#define RMC_PRTL_REL_COMPL_MSG_LEN 2
/* End Claire add */

#define RMC_TIMER_NUM_MSGS    33    /* Vincent add */



/*****************
Enums Without Tags
******************/

typedef enum
{
  RMC_NULL_STATE,
  RMC_IDLE_STATE,
  RMC_PKT_ACCESS_STATE,
  RMC_PKT_TRANSFER_STATE,
  RMC_DEDICATED_STATE,
  RMC_CELL_RESELECTION_STATE,
  RMC_NUM_STATES
}
rmc_state;

typedef enum
{
  RMC_TBF_UPLINK_ASSIGN,
  RMC_TBF_DOWNLINK_ASSIGN
}
rmc_assign_type;

/* Vincent 030922: not available currently */
#if 0
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
#endif /* end of 0 */

/* Claire add (CSRR) */
typedef enum
{
  S_RMC_IMSI_TYPE = 1,
  S_RMC_PTMSI_TYPE = 4,
  S_RMC_TMSI_TYPE = 5
}
rmc_mob_id_enum;

typedef enum
{
  RMC_INVALID_CHANNEL,
  RMC_FIRST_HR_CHANNEL,
  RMC_SEC_HR_CHANNEL
}
rmc_partial_rel_chan_enum;

typedef enum
{
  RMC_RR_REL_IND = 1,
  RMC_RR_REL_CNF,
  RMC_T3110_EXP,
  RMC_RR_ERROR_IND
}
disconnect_request_state;

typedef enum
{
  RMC_DL,
  RMC_BI
}
DIRECTION;

typedef enum
{
   TBF_NONE,
   TBF_PENDING,
   TBF_START
} TBF_EST_STATUS_ENUM;

#if 0
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
#endif /* Claire del */

typedef enum
{
  S_RMC_CIPHERING_OFF = 0,
  S_RMC_CIPHER_ALGO_5_1,
  S_RMC_CIPHER_ALGO_5_2,
  S_RMC_CIPHER_ALGO_5_3,
  S_RMC_CIPHER_ALGO_5_4,
  S_RMC_CIPHER_ALGO_5_5,
  S_RMC_CIPHER_ALGO_5_6,
  S_RMC_CIPHER_ALGO_5_7
}
CIPHER_ALGO_TYPE;

typedef enum
{
  RMC_NOT_CIPHERED_MODE = 0,
  RMC_CIPHERED_MODE
}
MS_CIPHER_MODE_ENUM;

/* Use channel_mode_enum in mpal_common_interface.h */
#if 0 /* Claire del */
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
#endif

typedef enum
{
  RMC_FIRST_CHANNEL,
  RMC_SECOND_CHANNEL,
  RMC_BOTH_CHANNELS
}
CHAN_NUMBER_ENUM;
/* End Claire add */

/*new add RMC_TIMER enum*/
typedef enum
{
  RMC_T3158_TIMER_EXPIRY = 0,
  RMC_T3162_TIMER_EXPIRY,
  RMC_T3178_TIMER_EXPIRY,
  RMC_T3186_TIMER_EXPIRY,
  RMC_T3170_TIMER_EXPIRY,
  RMC_T3172_TIMER_EXPIRY,
  RMC_T3174_TIMER_EXPIRY,
  RMC_T3176_TIMER_EXPIRY,
  RMC_SERV_CELL_SI_TIMER_EXPIRY,
  RMC_PSI_SI_TIMER_EXPIRY,
  RMC_PSI_READING_TIMER_EXPIRY,             /* Austin 040402: attempt to receive all PSI before packet access */
  RMC_RESEL_PROCESS_TIMER_EXPIRY,
  RMC_ABNOR_RESEL_PROCESS_TIMER_EXPIRY,     //Austin added
  RMC_OLD_CELL_TIMER_EXPIRY,
  RMC_MAC_TIMER_EXPIRY,
  RMC_PENALTY_BASE_TIMER_EXPIRY,
  RMC_HPLMN_TIMER_EXPIRY,
  RMC_LAST_RESEL_TIMER_EXPIRY,
  RMC_NON_DRX_TIMER_EXPIRY,
  RMC_NC_NON_DRX_TIMER_EXPIRY,
  RMC_MM_NON_DRX_TIMER_EXPIRY,
  RMC_T3200_TIMER_EXPIRY,
  RMC_EMO_TIMER_EXPIRY,
  RMC_T3134_TIMER_EXPIRY,
  RMC_T3142_TIMER_EXPIRY,
  RMC_T3146_TIMER_EXPIRY,
  RMC_TMA_TIMER_EXPIRY,
  RMC_T3122_TIMER_EXPIRY,       /* Claire move */
  RMC_T3126_TIMER_EXPIRY,       /* Claire move */
  RMC_REEST_TIMER_EXPIRY,       /* Claire move */
  RMC_SI2Q_TIMER_EXPIRY, /*Byron: 2006/01/04: Use to disable SI2quater reading*/
  RMC_T3164_EXPIRY, /*jack:The timer are for GPRS using only and
                               not exiting in FT_TIMER_table*/
  RMC_T3166_EXPIRY,
  RMC_T3168_EXPIRY,
  RMC_T3180_EXPIRY,
  RMC_T3188_EXPIRY,
  RMC_T3190_EXPIRY,
  RMC_T3192_EXPIRY

}rmpc_timer_id_enum; /* RMC_TIMER Message Type */

/* Begin Paul add */

typedef enum
{
   CBS0_GERMAN = 0,
   CBS0_ENGLISH,
   CBS0_ITALIAN,
   CBS0_FRENCH,
   CBS0_SPANISH,
   CBS0_DUTCH,
   CBS0_SWEDISH,
   CBS0_DANISH,
   CBS0_PORTUGUESE,
   CBS0_FINNISH,
   CBS0_NORWEGIAN,
   CBS0_GREEK,
   CBS0_TURKISH,
   CBS0_HUNGARIAN,
   CBS0_POLISH,
   CBS0_LANG_UNSPECIFIED,

   CBS1_CZECH = 16,
   CBS1_HEBREW,
   CBS1_ARABIC,
   CBS1_RUSSIAN,


   CBS2_AA, // AFAR, 20

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -