| /***************************************************************************** |
| * 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) 2016 |
| * |
| * 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). |
| * |
| *****************************************************************************/ |
| /************************************************************* |
| * |
| * This Software is the property of VIA Telecom, Inc. and may only be used pursuant to a license from VIA Telecom, Inc. |
| * |
| * Any unauthorized use inconsistent with the terms of such license is strictly prohibited. |
| * |
| * Copyright (c) 2002-2010 VIA Telecom, Inc. All rights reserved. |
| * |
| *************************************************************/ |
| #ifndef LOCSMC_H |
| #define LOCSMC_H |
| /***************************************************************************** |
| * |
| * FILE NAME : locSmc.h |
| * |
| * DESCRIPTION : |
| * |
| * |
| * |
| * HISTORY : |
| * |
| * See Log at end of file |
| * |
| *****************************************************************************/ |
| |
| typedef enum |
| { |
| MSA_INIT, |
| MSA_WFR_TCP_CONN, |
| MSA_MS_INFO, |
| MSA_REQ_PPM_AFTER_SYS_PARM_INFO, |
| MSA_GPS_AA, |
| MSA_IMM_AA_SA, |
| MSA_SEQ_AA_SA, |
| MSA_REQ_PRM, |
| MSA_IDLE, |
| MSA_REQ_PPM, |
| MSA_REQ_LOC, |
| MSA_WAIT_1X_WAKEUP, |
| MSA_PREEMPT_TIMER, |
| MSA_WFR_TCP_CLOSING, |
| MSA_WFR_TIME_READY, |
| MSA_NUM_STATE |
| } MSA_STATES; |
| |
| typedef enum |
| { |
| MSB_INIT, |
| MSB_WFR_TCP_CONN, |
| MSB_MS_INFO, |
| MSB_REQ_PPM_AFTER_SYS_PARM_INFO, |
| MSB_TIME_GET, |
| MSB_GPS_AA=5, |
| MSB_IMM_AA_SA_ST, |
| MSB_SAT_DATA_REQ, |
| MSB_LOC_RESP_END, |
| MSB_MS_INFO_END, |
| MSB_WAIT_1X_WAKEUP=10, |
| MSB_WFR_ASSIST_REQ, |
| MSB_WFR_MPC_CONN_ST=12, |
| MSB_PREEMPT_TIMER, |
| MSB_PREEMPT_1x, |
| MSB_NUM_STATE |
| } MSB_STATES; |
| |
| typedef enum |
| { |
| MSS_INIT, |
| MSS_ACTIVE, |
| MSS_WFR_1X_WAKEUP, |
| MSS_TIME_GET, |
| MSS_NUM_STATE |
| }MSS_STATES; |
| |
| typedef enum |
| { |
| CP_INIT, |
| CP_REQ_PPM_MS_INFO, |
| CP_WFR_PPM, |
| CP_REQ_PPM_PRM, |
| CP_GPS_AA, |
| CP_PPM_REQ, |
| CP_PRM_REQ, |
| CP_IDLE_STATE, |
| CP_REQ_LOC, |
| CP_NUM_STATE |
| }CP_STATES; |
| |
| /* define SUPL MSA State */ |
| typedef enum |
| { |
| SUPL_MSA_INIT, |
| SUPL_MSA_MS_INFO, |
| SUPL_MSA_MS_SYS_INFO, |
| SUPL_MSA_PPM, |
| SUPL_MSA_AA, |
| SUPL_MSA_PREEMPT_TIMER, |
| SUPL_MSA_WAIT_1X_WAKEUP, |
| SUPL_MSA_PRM, |
| SUPL_MSA_REQ_PPM, |
| SUPL_MSA_REQ_LOC, |
| SUPL_MSA_NUM_STATE |
| }SUPL_MSA_STATE; |
| |
| /* define SUPL MSB State */ |
| typedef enum |
| { |
| SUPL_MSB_INIT, |
| SUPL_MSB_WFR_ASSIST_REQ, |
| SUPL_MSB_MS_INFO, |
| SUPL_MSB_MS_SYS_INFO, |
| SUPL_MSB_REQ_PPM_AFTER_SYS_PARM_INFO, |
| SUPL_MSB_SAT_DATA_REQ, |
| SUPL_MSB_MS_INFO_END, |
| SUPL_MSB_LOC_RESP_END, |
| SUPL_MSB_NUM_STATE |
| }SUPL_MSB_STATE; |
| |
| #endif /*LOCSMC_H*/ |
| |
| |