blob: 0663f61d2cb29d6e830dfd433393ff93d891d21a [file] [log] [blame]
rjw6c1fd8f2022-11-30 14:33:01 +08001/*************************************************************
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
29extern "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 */
40void bios7074AppIntTCPConnectStatus( kal_uint8 connect_status,
41 kal_uint32 mobile_ip,
42 kal_uint32 iwf_ip );
43void bios7074AppIntRxInd ( kal_uint8 sap, kal_uint8 *data, kal_uint16 size );
44void bios7074AppIntTxRsp ( kal_uint8 sap, kal_int16 status );
45
46 /* Browser notifications */
47void bios7074BrowserRxDatagramInd( kal_uint8 sap, ReceiveFromRequest *r );
48void bios7074BrowserSendDatagramRsp(kal_uint8 sap, kal_int8 status);
49
50 /* PPP -> RLP commands/indications */
51void 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) */
54void bios7074RmPppConnectStatus( kal_uint8 status );
55
56 /* Top of PPP (and RLP) -> Network Layer functions for Packet Mode (Um) */
57void 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 */
64void 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);
70void bios7074SocketConnStatus(kal_uint8 sap, kal_int16 status, kal_uint32 srcIP, kal_uint32 destIP, kal_uint16 srcPort, kal_uint16 dstPort);
71
72/* Configuration */
73void bios7074CfgGetUserInfo(kal_uint8 app, char** userName, char** password, kal_uint8 *lenPassword);
74#ifdef MTK_DEV_HLP_PPP_MNRP
75void bios7074CfgSetMNRPRegCounter(kal_uint8 regCounter);
76kal_uint8 bios7074CfgGetMNRPRegCounter(void);
77#endif
78kal_uint16 bios7074ReadTimer(kal_uint16 timer_id);
79
80/* Mobile IP */
81void bios7074MipAgentAdv (kal_uint32 srcIP, kal_uint32 destIP, kal_uint16 len, kal_uint8* data);
82void bios7074MipRrp (kal_uint32 srcIP, kal_uint32 destIP, kal_uint16 srcPort, kal_uint16 dstPort, kal_uint16 len, kal_uint8* data);
83void bios7074MipUmPppStatus( kal_uint8 status, kal_uint32 local_ip, kal_uint32 remote_ip );
84void HlpSendValA12AuthStatus(kal_bool success);
85kal_bool SetConnErrorCode(kal_uint8 PdnIdTmp, DataConnErrCodeT ErrorCodeTmp);
86void ResetConnErrorCode(kal_uint8 PdnIdTmp);
87kal_bool ForceSetConnErrorCode(kal_uint8 PdnIdTmp, DataConnErrCodeT ErrorCode);
88DataConnErrCodeT GetConnErrorCode(kal_uint8 PdnIdTmp);
89kal_bool CheckConnErrorCodeExsitWithPdnId(kal_uint8 PdnIdTmp);
90kal_bool A12FailureFlagGet(void);
91void 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**/