blob: 4fd91be58d183a2ebf213a16df062bb22506f0ab [file] [log] [blame]
yu.dongc33b3072024-08-21 23:14:49 -07001/*****************************************************************************
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) 2006
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 *
38 * Filename:
39 * ---------
40 * rr2rrlp_struct.h
41 *
42 * Project:
43 * --------
44 * MAUI
45 *
46 * Description:
47 * ------------
48 * This file contains SUPL task entry function.
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 * removed!
93 *------------------------------------------------------------------------------
94 * Upper this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
95 *============================================================================
96 ****************************************************************************/
97
98#ifndef RR2RRLP_STRUCT_H
99#define RR2RRLP_STRUCT_H
100
101/* add RHR */
102#if 0
103/* under construction !*/
104#endif
105#include "l3_inc_enums.h"
106#include "kal_general_types.h"
107
108/*----------------------------------------------------------------------------*/
109/* GAS to RRLP */
110/*----------------------------------------------------------------------------*/
111
112typedef struct
113{
114 kal_uint16 mcc;
115 kal_uint16 mnc;
116 kal_uint16 lac;
117 kal_uint16 ci;
118 kal_uint8 nmr_idx; /* index to nmr_cell array */
119}rr_rrlp_cell_info_struct;
120
121typedef struct
122{
123 kal_uint16 arfcn;
124 kal_uint8 bsic;
125 kal_uint8 rx_lev;
126}rr_rrlp_nmr_cell_struct;
127
128typedef struct
129{
130 kal_uint8 nmr_cell_num; /* number of cell with nmr infor. */
131 rr_rrlp_nmr_cell_struct nmr_cell[15]; /* max reported cell number is defined to be 15 according to supl spec. */
132}rr_rrlp_nmr_struct;
133
134typedef struct
135{
136 kal_int32 reported_FN; /* current reported frame number */
137 rr_rrlp_cell_info_struct serv_info; /* serving cell information */
138 kal_uint8 ncell_num; /* neighbor cell number */
139 rr_rrlp_cell_info_struct ncell_info[6]; /* max allowed number of neighbor cell is defined to be 6 */
140 rr_rrlp_nmr_struct nmr; /* network measurement report infor => only valid for serving cell? */
141}rr_rrlp_cell_info_report_struct;
142
143#ifdef __AGPS_CONTROL_PLANE__
144typedef struct{
145 LOCAL_PARA_HDR
146 kal_bool more_to_send; /* more RRLP message would be sent continuous, for future use */
147 app_data_cr_enum cr_flag; /* distinguish command and response */
148 kal_uint16 arfcn;
149}gas_rrlp_data_ind_struct;
150
151typedef struct{
152 LOCAL_PARA_HDR
153 abort_rrlp_cause_enum abort_cause; /* notify RRLP if GPS chip should be disabled or not */
154}gas_rrlp_abort_ind_struct;
155#endif /* __AGPS_CONTROL_PLANE__ */
156/*----------------------------------------------------------------------------*/
157/* RRLP to GAS */
158/*----------------------------------------------------------------------------*/
159#ifdef __AGPS_CONTROL_PLANE__
160typedef struct{
161 LOCAL_PARA_HDR
162 kal_uint8 mui;
163 kal_bool is_successful;
164}rrlp_gas_data_cnf_struct;
165
166typedef struct{
167 LOCAL_PARA_HDR
168 kal_uint8 mui;
169 kal_bool more_to_send; /* more RRLP message would be sent continuous */
170 app_data_cr_enum cr_flag; /* distinguish command or final response */
171 //kal_uint8 cr_flag; /* distinguish command or final response */
172}rrlp_gas_data_req_struct;
173#endif /* __AGPS_CONTROL_PLANE__ */
174
175#endif /* RR2RRLP_STRUCT_H */