rjw | 6c1fd8f | 2022-11-30 14:33:01 +0800 | [diff] [blame] | 1 | /************************************************************* |
| 2 | * |
| 3 | * This Software is the property of VIA Telecom, Inc. and may only be used pursuant to a license from VIA Telecom, Inc. |
| 4 | * |
| 5 | * Any unauthorized use inconsistent with the terms of such license is strictly prohibited. |
| 6 | * |
| 7 | * Copyright (c) 2002-2010 VIA Telecom, Inc. All rights reserved. |
| 8 | * |
| 9 | *************************************************************/ |
| 10 | /************************************************************************* |
| 11 | * |
| 12 | * File Name: 7074bios.h |
| 13 | * Project: NSPE stack |
| 14 | * |
| 15 | * Original Author: Steve Pye |
| 16 | * Creation Date: July 10, 1998 |
| 17 | * |
| 18 | * Description: Header file containing the TCP/UDP/IP/PPP |
| 19 | * Engine BIOS prototypes. |
| 20 | * Restrictions: |
| 21 | * Dependencies: |
| 22 | * |
| 23 | ************************************************************************/ |
| 24 | |
| 25 | #ifndef _7074BIOS_H_ |
| 26 | #define _7074BIOS_H_ 1 |
| 27 | |
| 28 | #ifdef __cplusplus |
| 29 | extern "C" { |
| 30 | #endif |
| 31 | #include "kal_public_defs.h" |
| 32 | #include "kal_public_api.h" |
| 33 | |
| 34 | #include "USER_API.H" |
| 35 | #include "cpbuf.h" |
| 36 | #include "do_rcpapi.h" |
| 37 | #include "hlpdef.h" |
| 38 | |
| 39 | /* 'Bottom' of App Int indications */ |
| 40 | void bios7074AppIntTCPConnectStatus( kal_uint8 connect_status, |
| 41 | kal_uint32 mobile_ip, |
| 42 | kal_uint32 iwf_ip ); |
| 43 | void bios7074AppIntRxInd ( kal_uint8 sap, kal_uint8 *data, kal_uint16 size ); |
| 44 | void bios7074AppIntTxRsp ( kal_uint8 sap, kal_int16 status ); |
| 45 | |
| 46 | /* Browser notifications */ |
| 47 | void bios7074BrowserRxDatagramInd( kal_uint8 sap, ReceiveFromRequest *r ); |
| 48 | void bios7074BrowserSendDatagramRsp(kal_uint8 sap, kal_int8 status); |
| 49 | |
| 50 | /* PPP -> RLP commands/indications */ |
| 51 | void bios7074RlpSendData(CpBufferT* dataToSend, kal_uint16 Len, kal_uint16 offset, kal_uint8 RLPFlow, AppSubTypeT SvcStream, socketInfoT *dstSocket); |
| 52 | |
| 53 | /* Top of PPP (and UART) -> 'IP or CLNP' functions for Packet Mode (Rm) */ |
| 54 | void bios7074RmPppConnectStatus( kal_uint8 status ); |
| 55 | |
| 56 | /* Top of PPP (and RLP) -> Network Layer functions for Packet Mode (Um) */ |
| 57 | void bios7074UmDormantReconnectReq(void); |
| 58 | /* |
| 59 | void bios7074UmLcpConnectStatus( kal_uint8 status ); |
| 60 | void bios7074UmIpcpConnectStatus( kal_uint8 status, |
| 61 | kal_uint32 local_ip, |
| 62 | kal_uint32 remote_ip ); |
| 63 | */ |
| 64 | void bios7074UmPppConnectStatus(kal_uint8 status, |
| 65 | kal_uint32 local_ip, |
| 66 | kal_uint32 remote_ip, |
| 67 | kal_uint32 priDNSaddr, |
| 68 | kal_uint32 secDNSaddr, |
| 69 | kal_bool IsAccessStream); |
| 70 | void bios7074SocketConnStatus(kal_uint8 sap, kal_int16 status, kal_uint32 srcIP, kal_uint32 destIP, kal_uint16 srcPort, kal_uint16 dstPort); |
| 71 | |
| 72 | /* Configuration */ |
| 73 | void bios7074CfgGetUserInfo(kal_uint8 app, char** userName, char** password, kal_uint8 *lenPassword); |
| 74 | #ifdef MTK_DEV_HLP_PPP_MNRP |
| 75 | void bios7074CfgSetMNRPRegCounter(kal_uint8 regCounter); |
| 76 | kal_uint8 bios7074CfgGetMNRPRegCounter(void); |
| 77 | #endif |
| 78 | kal_uint16 bios7074ReadTimer(kal_uint16 timer_id); |
| 79 | |
| 80 | /* Mobile IP */ |
| 81 | void bios7074MipAgentAdv (kal_uint32 srcIP, kal_uint32 destIP, kal_uint16 len, kal_uint8* data); |
| 82 | void bios7074MipRrp (kal_uint32 srcIP, kal_uint32 destIP, kal_uint16 srcPort, kal_uint16 dstPort, kal_uint16 len, kal_uint8* data); |
| 83 | void bios7074MipUmPppStatus( kal_uint8 status, kal_uint32 local_ip, kal_uint32 remote_ip ); |
| 84 | void HlpSendValA12AuthStatus(kal_bool success); |
| 85 | kal_bool SetConnErrorCode(kal_uint8 PdnIdTmp, DataConnErrCodeT ErrorCodeTmp); |
| 86 | void ResetConnErrorCode(kal_uint8 PdnIdTmp); |
| 87 | kal_bool ForceSetConnErrorCode(kal_uint8 PdnIdTmp, DataConnErrCodeT ErrorCode); |
| 88 | DataConnErrCodeT GetConnErrorCode(kal_uint8 PdnIdTmp); |
| 89 | kal_bool CheckConnErrorCodeExsitWithPdnId(kal_uint8 PdnIdTmp); |
| 90 | kal_bool A12FailureFlagGet(void); |
| 91 | void A12FailureFlagSet(kal_bool flag); |
| 92 | |
| 93 | #ifdef __cplusplus |
| 94 | } |
| 95 | #endif |
| 96 | |
| 97 | #endif /* _7074BIOS_H_ */ |
| 98 | |
| 99 | /**Log information: \main\Trophy\Trophy_wzhou_href22163\1 2013-04-25 03:06:41 GMT wzhou |
| 100 | ** HREF#22163: add A12 auth status message in VAL**/ |
| 101 | /**Log information: \main\Trophy\1 2013-04-25 03:06:22 GMT jzwang |
| 102 | ** href#22163**/ |