rjw | 6c1fd8f | 2022-11-30 14:33:01 +0800 | [diff] [blame] | 1 | /***************************************************************************** |
| 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 | * FILE NAME : pswsapi.h |
| 47 | * |
| 48 | * DESCRIPTION : API definition for PSW secondary task. |
| 49 | * |
| 50 | * HISTORY : |
| 51 | * See Log at end of file |
| 52 | * |
| 53 | *****************************************************************************/ |
| 54 | #ifndef _PSWSAPI_H_ |
| 55 | #define _PSWSAPI_H_ |
| 56 | |
| 57 | /*---------------------------------------------------------------------------- |
| 58 | Global typedefs |
| 59 | ----------------------------------------------------------------------------*/ |
| 60 | |
| 61 | /*---------------------------------------------------------------------------- |
| 62 | Include Files |
| 63 | ----------------------------------------------------------------------------*/ |
| 64 | #include "sysapi.h" |
| 65 | |
| 66 | #include "module_msg_range.h" |
| 67 | /*---------------------------------------------------------------------------- |
| 68 | Global Defines and Macros |
| 69 | ----------------------------------------------------------------------------*/ |
| 70 | #define PSW_S_MAILBOX_CMD EXE_MAILBOX_1_ID |
| 71 | /*---------------------------------------------------------------------------- |
| 72 | Message IDs |
| 73 | ----------------------------------------------------------------------------*/ |
| 74 | |
| 75 | /*-----------------** |
| 76 | ** Message Formats ** |
| 77 | **------------------*/ |
| 78 | typedef struct |
| 79 | { |
| 80 | kal_uint8 parameterP[64]; |
| 81 | kal_uint8 parameterG[20]; |
| 82 | kal_uint8 exp[20]; |
| 83 | } PswSModExpMSReqMsgT; |
| 84 | |
| 85 | typedef struct |
| 86 | { |
| 87 | kal_uint8 bsResult[64]; |
| 88 | kal_uint8 parameterP[64]; |
| 89 | kal_uint8 exp[20]; |
| 90 | kal_uint8 numbytes; |
| 91 | } PswSModExpKReqMsgT; |
| 92 | |
| 93 | typedef struct |
| 94 | { |
| 95 | kal_uint16 sid; |
| 96 | kal_uint16 nid; |
| 97 | kal_uint16 EcIo; |
| 98 | kal_uint8 curSys; |
| 99 | kal_uint16 curChan; |
| 100 | SysCdmaBandT curBand; |
| 101 | } PswSCssValidateSyncMsgT; |
| 102 | |
| 103 | typedef struct { |
| 104 | kal_uint16 lenKey; |
| 105 | kal_uint8 *pKey; |
| 106 | kal_uint8 nPubKeyModLen; |
| 107 | kal_uint8 *pPubKeyMod; |
| 108 | ExeRspMsgT DmuKeyGenReqRspInfo; |
| 109 | } PswSHlpDmuKeyGenReqMsgT; |
| 110 | |
| 111 | typedef struct { |
| 112 | kal_uint8 nTextLen; |
| 113 | kal_uint8 *pText; |
| 114 | kal_uint8 nPubKeyExpLen; |
| 115 | kal_uint8 *pPubKeyExp; |
| 116 | kal_uint8 nPubKeyModLen; |
| 117 | kal_uint8 *pPubKeyMod; |
| 118 | kal_uint8 nEncryptTextLen; |
| 119 | kal_uint8 *pEncryptText; |
| 120 | ExeRspMsgT DmuKeyEncReqRspInfo; |
| 121 | } PswSHlpDmuKeyEncReqMsgT; |
| 122 | #endif |
| 123 | /***************************************************************************** |
| 124 | * $Log: pswsapi.h $ |
| 125 | * |
| 126 | * 06 29 2017 sue.zhong |
| 127 | * [MOLY00259241] [6293][C2K]Replace with KAL data type |
| 128 | * ::KAL type - folder inc |
| 129 | * |
| 130 | * 11 09 2016 sue.zhong |
| 131 | * [MOLY00208435] [6293][C2K]Sync C2K code to UMOLYA TRUNK |
| 132 | * Update C2K PS code (1/2) |
| 133 | * Revision 1.3 2005/03/18 10:05:22 dstecker |
| 134 | * Modifications for the 4.05 merge |
| 135 | * Revision 1.2 2004/03/25 12:07:49 fpeng |
| 136 | * Updated from 6.0 CP 2.5.0 |
| 137 | * Revision 1.1 2003/05/12 15:39:22 fpeng |
| 138 | * Initial revision |
| 139 | * Revision 1.3 2002/06/06 14:25:41 dstecker |
| 140 | * Updated copyright notice |
| 141 | * Revision 1.2 2002/05/29 15:13:56 ameya |
| 142 | * Added structure defn for PswSCssValidateSyncMsgT and msg id PSW_S_CSS_VAL_SYNC_MSG. |
| 143 | * Revision 1.1 2001/11/20 12:03:17 mclee |
| 144 | * Initial revision |
| 145 | * Revision 1.3 2001/04/03 10:10:08 mclee |
| 146 | * Define PswSFillSSPRListMsgT and added enum PSW_S_FILL_SSPR_REQ_MSG |
| 147 | * Revision 1.2 2001/01/24 22:53:35Z mclee |
| 148 | * Declaired structs and enum for PswSmodExpMSReqMsgT & PswSModExpKReqMsgT used to inputs to Diffie Hellman Calculation. |
| 149 | * Revision 1.1.2.1 2000/11/22 00:08:02Z mclee |
| 150 | * Duplicate revision |
| 151 | * Revision 1.1 2000/11/22 00:08:02Z mclee |
| 152 | * Initial revision |
| 153 | *****************************************************************************/ |
| 154 | |
| 155 | /***************************************************************************** |
| 156 | * End of File |
| 157 | *****************************************************************************/ |
| 158 | |