[Feature]Upload Modem source code

Change-Id: Id4294f30faced84d3e6fd6d5e61e1111bf287a37
diff --git a/mcu/protocol/interface/ddm/d2_d2pm_struct.h b/mcu/protocol/interface/ddm/d2_d2pm_struct.h
new file mode 100644
index 0000000..e83a543
--- /dev/null
+++ b/mcu/protocol/interface/ddm/d2_d2pm_struct.h
@@ -0,0 +1,350 @@
+#ifndef  __D2_D2PM_STRUCT_H__
+#define  __D2_D2PM_STRUCT_H__
+
+#include "kal_public_defs.h"
+#include "atcmd_enum.h"
+#include "netinfo_common_struct.h"
+#include "pdn_public_defs.h"
+#include "atp_d2at_struct.h"
+#include "d2pm_ddm_struct.h"
+#include "d2_public_defs.h"
+
+// Type definition
+typedef struct d2_d2pm_hdr d2_d2pm_hdr_t;
+typedef struct d2_d2pm_hdr* d2_d2pm_hdr_ptr_t;
+
+// Macros
+#define D2_D2PM_REQ_LOCAL_PARA_HDR    \
+    LOCAL_PARA_HDR \
+    kal_uint16 src_id;
+
+#define D2_D2PM_NF_LOCAL_PARA_HDR    \
+    LOCAL_PARA_HDR \
+    kal_uint16 src_id;
+
+#define D2_D2PM_IND_LOCAL_PARA_HDR    \
+    LOCAL_PARA_HDR \
+    kal_uint16 src_id;
+
+#define D2_D2PM_RSP_LOCAL_PARA_HDR    \
+    LOCAL_PARA_HDR \
+    kal_uint16 src_id;
+
+// Functions
+// N/A
+
+// Implementation
+struct d2_d2pm_hdr
+{
+    LOCAL_PARA_HDR
+    kal_uint16 src_id;
+};
+
+/******************************************************************************
+* D2 to D2PM REQ                                                              *
+*******************************************************************************/
+
+// MSG_ID_D2_D2PM_ACT_DATA_CALL_REQ
+typedef struct
+{
+    D2_DATA_CALL_REQ_LOCAL_PARA_HDR
+
+    /* common part */
+    kal_char apn[APN_STRING_LEN];
+    kal_uint32 apn_idx;
+    kal_uint32 apn_type;
+    kal_uint32 suff_cond;
+    d2_ipv4v6_fb_enum ipv4v6_fb_pref;
+    kal_int32 cid;
+    kal_int32 p_cid;
+    kal_int32 fb_cid;
+
+    /* custom part, only for APN index D2PM_APN_IDX_CUSTOM_UNS */
+    kal_bool has_custom;
+    pdp_addr_type_enum pdx_type;
+    kal_char usrname[USERID_STRING_LEN];
+    kal_char passwd[PASSWORD_STRING_LEN];
+    kal_int8 auth_type;
+    kal_uint32 bearer_bitmask;
+    struct
+    {
+        struct
+        {
+            pdp_addr_type_enum pdx_type;
+        }roam;
+
+        struct
+        {
+            kal_char dnn[APN_STRING_LEN];
+            pdp_addr_type_enum pdx_type;
+            atcmd_SSC_mode_enum ssc_mode;
+            at_s_nssai_struct s_nssai;
+            atcmd_Access_type_enum access_type;
+        }vg;
+
+        struct
+        {
+            pdp_addr_type_enum pdx_type;
+        }vg_roam;
+
+        /* operator part */
+        struct
+        {
+            kal_uint32 wapn;
+            kal_uint32 apncl;
+            kal_uint32 apned;
+            kal_uint32 max_conn;
+            kal_uint32 max_conn_t;
+            kal_uint32 wait_time;
+        }vzw;
+
+        struct
+        {
+            kal_uint32 inact_time;
+        }sprint;
+    }cond;
+}d2_d2pm_act_data_call_req_struct;
+
+
+// MSG_ID_D2_DEACT_DATA_CALL_REQ
+typedef struct
+{
+    D2_DATA_CALL_REQ_LOCAL_PARA_HDR
+
+    /* common part */
+    kal_int32 cid;
+    atcmd_deact_cause_enum reason;
+}d2_d2pm_deact_data_call_req_struct;
+
+
+// MSG_ID_D2_ABORT_DATA_CALL_REQ
+typedef struct
+{
+    D2_DATA_CALL_REQ_LOCAL_PARA_HDR
+
+    /* common part */
+    kal_char apn[APN_STRING_LEN];
+    kal_uint32 apn_idx;
+    kal_uint32 apn_type;
+    kal_int32 cid;
+    atcmd_deact_cause_enum reason;
+}d2_d2pm_abort_data_call_req_struct;
+
+
+/******************************************************************************
+* D2 to User CNF                                                              *
+*******************************************************************************/
+
+#if 0
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+#endif
+
+
+/******************************************************************************
+* D2 to User IND                                                              *
+*******************************************************************************/
+
+#if 0
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+#endif
+
+
+/******************************************************************************
+* User to D2 RSP                                                            *
+*******************************************************************************/
+
+#if 0
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+/* under construction !*/
+#endif
+
+#endif