blob: 9d722b5ae4c98b46063d0acb7944375373d07987 [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 * Module: namdata.h
47 *
48 * Purpose: Definitions and prototypes for IS-95 NAM data parameters
49 *
50 ****************************************************************************
51 *
52 * PVCS Header Information
53 *
54 *
55 * $Log: namdata.h $
56 *
57 * 08 24 2017 sue.zhong
58 * [MOLY00273584] [6293][C2K]Remove un-used C source file in makefile to save compile time.
59 *
60 * 07 06 2017 sue.zhong
61 * [MOLY00259241] [6293][C2K]Replace with KAL data type
62 * Correct copyright file header
63 * Revision 1.3 2005/03/18 10:24:53 bcolford
64 * CBP4.05 [4.21] to CBP6.1 [2.9.0] CP Software Merge.
65 * Revision 1.2 2004/08/13 10:04:18 agontar
66 * Removed T53 flag; cleaned up logs
67 * Revision 1.2 2004/03/25 12:09:38 fpeng
68 * Updated from 6.0 CP 2.5.0
69 * Revision 1.1 2003/05/12 15:38:55 fpeng
70 * Initial revision
71 * Revision 1.10 2002/09/30 15:17:46 mshaver
72 * Changed NamData typedef to be of PswIs95NamT type as this
73 * is now is the single NAM data structure type.
74 * Revision 1.9 2002/07/31 17:12:13 hans
75 * ENG_PREF_BAND_4 (cr726) added as sys option to NAM preferred band selection.
76 * Revision 1.8 2002/06/06 13:13:47 chinh
77 * Changed and Added Copyright
78 * Revision 1.7 2002/02/06 11:43:23 mclee
79 * Removed prototypes to deleted files.
80 * Revision 1.6 2001/11/20 12:32:28 mclee
81 * Move IS95Nam struct and add prototype namGetNam
82 * Revision 1.5 2001/11/08 12:20:33 AMALA
83 * Deleted compiler switch SYS_SEL_1_CBP3_MERGE &
84 * associated non-compiled code.
85 * Revision 1.4 2001/10/08 14:47:02 mclee
86 * comment out NamNumber, move definition to sysdefs.h
87 * Revision 1.3 2001/09/17 14:11:41 AMALA
88 * CBP3 System Selection port
89 * Revision 1.2 2001/05/09 09:45:03 cmastro
90 * changes to compile MMI-integration
91 * Revision 1.1 2001/01/17 10:59:05 plabarbe
92 * Initial revision
93 * Revision 1.1 2000/10/24 14:11:21 fpeng
94 * Initial revision
95 * Revision 1.6 2000/09/23 02:39:28Z rnookala
96 * added spc and nam_lock to structure IS95Nam
97 * Revision 1.5 2000/08/31 23:41:56Z bcolford
98 * Replaced AMPS_SUPPORTED with SYS_OPTION_AMPS.
99 * Revision 1.4 2000/08/23 22:21:27Z rnookala
100 * Isotel release 2.8 Added checksum field to NAM
101 * Revision 1.3 2000/03/01 18:15:19Z rsattari
102 * Isotel release 2.3 updates.
103 * Revision 1.16 1999/12/09 23:06:28 gfrye
104 * Added CDMA Primary and Secondary Channel definitions to the NAM so
105 * that they can be modified by different customers.
106 *
107 * Revision 1.15 1999/08/05 01:11:23 scotvold
108 * Moved CP_BCAST_ADDRESS_MAX_SIZE to custom.h.
109 *
110 * Revision 1.14 1999/01/20 19:08:07 mhayduk
111 * Added broadcast address.
112 *
113 * Revision 1.13 1998/12/30 18:59:49 mhayduk
114 * Moved analog parameters inside SYS_OPTION_AMPS.
115 *
116 * Revision 1.12 1998/11/24 05:40:36 mhayduk
117 * Cleaned up definitions for checking of TMSI Zone length -
118 * max zone size is 8.
119 *
120 * Revision 1.11 1998/10/28 01:26:55 guterman
121 * Changed SCMp tp SCMP[0] for AMPS macros
122 *
123 * Revision 1.10 1998/10/20 23:58:23 mhayduk
124 * Added T53 support.
125 *
126 * Revision 1.9 1998/09/22 18:44:57 tdaly
127 * Added IS-95 analog mode support.
128 *
129 * Revision 1.8 1998/06/08 21:48:25 scotvold
130 * Updated for Release 0.06.
131 *
132 * Revision 1.7 1998/05/29 20:34:49 mhayduk
133 * Fixed SCM mask.
134 *
135 * Revision 1.6 1998/05/27 17:16:28 scotvold
136 * Updated for Release 0.05.
137 *
138 * Revision 1.5 1998/05/01 18:13:54 scotvold
139 * Update for release 0.04
140 *
141 * Revision 1.3 1998/03/30 23:26:03 mhayduk
142 * Release 0.03.
143 *
144 * Revision 1.1 1997/11/06 17:49:24 mhayduk
145 * Initial revision
146 *
147 *
148 ****************************************************************************
149 ****************************************************************************/
150
151
152#ifndef _NAMDATA_H_
153
154 #define _NAMDATA_H_ 1
155
156/*****************************************************************************
157 * Includes
158 ****************************************************************************/
159#include "pswnam.h"
160/*****************************************************************************
161 * Definitions for use with NAM
162 ****************************************************************************/
163
164 /* Slotted mode bit mask in SCM */
165 #define CP_SLOTTED_MODE_BIT_MASK 0x20
166
167 /* MEID Support indication bit mask in SCM */
168 #define CP_MEID_SUPPORT_INDICATOR_BIT_MASK 0x10
169
170 /* Fields for Station Class Mark (SCMp) -- RS-553 Section 2.3.3 */
171 #define SCM_Band(x) ((x) & 0x08) /* SCMp Mask -- Bandwidth */
172 #define SCM_Trans(x) ((x) & 0x04) /* SCMp Mask -- Transmission */
173 #define SCM_PClass(x) ((x) & 0x03) /* SCMp Mask -- Power Class */
174
175 #define SCM_20MHz (0 << 3) /* 20MHz Bandwidth */
176 #define SCM_25MHz (1 << 3) /* 25MHz Bandwidth */
177
178 #define SCM_NODTX (0 << 2) /* DTX capability disabled */
179 #define SCM_DTX (1 << 2) /* DTX capability enabled */
180
181 #define PCLASS1 0 /* Power Class I -- High */
182 #define PCLASS2 1 /* Power Class II -- Medium */
183 #define PCLASS3 2 /* Power Class III -- Low */
184 #define NO_PCLASS 3 /* Power Class Reserved (bad) */
185
186 /* Macros */
187 #define IS_DTX_ENABLED(x) ( (SCM_Trans(x.SCMp[0]) == SCM_DTX) && ((x).DTXp) )
188
189#endif /* _NAMDATA_H_ */
190
191