blob: 74856928dc9a044cd67d6e4d6c3fd439c6722471 [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) 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) 2010 VIA Telecom, Inc. All rights reserved.
42*
43*************************************************************/
44#ifndef EEPAPI_H
45#define EEPAPI_H
46/*****************************************************************************
47
48 FILE NAME: eepapi.h
49
50 DESCRIPTION : EEP task interface
51
52 This include file provides system wide global type declarations and
53 constants
54 HISTORY :
55 See Log at end of file
56
57*****************************************************************************/
58
59#include "sysdefs.h"
60
61/*------------------------------------------------------------------------
62* EXE Interfaces - Definition of Signals, GPIO and Mailboxes
63*------------------------------------------------------------------------*/
64
65#define EEP_RUN_SIGNAL EXE_SIGNAL_1 /* */
66
67
68/*----------------------------------------------------------------------------
69 Defines Constants used in this file
70----------------------------------------------------------------------------*/
71#define EEP_SLEEP_WAKEUP_FLAG MON_DEEP_SLEEP_EEP_1_FLAG /* for EEP activity */
72
73/*----------------------------------------------------------------------------
74* EEP States : Kind of Virtual State
75*----------------------------------------------------------------------------*/
76typedef enum
77{
78 GPS_PGPS_OFF,
79 GPS_PGPS_ON
80} GpsPgpsStateT;
81
82/*----------------------------------------------------------------------------
83* Message IDs for signals and commands sent to LEC
84*----------------------------------------------------------------------------*/
85
86typedef enum
87{
88 /* from PSW */
89 EEP_GPS_PGPS_SAVED_SEED_MSG, /* Saved Seed file */
90 EEP_GPS_PGPS_SAVED_CLOCK_MSG, /* Saved Clock file */
91
92 /* from ETS */
93 EEP_TST_FSM_READ_MSG,
94 EEP_TST_FSM_WRITE_MSG,
95
96 EEP_TST_RXN_VERSION_MSG,
97 EEP_TST_SEED_CREATE_FROM_TSEED_MSG,
98 EEP_TST_SEED_CHECK_SEED_FILE_MSG,
99 EEP_TST_SEED_DELETE_SEED_FILE_MSG,
100
101 EEP_TST_EEPH_START_PROPAGATOR_MSG,
102 EEP_TST_EEPH_STOP_PROPAGATOR_MSG,
103 EEP_TST_EEPH_CHECK_EEPH_FILES_MSG,
104 EEP_TST_EEPH_DELETE_EEPH_FILES_MSG,
105
106 EEP_NUM_MSGS_ID
107} EepMsgIdT;
108
109/* For the Rerference, Define EEP send Msg IDs to other Tasks */
110/* It should be defined in each Task's api.h file */
111typedef enum
112{
113 EEP_SEND_NUM_MSGS_ID
114} EepSendMsgIdT;
115
116typedef enum
117{
118 NONE = 0x00, /* After Powered On */
119 PATCH = 0x01, /* For Patch Uploading */
120 EEP = 0x02, /* For Propagator */
121 LEC = 0x03 /* For STE's Call */
122
123} CalledByWhoT;
124
125/*----------------------------------------------------------------------------
126* Defined functions in EEP
127*----------------------------------------------------------------------------*/
128/* *pSeed: input - A pointer to where the EEP can get a Seed data from.
129 sSeed: input - Size of seed data. */
130
131extern void EepWriteSeedFile(char *pSeed, kal_uint16 sSeed);
132
133/* *pClock: input - A pointer to where the EEP can get a Clock data from.
134 sClock: input - Size of Clock data. */
135extern void EepWriteClockFile(char *pClock, kal_uint16 sClock);
136
137
138#endif
139/*****************************************************************************
140* $Log: eepapi.h $
141* Revision 1.0 2009/09/08 schun
142*****************************************************************************/
143