[Feature][Modem]Add Modem Patch P1

Change-Id: Idee4f9fd6700b484f7db86704cf5639cec4d71a2
diff --git a/mcu/interface/protocol/general/netinfo_common_struct.h b/mcu/interface/protocol/general/netinfo_common_struct.h
old mode 100644
new mode 100755
index 383a21c..52240c3
--- a/mcu/interface/protocol/general/netinfo_common_struct.h
+++ b/mcu/interface/protocol/general/netinfo_common_struct.h
@@ -45,6 +45,7 @@
 
 #define MAX_IPSTK_V4_IP_INFO_NUM            (1)
 #define MAX_IPSTK_V6_IP_INFO_NUM            (8)
+#define RES_INFO_MAX_CAUSE_NUM              (5)
 
 typedef struct {
     kal_bool                                mtu_present;
@@ -254,4 +255,37 @@
     at_s_nssai_struct s_nssai;
 } retry_info_struct;
 
+/* RES INFO Part*/
+enum {
+    RES_INFO_TYPE_PS = 0,
+    RES_INFO_TYPE_NW = 1,
+    RES_INFO_TYPE_EPDG = 2,
+    RES_INFO_TYPE_NUM,
+    RES_INFO_TYPE_MAX = 0x7fffffff,
+};
+typedef struct {
+    kal_uint8 num;
+    kal_uint16 value[RES_INFO_MAX_CAUSE_NUM];
+}res_info_ps_cause_t;
+
+typedef struct {
+    kal_uint8 num;
+    kal_uint16 value[RES_INFO_MAX_CAUSE_NUM];
+}res_info_nw_cause_t;
+
+typedef struct {
+    kal_uint8 num;
+    //kal_uint16 value;
+}res_info_epdg_cause_t;
+
+typedef struct {
+    res_info_ps_cause_t ps_cause;
+    res_info_nw_cause_t nw_cause;
+    //res_info_epdg_cause_t epdg_cause[ERR_CAUSE_NUM];
+}res_info_struct;
+
+#define res_info_get_cause(info_ptr, type, struct_type) (((info_ptr) == NULL ? NULL : \
+            ((type) == RES_INFO_TYPE_PS ? (struct_type *)&((info_ptr)->ps_cause) : \
+             ((type) == RES_INFO_TYPE_NW ? (struct_type *)&((info_ptr)->nw_cause) : \
+              NULL))))
 #endif /* __NETINFO_COMMON_STRUCT_H__ */