blob: 94f991ebececa16f34b6da0853e727d9981b6030 [file] [log] [blame]
/*****************************************************************************
* 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:
* ---------
* mml1_general.h
*
* Project:
* --------
* MT6290
*
* Description:
* ------------
* Multi-Mode L1 General define
*
* Author:
* -------
* -------
*
*============================================================================
* HISTORY
* Below this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
*----------------------------------------------------------------------------
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
*
*----------------------------------------------------------------------------
* Upper this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
*============================================================================
****************************************************************************/
#ifndef _MML1_GENERAL_H_
#define _MML1_GENERAL_H_
#include "kal_general_types.h"
#define MML1_CAPABILITY_PER_BUFFER_SIZE 5 // take 5 bits to check whether this band can be represented as uint32
#define MML1_CAPABILITY_PER_BUFFER_VALID_MASK 0x1F // check whether the band is in range of 1 to 32 in a buffer
#define MML1_UE_CAPA_BAND_INDEX_TRANS(band) (band-1) // bit 0 is for Band1, bit1 is for Band2,..., and so on
#define MML1_UE_CAPA_BUFFER_INDEX_TRANS(band) (band >> MML1_CAPABILITY_PER_BUFFER_SIZE) // calculate buffer index by (band/32)
typedef enum
{
CCEL1D_RF_SUPPORTBAND = 0x0001,
CCNL1D_RF_SUPPORTBAND = 0x0002,
CCNL1D_RF_SUPPORTBAND_PARTIAL = 0x0004,
}CCMML1_RFD_E;
typedef enum /* Note: this enum is cloned from l1_afc.h's afc_rat */
{
MML1_2G = 0, /* 0 */
MML1_3G_FDD , /* 1 */
MML1_3G_TDD , /* 2 */
MML1_LTE , /* 3 */
MML1_C2K , /* 4 */
MML1_NR , /* 5 */
MML1_NONE , /* 6 */
}MML1_RF_CONFLICT_RAT_T;
typedef enum
{
MML1_SIM1 = 0, /* 0 */
MML1_SIM2 , /* 1 */
MML1_SIM3 , /* 2 */
MML1_SIM4 , /* 3 */
}MML1_RF_CONFLICT_SIM_IDX_T;
void MML1_CheckRFConflictRAT( kal_uint8 src_sim, kal_uint8 src_rat );
#endif /* End of #ifndef _MML1_GENERAL_H_ */