[Feature]rgmii/lynq-low-power

Change-Id: Ifeee65004ab690ef1f9cbfa815610b4efcf02c37
diff --git a/src/lynq/lib/liblynq-sim/include/lynq_sim.h b/src/lynq/lib/liblynq-sim/include/lynq_sim.h
index 9b9593f..846a1ec 100755
--- a/src/lynq/lib/liblynq-sim/include/lynq_sim.h
+++ b/src/lynq/lib/liblynq-sim/include/lynq_sim.h
@@ -5,80 +5,51 @@
 #     Version: V1.0
 #     LastChange: 2020-07-29 
 #     History: 
-# If you need to use any API under lynq_sim, you must first call the init_sim() function to initialize these functions.
+# If you need to use any API under lynq_sim, you must first call the lynq_sim_init() function to initialize these functions.
 =============================================================================*/
 #ifndef __LYNQ_SIM__
 #define __LYNQ_SIM__
-#include <sys/types.h>
-#include <sys/socket.h>   
-#include <netinet/in.h>   
-#include <arpa/inet.h>
-#include <stdio.h>
-#include <sys/types.h>
-#include <sys/socket.h>
-#include <arpa/inet.h>
-#include <string.h>
-#include <unistd.h>
-#include <binder/Parcel.h>
-#include <log/log.h>
-#include <cutils/jstring.h>
-#include <pthread.h>
-#define MAX_BUF 20
-#define MAX_NUM 80
 #ifdef __cplusplus
-
-#define RIL_REQUEST_GET_SIM_STATUS 1
-#define RIL_REQUEST_GET_IMSI 11
-#define RIL_REQUEST_QUERY_ICCID 2026
-#define RIL_REQUEST_SET_FACILITY_LOCK 43
-#define RIL_REQUEST_QUERY_FACILITY_LOCK 42
-#define RIL_REQUEST_ENTER_SIM_PIN 2
-#define RIL_REQUEST_ENTER_SIM_PUK 3
-#define RIL_REQUEST_CHANGE_SIM_PIN 6
-#define RIL_REQUEST_OEM_HOOK_RAW 59
-
-
 extern "C" {
 #endif
 
-
-#define MAX_LEN 1024*8
-
-typedef struct{
-    int uToken;
-    int request;
-    int paramLen;
-    char param[MAX_LEN];
-}lynq_client_t;
-
-typedef struct 
-{
-    char *MCCMCN;
-    char *buf;
-    char *MCN;
-}FindOperator;
-
-
-
-
-
-
 int lynq_get_sim_status(int *card_status);
 int lynq_get_imsi(char buf[]);
-
-/*add by lei*/
 int lynq_sim_init(int utoken);
 int lynq_sim_deinit(void);
-int lynq_enable_pin(char *pin);
-int lynq_disable_pin(char *pin);
-int lynq_query_operator(char buf[]);
+int lynq_enable_pin(char pin[]);
+int lynq_disable_pin(char pin[]);
 int lynq_get_iccid(char buf[]);
 int lynq_query_pin_lock(char *pin,int buf[]);
 int lynq_verify_pin(char *pin);
 int lynq_change_pin(char *old_pin, char *new_pin);
 int lynq_unlock_pin(char *puk, char *pin);
 int lynq_query_phone_number(char buf[]);
-/*add by lei*/
+int lynq_switch_card(int slot);
+int lynq_screen(int num);
+int lynq_get_imei(char buf[]);
+
+/**
+ * @brief                   Request SIM I/O operation.
+ *                          This is similar to the TS 27.007 "restricted SIM" operation
+ *                          where it assumes all of the EF selection will be done by the callee.
+ * @param  list             type: [IN] list[0]:one of the commands listed for TS 27.007 +CRSM.(command)
+ *                          type: [IN] list[1]:EF id(fileid)
+ *                          type: [IN] list[2]:offset(p1)
+ *                          type: [IN] list[3]:offset(p2)
+ *                          type: [IN] list[4]:response len,sometimes needn't care(p3)
+ * @param  path             type: [IN] "pathid" from TS 27.007 +CRSM command.
+                            type: [IN] Path is in hex asciii format eg "7f205f70"
+                            type: [IN] Path must always be provided.
+ * @param  data             type: [IN] May be NULL
+ * @param  pin2             type: [IN] May be NULL
+ * @param  aidPtr           type: [IN] AID value, See ETSI 102.221 8.1 and 101.220 4, NULL if no value.
+ * @param  sw               type: [OUT] 
+ * @param  simResponse      type: [OUT] response
+ * @return int
+ */
+int lynq_req_sim_io(int list[5], char *path, char *data, char *pin2, char *aidPtr, int sw[2], char *simResponse);
+
 
 
 #ifdef __cplusplus