[Feature]Upload Modem source code
Change-Id: Id4294f30faced84d3e6fd6d5e61e1111bf287a37
diff --git a/mcu/protocol/interface/asn/asn1lib/include/asn1lib.h b/mcu/protocol/interface/asn/asn1lib/include/asn1lib.h
new file mode 100644
index 0000000..f64b078
--- /dev/null
+++ b/mcu/protocol/interface/asn/asn1lib/include/asn1lib.h
@@ -0,0 +1,125 @@
+/*****************************************************************************
+* Copyright Statement:
+* --------------------
+* This software is protected by Copyright and the information contained
+* herein is confidential. The software may not be copied and the information
+* contained herein may not be used or disclosed except with the written
+* permission of MediaTek Inc. (C) 2012
+*
+* BY OPENING THIS FILE, BUYER HEREBY UNEQUIVOCALLY ACKNOWLEDGES AND AGREES
+* THAT THE SOFTWARE/FIRMWARE AND ITS DOCUMENTATIONS ("MEDIATEK SOFTWARE")
+* RECEIVED FROM MEDIATEK AND/OR ITS REPRESENTATIVES ARE PROVIDED TO BUYER ON
+* AN "AS-IS" BASIS ONLY. MEDIATEK EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES,
+* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF
+* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT.
+* NEITHER DOES MEDIATEK PROVIDE ANY WARRANTY WHATSOEVER WITH RESPECT TO THE
+* SOFTWARE OF ANY THIRD PARTY WHICH MAY BE USED BY, INCORPORATED IN, OR
+* SUPPLIED WITH THE MEDIATEK SOFTWARE, AND BUYER AGREES TO LOOK ONLY TO SUCH
+* THIRD PARTY FOR ANY WARRANTY CLAIM RELATING THERETO. MEDIATEK SHALL ALSO
+* NOT BE RESPONSIBLE FOR ANY MEDIATEK SOFTWARE RELEASES MADE TO BUYER'S
+* SPECIFICATION OR TO CONFORM TO A PARTICULAR STANDARD OR OPEN FORUM.
+*
+* BUYER'S SOLE AND EXCLUSIVE REMEDY AND MEDIATEK'S ENTIRE AND CUMULATIVE
+* LIABILITY WITH RESPECT TO THE MEDIATEK SOFTWARE RELEASED HEREUNDER WILL BE,
+* AT MEDIATEK'S OPTION, TO REVISE OR REPLACE THE MEDIATEK SOFTWARE AT ISSUE,
+* OR REFUND ANY SOFTWARE LICENSE FEES OR SERVICE CHARGE PAID BY BUYER TO
+* MEDIATEK FOR SUCH MEDIATEK SOFTWARE AT ISSUE.
+*
+* THE TRANSACTION CONTEMPLATED HEREUNDER SHALL BE CONSTRUED IN ACCORDANCE
+* WITH THE LAWS OF THE STATE OF CALIFORNIA, USA, EXCLUDING ITS CONFLICT OF
+* LAWS PRINCIPLES. ANY DISPUTES, CONTROVERSIES OR CLAIMS ARISING THEREOF AND
+* RELATED THERETO SHALL BE SETTLED BY ARBITRATION IN SAN FRANCISCO, CA, UNDER
+* THE RULES OF THE INTERNATIONAL CHAMBER OF COMMERCE (ICC).
+*
+*****************************************************************************/
+
+/*******************************************************************************
+ * Filename:
+ * ---------
+ * asn1lib.h
+ *
+ * Project:
+ * --------
+ * MAUI
+ *
+ * Description:
+ * ------------
+ *
+ *
+ * Author:
+ * -------
+ *
+ *
+ *==============================================================================
+ * HISTORY
+ * Below this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
+ *------------------------------------------------------------------------------
+ *
+ *------------------------------------------------------------------------------
+ * Upper this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
+ *==============================================================================
+ *******************************************************************************/
+
+#ifndef _ASN1LIB_h_
+#define _ASN1LIB_h_
+
+#include "kal_general_types.h"
+
+typedef enum asn_error_type {
+ NOT_ERROR,
+ RECOVERABLE_ERROR,
+ UNRECOVERABLE_ERROR
+} asn_error_type;
+
+typedef enum asn_error_detail {
+ SPARE_ERROR,
+ OUT_OF_RANGE_ERROR,
+ IGNORE_FUNCTION
+} asn_error_detail;
+
+typedef struct asn_cond_error_info {
+ kal_int32 cond_code;
+ void *ptr;
+} asn_cond_error_info;
+
+typedef struct asn_list_node
+{
+ struct asn_list_node *prev;
+ struct asn_list_node *next;
+ void *data;
+} asn_list_node;
+
+typedef struct asn_list
+{
+ asn_list_node *first;
+ asn_list_node *last;
+ asn_list_node *curr;
+ int count;
+ int dataSize;
+} asn_list;
+
+typedef struct ErrorStruct {
+ asn_error_type error_type;
+ asn_error_detail error_flag;
+ kal_int32 structNameEnum;
+ asn_list cond_errors;
+ kal_int32 comp_req;
+} ErrorStruct;
+
+struct prtBuffMgr{
+ char *buff;
+ int currbuff_size;
+ int origbuff_size;
+ int index;
+};
+
+typedef struct prtBuffMgr PrintBuffMgr;
+
+
+extern void asn_list_init(asn_list *list, kal_int32 dataSize);
+extern void InitErrorStruct(ErrorStruct *error_info);
+
+
+#endif /* _ASN1LIB_h_ */
+
+