blob: 146235b21724eec6fb8c0c81da37d82483eed563 [file] [log] [blame]
rjw6c1fd8f2022-11-30 14:33:01 +08001/*****************************************************************************
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) 2016
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* This Software is the property of VIA Telecom, Inc. and may only be used pursuant to a license from VIA Telecom, Inc.
38*
39* Any unauthorized use inconsistent with the terms of such license is strictly prohibited.
40*
41* Copyright (c) 1999-2010 VIA Telecom, Inc. All rights reserved.
42*
43*************************************************************/
44/****************************************************************************
45 *
46 * Filename: channel.h
47 *
48 * Purpose: Definition of CHANNEL and supporting routines.
49 *
50 ****************************************************************************
51 *
52 * PVCS Header Information
53 *
54 * $Revision: 1.2 $
55 * $Author: fpeng $
56 *
57 * $Log: channel.h $
58 *
59 * 07 06 2017 sue.zhong
60 * [MOLY00259241] [6293][C2K]Replace with KAL data type
61 * Correct copyright file header
62 * Revision 1.2 2004/03/25 12:09:20 fpeng
63 * Updated from 6.0 CP 2.5.0
64 * Revision 1.1 2003/05/12 15:38:31 fpeng
65 * Initial revision
66 * Revision 1.6 2002/07/31 16:54:38 hans
67 * H and G block added for Other Band Class support (cr474).
68 * Revision 1.5 2002/06/06 13:11:01 chinh
69 * Changed and Added Copyright
70 * Revision 1.4 2002/01/02 10:11:21 AMALA
71 * Added new system selection changes.
72 * Revision 1.3 2001/11/20 12:28:03 mclee
73 * Remove BandClass enum
74 * Revision 1.2 2001/06/27 18:31:08 hans
75 * BAND_CLASS_2 and BAND_CLASS_5 defined in BandClass enum.
76 * Revision 1.1 2001/01/17 10:58:10 plabarbe
77 * Initial revision
78 * Revision 1.2 2000/11/13 14:25:13 byang
79 * IS-2000A Idle Mode and LAC intergration - Initial Release.
80 * Revision 1.1 2000/10/24 21:11:04Z fpeng
81 * Initial revision
82 * Revision 1.3 2000/08/23 22:05:17Z RSATTARI
83 * Isotel release 2.8 plus LSI applicable IS-95B changes
84 * Revision 1.8 1999/02/23 00:28:41 mhayduk
85 * Fixed up the frequency to block function so it accounts for
86 * non-PCS bands.
87 *
88 * Revision 1.7 1998/12/07 21:12:41 mhayduk
89 * Added routine to check if Analog is supported in requested band.
90 *
91 * Revision 1.6 1998/10/20 23:58:23 mhayduk
92 * Added T53 support.
93 *
94 * Revision 1.5 1998/06/08 21:48:25 scotvold
95 * Updated for Release 0.06
96 *
97 * Revision 1.4 1998/05/27 17:16:28 scotvold
98 * Updated for Release 0.05.
99 *
100 * Revision 1.3 1998/03/30 23:26:03 mhayduk
101 * Release 0.03.
102 *
103 * Revision 1.1 1997/11/06 17:49:24 mhayduk
104 * Initial revision
105 *
106 *
107 ****************************************************************************
108 ****************************************************************************/
109
110
111#ifndef _CHANNEL_H_
112
113 #define _CHANNEL_H_ 1
114
115/*****************************************************************************
116 * Includes
117 ****************************************************************************/
118#include "pswnam.h"
119#include "cssapi.h"
120/*****************************************************************************
121 * Defines
122 ****************************************************************************/
123
124/*****************************************************************************
125 * Prototypes
126 ****************************************************************************/
127
128 kal_bool cpIsBandChannelValid(SysBandChannelT *bandChannel);
129 kal_bool cpIsBandSupported(SysCdmaBandT band);
130 kal_bool cpSupportCDMAChannel(SysBandChannelT *bandChannel);
131 kal_uint8 cpFrequencyToBlock(SysCdmaBandT band,kal_uint16 frequency);
132 kal_bool cpIsAnalogSupportedInBand(SysCdmaBandT band);
133 void cpSetCdmaBandSupported(SysCdmaBandT band, kal_bool supported);
134 void cpSetNumBandsSupported(kal_uint8 numBands);
135 kal_uint8 cpGetNumBandsSupported(void);
136#endif /*_CHANNEL_H_ */
137