[Feature][T108][system][task-view-1692]Merged gsw hal code

Only Configure: No
Affected branch: GSW_V1453
Affected module: libgsw
Is it affected on IC: only ASR
Self-test: yes
Doc Update: no

Change-Id: I7fb669b6afc6e2f92a1e86ec8543498eb73120b4
diff --git a/mbtk/include/gsw/gsw_nw_interface.h b/mbtk/include/gsw/gsw_nw_interface.h
index b3e0326..2e34df5 100755
--- a/mbtk/include/gsw/gsw_nw_interface.h
+++ b/mbtk/include/gsw/gsw_nw_interface.h
@@ -441,6 +441,10 @@
     GSW_MODEM_STATE_UNKNOWN = 0, /**< modem unknow */
     GSW_MODEM_STATE_ONLINE,     /**< modem work online */
     GSW_MODEM_STATE_OFFLINE,    /**< modem offline */
+    GSW_SDK_STATE_SERVICE_DOWN,
+    GSW_SDK_STATE_SERVICE_UP,
+    GSW_SDK_STATE_GPS_DOWN,
+    GSW_SDK_STATE_GPS_UP,
 }gsw_mode_state_e;
 
 
@@ -607,6 +611,7 @@
 
 /**
  * @brief get current network reg info
+ * @details support thread safe
  * @param  [out] GSW_NW_SERVING_INFO struct for network info
  * include regstate ps_state opreator name mcc mcn etc
  * @retval 0: success
@@ -617,6 +622,7 @@
 
 /**
  * @brief get current network type
+ * @details support thread safe
  * @param  [out] netype as GSW_NW_RADIO_ACCESS_TECH_E type
  * @retval 0: success
  * @retval other: fail
@@ -670,6 +676,7 @@
 
 /**
  * @brief get signal csq value
+ * @details support thread safe
  * @param  [out] csq_value csq of signalstrengh 0 - 31
  * @retval 0: success
  * @retval other: fail
@@ -678,6 +685,7 @@
 
 /**
  * @brief get current serving cell info
+ * @details support thread safe
  * @param [out] GSW_NW_CELL_INFO: struct for current cell info
  * include earfcn mcc mnc pci psc tac lac etc.
  * @return int: 0 is success, other failed
@@ -686,6 +694,7 @@
 
 /**
  * @brief get mobile operator name
+ * @details support thread safe
  * @param [out] gsw_mobile_operator_name: get the long and short operator name info
  * @retval 0: success
  * @retval 0: other: fail
@@ -736,6 +745,7 @@
 
 /**
  * @brief get sim state
+ * @details support thread safe
  * @param  [out] sim_state sim status as sim_status_e_type
  * @retval 0: success
  * @retval other: fail
@@ -745,6 +755,7 @@
 
 /**
  * @brief get iccid function
+ * @details support thread safe
  * @param  [in] len iccid length,max is 20
  * @param  [out] iccid return iccid from this func
  * @retval 0: success
@@ -755,6 +766,7 @@
 
 /**
  * @brief get imsi function
+ * @details support thread safe
  * @param  [in] len imsi length,max is 20
  * @param  [out] iccid return imsi from this func
  * @retval 0: success
@@ -765,6 +777,7 @@
 
 /**
  * @brief get sim msisdn function
+ * @details support thread safe
  * @param  [in] len msisdn length,max is 20
  * @param  [out] msisdn msisdn length,max is 20
  * @retval 0: success
@@ -775,6 +788,7 @@
 
 /**
  * @brief get imei function
+ * @details support thread safe
  * @param  [in] len imei length,max is 20
  * @param  [out] imei return imei from this func
  * @retval 0: success
@@ -1005,6 +1019,7 @@
 
 /**
  * @brief get tcamid function
+ * @details support thread safe
  * @param  [in] len tcamid length
  * @param  [out] iccid return tcamid from this func
  * @retval 0 : success