[Feature]Upload Modem source code
Change-Id: Id4294f30faced84d3e6fd6d5e61e1111bf287a37
diff --git a/mcu/interface/protocol/l2_c2k/common/7074BIOS.H b/mcu/interface/protocol/l2_c2k/common/7074BIOS.H
new file mode 100644
index 0000000..0663f61
--- /dev/null
+++ b/mcu/interface/protocol/l2_c2k/common/7074BIOS.H
@@ -0,0 +1,102 @@
+/*************************************************************
+*
+* 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.
+*
+*************************************************************/
+/*************************************************************************
+ *
+ * File Name: 7074bios.h
+ * Project: NSPE stack
+ *
+ * Original Author: Steve Pye
+ * Creation Date: July 10, 1998
+ *
+ * Description: Header file containing the TCP/UDP/IP/PPP
+ * Engine BIOS prototypes.
+ * Restrictions:
+ * Dependencies:
+ *
+ ************************************************************************/
+
+#ifndef _7074BIOS_H_
+#define _7074BIOS_H_ 1
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+#include "kal_public_defs.h"
+#include "kal_public_api.h"
+
+#include "USER_API.H"
+#include "cpbuf.h"
+#include "do_rcpapi.h"
+#include "hlpdef.h"
+
+ /* 'Bottom' of App Int indications */
+void bios7074AppIntTCPConnectStatus( kal_uint8 connect_status,
+ kal_uint32 mobile_ip,
+ kal_uint32 iwf_ip );
+void bios7074AppIntRxInd ( kal_uint8 sap, kal_uint8 *data, kal_uint16 size );
+void bios7074AppIntTxRsp ( kal_uint8 sap, kal_int16 status );
+
+ /* Browser notifications */
+void bios7074BrowserRxDatagramInd( kal_uint8 sap, ReceiveFromRequest *r );
+void bios7074BrowserSendDatagramRsp(kal_uint8 sap, kal_int8 status);
+
+ /* PPP -> RLP commands/indications */
+void bios7074RlpSendData(CpBufferT* dataToSend, kal_uint16 Len, kal_uint16 offset, kal_uint8 RLPFlow, AppSubTypeT SvcStream, socketInfoT *dstSocket);
+
+ /* Top of PPP (and UART) -> 'IP or CLNP' functions for Packet Mode (Rm) */
+void bios7074RmPppConnectStatus( kal_uint8 status );
+
+ /* Top of PPP (and RLP) -> Network Layer functions for Packet Mode (Um) */
+void bios7074UmDormantReconnectReq(void);
+ /*
+ void bios7074UmLcpConnectStatus( kal_uint8 status );
+ void bios7074UmIpcpConnectStatus( kal_uint8 status,
+ kal_uint32 local_ip,
+ kal_uint32 remote_ip );
+ */
+void bios7074UmPppConnectStatus(kal_uint8 status,
+ kal_uint32 local_ip,
+ kal_uint32 remote_ip,
+ kal_uint32 priDNSaddr,
+ kal_uint32 secDNSaddr,
+ kal_bool IsAccessStream);
+void bios7074SocketConnStatus(kal_uint8 sap, kal_int16 status, kal_uint32 srcIP, kal_uint32 destIP, kal_uint16 srcPort, kal_uint16 dstPort);
+
+/* Configuration */
+void bios7074CfgGetUserInfo(kal_uint8 app, char** userName, char** password, kal_uint8 *lenPassword);
+#ifdef MTK_DEV_HLP_PPP_MNRP
+void bios7074CfgSetMNRPRegCounter(kal_uint8 regCounter);
+kal_uint8 bios7074CfgGetMNRPRegCounter(void);
+#endif
+kal_uint16 bios7074ReadTimer(kal_uint16 timer_id);
+
+/* Mobile IP */
+void bios7074MipAgentAdv (kal_uint32 srcIP, kal_uint32 destIP, kal_uint16 len, kal_uint8* data);
+void bios7074MipRrp (kal_uint32 srcIP, kal_uint32 destIP, kal_uint16 srcPort, kal_uint16 dstPort, kal_uint16 len, kal_uint8* data);
+void bios7074MipUmPppStatus( kal_uint8 status, kal_uint32 local_ip, kal_uint32 remote_ip );
+void HlpSendValA12AuthStatus(kal_bool success);
+kal_bool SetConnErrorCode(kal_uint8 PdnIdTmp, DataConnErrCodeT ErrorCodeTmp);
+void ResetConnErrorCode(kal_uint8 PdnIdTmp);
+kal_bool ForceSetConnErrorCode(kal_uint8 PdnIdTmp, DataConnErrCodeT ErrorCode);
+DataConnErrCodeT GetConnErrorCode(kal_uint8 PdnIdTmp);
+kal_bool CheckConnErrorCodeExsitWithPdnId(kal_uint8 PdnIdTmp);
+kal_bool A12FailureFlagGet(void);
+void A12FailureFlagSet(kal_bool flag);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* _7074BIOS_H_ */
+
+/**Log information: \main\Trophy\Trophy_wzhou_href22163\1 2013-04-25 03:06:41 GMT wzhou
+** HREF#22163: add A12 auth status message in VAL**/
+/**Log information: \main\Trophy\1 2013-04-25 03:06:22 GMT jzwang
+** href#22163**/