Add Multiple AT channels supported for ril api v2

Change-Id: I53f574c85d07bd7b8e0dd15d2e596d23c8772907
diff --git a/mbtk/mbtk_rild_v2/inc/ril_info.h b/mbtk/mbtk_rild_v2/inc/ril_info.h
index c07e3f0..71e6bd7 100755
--- a/mbtk/mbtk_rild_v2/inc/ril_info.h
+++ b/mbtk/mbtk_rild_v2/inc/ril_info.h
@@ -35,6 +35,7 @@
 typedef struct
 {
     int fd;
+    ATPortType_enum port;
 
     uint32 ind_num;
     uint16 ind_register[IND_REGISTER_MAX];
@@ -52,12 +53,12 @@
     mbtk_sim_card_type_enum sim_type;
     int sock_listen_fd;
     int epoll_fd;
-    bool at_process;
+    bool at_process[ATPORTTYPE_NUM];
 
     list_node_t *sock_client_list;      // Refor to : sock_cli_info_t
-    mbtk_queue_node_t msg_queue;        // Refor to : ril_msg_queue_info_t
-    pthread_cond_t msg_cond;
-    pthread_mutex_t msg_mutex;
+    mbtk_queue_node_t msg_queue[ATPORTTYPE_NUM];        // Refor to : ril_msg_queue_info_t
+    pthread_cond_t msg_cond[ATPORTTYPE_NUM];
+    pthread_mutex_t msg_mutex[ATPORTTYPE_NUM];
 } ril_info_t;
 
 typedef struct {
@@ -119,12 +120,12 @@
 extern ril_info_t ril_info;
 
 
-mbtk_radio_state_enum ril_radio_state_get();
-mbtk_ril_err_enum ril_radio_state_set(mbtk_radio_state_enum state, bool reset);
+mbtk_radio_state_enum ril_radio_state_get(ATPortType_enum port);
+mbtk_ril_err_enum ril_radio_state_set(ATPortType_enum port, mbtk_radio_state_enum state, bool reset);
 
-mbtk_sim_state_enum ril_sim_state_get();
+mbtk_sim_state_enum ril_sim_state_get(ATPortType_enum port);
 
-void apn_auto_conf_from_prop();
+void apn_auto_conf_from_prop(ATPortType_enum port);
 
 bool is_ipv4(const char *ip);