[T106][ZXW-22]7520V3SCV2.01.01.02P42U09_VEC_V0.8_AP_VEC origin source commit

Change-Id: Ic6e05d89ecd62fc34f82b23dcf306c93764aec4b
diff --git a/cp/ps/modem/com/inc/config/NandFlash.h b/cp/ps/modem/com/inc/config/NandFlash.h
new file mode 100644
index 0000000..5077333
--- /dev/null
+++ b/cp/ps/modem/com/inc/config/NandFlash.h
@@ -0,0 +1,114 @@
+/**************************************************************************

+*

+*                  Copyright (c) 2014 ZTE Corporation.

+*

+***************************************************************************

+* Ä£ ¿é Ãû : 

+* ÎÄ ¼þ Ãû : NandFlash.h

+* Ïà¹ØÎļþ : 

+* ʵÏÖ¹¦ÄÜ : 

+* ×÷    Õß : 

+* °æ    ±¾ : 

+* Íê³ÉÈÕÆÚ : 

+* ÆäËü˵Ã÷ :         

+**************************************************************************/

+

+/**************************************************************************

+* Ð޸ļǼ

+**************************************************************************/

+

+#ifndef _NAND_FLASH_H

+#define _NAND_FLASH_H

+

+/* 7520¼°ºóÐø°æ±¾¶¼Ê¹Ó÷ÖÇø±í */

+#ifdef _CHIP_ZX2804

+/**************************************************************************

+* ³£Á¿¶¨ÒåÇø

+**************************************************************************/

+#define FLASH_BASE_ADDR                             0x3C000000

+

+/*physical addr of HLS exception save area */

+#define OS_FLASH_ABSOLUTE_HLS_EXCE_BASE_ADDR        (FLASH_BASE_ADDR + 0x100000)

+#define OS_FLASH_ABSOLUTE_HLS_EXCE_SIZE             0x80000

+

+/*physical addr of plat exception save area */

+#define OS_FLASH_ABSOLUTE_PLAT_EXCE_BASE_ADDR       (FLASH_BASE_ADDR + 0x180000)

+#define OS_FLASH_ABSOLUTE_PLAT_EXCE_SIZE            0x80000

+

+/*physical addr of AMT data*/

+#define OS_FLASH_ABSOLUTE_AMT_DATA_BASE_ADDR        (FLASH_BASE_ADDR + 0x200000)

+#define OS_FLASH_ABSOLUTE_AMT_DATA_SIZE             0x80000

+

+/* DSP code */

+#define OS_FLASH_TEAK_DSP_BASE_ADDR                 (FLASH_BASE_ADDR + 0x280000)

+#define OS_FLASH_TEAK_DSP_SIZE                      0x80000

+

+#define OS_FLASH_ZSP_LTE_BASE_ADDR                  (FLASH_BASE_ADDR + 0x300000)

+#define OS_FLASH_ZSP_LTE_VERSION_LEN_ADDR           (FLASH_BASE_ADDR + 0x37FFFC)

+

+#define OS_FLASH_ZSP_TD_BASE_ADDR                   (FLASH_BASE_ADDR + 0x1700000)

+#define OS_FLASH_ZSP_TD_VERSION_LEN_ADDR            (FLASH_BASE_ADDR + 0x177FFFC)  

+

+#define OS_FLASH_ZSP_DSP_SIZE                       0x80000

+#define OS_FLASH_ZSP_DSP_VERSION_LEN_SIZE           0x4

+

+/*logo*/

+#define OS_LOGO_BASE_ADDR                           (FLASH_BASE_ADDR + 0x380000)

+#define OS_LOGO_SIZE                                0x80000

+

+/* physical address of code */

+#define OS_FLASH_CODE_BASE_ADDR                     (FLASH_BASE_ADDR + 0x400000)

+#define OS_FLASH_CODE_SIZE                          0x2000000

+

+/* physical addr of workarea nvram */

+#define OS_FLASH_ABSOLUTE_WORKAREA_NVRAM_BASE_ADDR  (FLASH_BASE_ADDR + 0x2A80000)

+#define OS_FLASH_ABSOLUTE_WORKAREA_NVRAM_SIZE       0x300000

+

+/*  physical addr of backup nvram    */

+#define OS_FLASH_ABSOLUTE_BACKUP_NVRAM_BASE_ADDR    (FLASH_BASE_ADDR + 0x2D80000)

+#define OS_FLASH_ABSOLUTE_BACKUP_NVRAM_SIZE         0x200000

+

+/*  physical addr of  work area symbol   */

+#define OS_FLASH_ABSOLUTE_WORK_AREA_SYMBOL_ADDR     (FLASH_BASE_ADDR + 0x3000000)

+

+/*  physical addr of backup area symbol */

+#define OS_FLASH_ABSOLUTE_BACKUP_AREA_SYMBOL_ADDR   (FLASH_BASE_ADDR + 0x3020000)

+

+#ifdef _USE_DATACARD

+/*for cdrom*/

+#define OS_FLASH_ABSOLUTE_USB_CDROM_BASE_ADDR       (FLASH_BASE_ADDR + 0x3100000)

+#define OS_FLASH_ABSOLUTE_USB_CDROM_SIZE            0xC00000

+

+/*for udisk*/

+#define OS_FLASH_ABSOLUTE_USB_UDISK_BASE_ADDR       (FLASH_BASE_ADDR + 0x3D00000)

+#define OS_FLASH_ABSOLUTE_USB_UDISK_SIZE            0x4000000

+

+

+/*physical addr of system FS*/

+#define OS_FLASH_ABSOLUTE_SYS_FS_BASE_ADDR          (FLASH_BASE_ADDR + 0x7E00000)

+#define OS_FLASH_ABSOLUTE_SYS_FS_SIZE               0x200000

+

+/*physical addr of user FS*/

+#define OS_FLASH_ABSOLUTE_USER_FS_BASE_ADDR         (FLASH_BASE_ADDR + 0x8000000)

+#define OS_FLASH_ABSOLUTE_USER_FS_SIZE              0x0

+#else

+/*for cdrom*/

+#define OS_FLASH_ABSOLUTE_USB_CDROM_BASE_ADDR       (FLASH_BASE_ADDR + 0x3100000)

+#define OS_FLASH_ABSOLUTE_USB_CDROM_SIZE            0x1D00000

+

+/*for udisk*/

+#define OS_FLASH_ABSOLUTE_USB_UDISK_BASE_ADDR       (FLASH_BASE_ADDR + 0x3100000)

+#define OS_FLASH_ABSOLUTE_USB_UDISK_SIZE            0x1D00000

+

+/*physical addr of system FS*/

+#define OS_FLASH_ABSOLUTE_SYS_FS_BASE_ADDR          (FLASH_BASE_ADDR + 0x5100000)

+#define OS_FLASH_ABSOLUTE_SYS_FS_SIZE               0x2800000

+

+/*physical addr of user FS*/

+#define OS_FLASH_ABSOLUTE_USER_FS_BASE_ADDR         (FLASH_BASE_ADDR + 0x7900000)

+#define OS_FLASH_ABSOLUTE_USER_FS_SIZE              0x700000

+#endif

+#endif

+

+#endif/*_NAND_FLASH_H*/

+

diff --git a/cp/ps/modem/com/inc/config/ThreadPriority.h b/cp/ps/modem/com/inc/config/ThreadPriority.h
new file mode 100644
index 0000000..b0d4302
--- /dev/null
+++ b/cp/ps/modem/com/inc/config/ThreadPriority.h
@@ -0,0 +1,213 @@
+/*******************************************************************************

+ * Copyright (C) 2007, ZTE Corporation.

+ *

+ * File Name:threadpriority.h

+ * File Mark:

+ * Description:define thread priority

+

+ * Others:

+ * Version:       v0.1

+ * Author:        yechuan

+ * Date:          2009-02-20

+ * History 1:

+ *     Date:       2009-02-20

+ *     Version:

+ *     Author:

+ *     Modification:  

+ *                    

+ * History 2:

+  ********************************************************************************/

+

+#ifndef _THREAD_PRIORITY_H

+#define _THREAD_PRIORITY_H

+/****************************************************************************

+* 	                                           Include files

+****************************************************************************/

+

+/****************************************************************************

+* 	                                           Local Macros

+****************************************************************************/

+

+

+/* Driver */

+#define THR_ZATI__RECV_FROM_SERIAL_PRI           25

+#define THR_PMIC_PRI							 16

+

+#if 0

+#define THR_USB_HISR_PRI_LOW  					 18

+#define THR_USB_HISR_PRI_MED  					 17

+#define THR_USB_HISR_PRI_HIGH 					 16

+

+#define THR_USB_OTG_PRI 						 16

+#define THR_USB_DEV_PRI 						 18

+#define THR_USB_CTRL_PRI 						 17

+

+#define THR_USB_RNDIS_PRI 						 16

+#define THR_USB_ECM_PRI 						 16

+#else

+#define THR_USB_OTG_PRI 						 9

+#define THR_USB_HISR_PRI_LOW  					 (THR_USB_OTG_PRI+2)

+#define THR_USB_HISR_PRI_MED  					 (THR_USB_OTG_PRI+1)

+#define THR_USB_HISR_PRI_HIGH 					 THR_USB_OTG_PRI

+#define THR_USB_DEV_PRI 						 (THR_USB_OTG_PRI+2)

+#define THR_USB_CTRL_PRI 						 (THR_USB_OTG_PRI+1)

+#define THR_USB_RNDIS_PRI 						 THR_USB_OTG_PRI

+#define THR_USB_ECM_PRI 						 THR_USB_OTG_PRI

+#endif

+#define THR_USB_CDC_RD_PRI						 21//28

+#define THR_USB_CDC_WR_PRI 						 21//23

+

+#define THR_USB_MS_PRI                           12//19//28

+#define THR_USB_MS_PRI_PRE                  			(THR_USB_CTRL_PRI-1) //28

+#define THR_USB_MS_LU_PRI                        20

+

+#define THR_MUX_RX                         		 18

+#define THR_MUX_TX                           	 15

+#if 0

+#define THR_USB_IFAC_PRI						 16

+

+#define THR_USB_DEFAULT_PRIORITY_HIGH 			 16

+#define THR_USB_DEFAULT_PRIORITY_MEDIUM 		 22

+#define THR_USB_DEFAULT_PRIORITY_LOW 			 30

+

+#define THR_USB_CDC_DATA_SND_PRI				 25

+#define THR_USB_CDC_DATA_OBS_PRI				 28

+#define THR_USB_CDC_COMM_OBS_PRI				 28

+#endif

+

+#define THR_CHG_ISR_PRI                          22

+#define THR_CHG_CHECK_PRI                        29

+

+#define THR_SD_PRI                               29

+

+#define THR_RPMSG_HISR_PRI					  3

+

+/* KeyMine */

+#define THR_COMMREAD_PRI       					 15

+#define THR_COMMWRITE_PRI      				     21

+#define THR_EXCEPDAEMON_PRI						 15

+#define THR_TIMER_PRI        	  				  8

+

+#define THR_TRACE_PRI							 28	

+#define THR_FSAGENT_PRI							 20

+#define THR_SHELL_PRI 							 19					

+#define THR_SYSM_PRI							 18

+#define THR_ZDRV_TIMERISR_PRI					 14

+#define THR_ZDRV_ALARMISR_PRI					 13

+                                                

+#define THR_ZDRV_KPDISR_PRI			 			 20

+#define THR_ZDRV_KPDSCAN_PRI				     10

+                                                

+#define THR_ZSVR_PRI             				 20

+#define THR_ZTAPI_PRI						 	 20

+#define THR_ZSVR_ECOM_PRI                        20

+#define THR_ZSVR_FM_PRI                          20

+#define THR_ZSVR_EM_PRI                          20

+#define THR_ZSVR_SS_PRI                          20

+#define THR_ZSVR_STK_PRI                         20

+#define THR_ZSVR_PDP_PRI                         20

+#define THR_ZSVR_CC_PRI                          20

+#define THR_ZSVR_CR_PRI                          20

+#define THR_ZSVR_PB_PRI                          20

+#define THR_ZSVR_SMS_PRI                         20

+#define THR_ZSVR_MM_PRI                          20

+#define THR_ZSVR_SET_PRI                         20

+#define THR_ZSVR_DM_PRI                          20

+#define THR_ZSVR_DB_PRI                          20

+

+#define ZSVR_ECOM_TIME_1_PRI      			      9

+#define ZSVR_ECOM_TIME_0_PRI      			      9

+

+#define THR_SIORXTIMER0_PRI 				      9

+#define THR_DDDRAM_HISR_PRI						  3

+

+#define THR1_PRI				                 10

+#define THR2_PRI				                 11

+#define THR3_PRI				                 12

+#define THR4_PRI				                 13

+#define THR5_PRI				                 14

+#define THR6_PRI				                 15

+#define THR7_PRI				                 16

+#define THR8_PRI				                 17

+#define THR_TCPIP_PRI							 10

+#define THR_LWIPTIMER_PRI                      9

+

+                                                

+/* GUI  */                                      

+#define THR_AMS_PRI								 20

+#define THR_AMS_1_PRI  							 22

+#define THR_AMS_2_PRI  						     24

+#define THR_AMS_3_PRI  							 26

+#define THR_AMS_4_PRI  							 28

+

+#define THR_MMF_PRI								  0

+                                                

+#define THR_PTHREAD1_PRI						 26

+#define THR_PTHREAD2_PRI						 20

+

+#define THR_UART2_PRI							 18

+#define THR_UART1_PRI							 18

+#define THR_UART0_PRI							 18

+

+/* MMI */

+#define THR_ZMMMI_MAIN_PRI						 20

+

+/*SDL Thread */

+#define SDL_YPAD_DLL_INST_PRI					 11

+#define SDL_YPAD_MAC_PRI						 11

+#define SDL_YPAD_RLC_PRI						 11

+#define SDL_YPAD_RRC_PRI						 12

+#define SDL_YPAD_GRR_PRI						 12

+#define SDL_YPAD_SNP_PRI						 13

+#define SDL_YPAD_L1G_PRI                         10

+#define SDL_AUDIO_PRI                         	 15

+

+

+/* HISR */

+#define HISR_L1G_PCL_MAIN_PRI				  	  2

+#define HISR_MIDI_PRI							 10

+#define HISR_TONE_PRI							 10

+#define HISR_VM_PRI							     10

+

+

+/*Device Int Thread Priority*/

+#define INT_TIMER_PRI    						  3

+#define INT_UART1_PRI    						 20

+#define INT_UART2_PRI    						 20

+#define INT_UART3_PRI    						 20

+#define INT_DPRAM_PRI	 						 20

+#define INT_KPD_PRI		 						 20

+#define INT_RTC_PRI		 						 20/*RTC on DBB*/

+#define INT_DMA_PRI		 						 20

+#define INT_UICC_PRI     						 20

+#define INT_I2S1_PRI     						 20

+#define INT_I2S2_PRI     						 20

+#define INT_LCD_PRI      						 10

+#define INT_USB_PRI 							 10

+#define INT_USB_DMA_PRI 						 10

+#define INT_PMIC_PRI     						 10

+#define INT_I2C_PRI      						 20

+#define INT_FM_PRI       						 10

+#define INT_CAM_PRI      						 10

+#define INT_SD_PRI       						 10

+#define INT_VIDEO_VPU_PRI    					 18

+#define INT_VIDEO_PPU_PRI    					 18

+

+

+/* Teak  INT Pri */

+#define INT_TU_GP0_PRI							  0

+#define INT_TU_T_INT1_PRI						  0

+#define INT_TU_T_INT2_PRI						  0

+#define INT_GSM_DSP_INT0_PRI					  0

+#define INT_GSM_DSP_INT1_PRI					  0

+#define INT_GSM_DSP_INT2_PRI					 15/*Voicememo*/

+#define INT_GSM_DSP_INT3_PRI					 15/*TONE*/

+#define INT_GSM_DSP_INT4_PRI					 15/*MIDI*/

+#define INT_GSM_DSP_INT5_PRI					 15/*PCM player*/

+#define INT_GSM_DSP_INT6_PRI					 15/*SBC Blue Tooth*/

+#define INT_GSM_DSP_INT7_PRI   					 10

+

+

+

+#endif/*_Thread_PRIority_H*/

+

diff --git a/cp/ps/modem/com/inc/config/atcfg/sys_func_atcfg.h b/cp/ps/modem/com/inc/config/atcfg/sys_func_atcfg.h
new file mode 100644
index 0000000..f27074a
--- /dev/null
+++ b/cp/ps/modem/com/inc/config/atcfg/sys_func_atcfg.h
@@ -0,0 +1,1869 @@
+/*******************************************************************************

+ * Copyright (C) 2007, ZTE Corporation.

+ *

+ * File Name:    sys_func_at_cfg.h

+ * File Mark:    

+ * Description:  at version config

+ * Others:        

+ * Version:       V0.5

+ * Author:        xuxingkui

+ * Date:          2011-8-4

+ * History 1:      

+ *     Date: 

+ *     Version:

+ *     Author: 

+ *     Modification:  

+ * History 2: 

+  ********************************************************************************/

+  

+/*==================================================================

+*ºê¶¨Òå

+*=====================================================================*/

+/* 1 TDÎïÀí²ã¹Ì»¯°æ±¾¿ØÖÆ */

+#ifndef SYSCONFIG_FNC_ATCFG_H

+#define SYSCONFIG_FNC_ATCFG_H

+#define USE_JTAGSERVER_ENABLE        1

+#define USE_JTAGSERVER_DISABLE       0

+

+/* 2 PAÊä³öLOGͨµÀ */

+#define USE_PA_FROM_ARM_ENABLE     1

+#define USE_PA_FROM_ARM_DISABLE     0

+

+/* 3 Òì³£ÖØÆô¿ØÖÆ */

+#define EXCEPT_RESET_ENABLE  1

+#define EXCEPT_RESET_DISABLE  0

+

+/* 4 RAMDUMP ÏÔʾµ½LCD¿ØÖÆ */

+#define USE_RAMDUMP_DISPLAY_ENABLE  1

+#define USE_RAMDUMP_DISPLAY_DISABLE  0

+

+/*  5 ARMÊä³öLOGͨµÀ¿ØÖÆ*/

+#define USE_ARM_LOG_CHANNEL_USB    1

+#define USE_ARM_LOG_CHANNEL_UART  0

+

+/* 6 ÈëÍø²âÊÔ¿ØÖÆ */

+#define USE_MTNET_TEST_ENABLE   1

+#define USE_MTNET_TEST_DISABLE  0

+

+/*7 ×î´ó·¢É书ÂÊ*/

+

+

+

+/*8 ɽ¶«Ê¡µç*/

+#define USE_SHANDONG_FIELD_ENABLE   1

+#define USE_SHANDONG_FIELD_DISABLE  0

+

+/*9 ÁÉÄþÊ¡µç*/

+#define USE_SIB4_BAR_ENABLE   1

+#define USE_SIB4_BAR_DISABLE  0

+

+/*10 PA LOG output filter*/

+#define USE_ZSP_LOG_FILTER   0   /* ¸ÃÖµ²»È·¶¨ */

+

+

+/*11 ÖÐÒÆÈë¿â*/

+#define USE_CMCC_TEST_ENABLE   1

+#define USE_CMCC_TEST_DISABLE  0

+

+

+/*12 °æ±¾ÖÆÊ½¿ØÖÆ*/

+#define USE_RAT_VERSION_TD_ONLY   0

+#define USE_RAT_VERSION_GSM_ONLY   1

+#define USE_RAT_VERSION_TD_PRI   2

+#define USE_RAT_VERSION_GSM_PRI   3

+#define USE_RAT_VERSION_FROM_MMI   4

+

+/*13 ÓïÒôÖ§³Ö£¨Êý¾Ý¿¨°æ±¾Îª0£©*/

+#define USE_VERSION_VOICE_SUPPORT   1

+#define USE_VERSION_VOICE_NOT_SUPPORT  0

+

+/*14 TDÖÆÊ½¸ü¸ÄΪGSM£¬PDP¼¤»î¿ØÖÆ»ñÐÅÏ¢ */

+#define USE_T2G_DEACTIVE_PDP_ENABLE  1

+#define USE_T2G_DEACTIVE_PDP_DISABLE  0

+

+/*15 UEÉϱ¨µÄЭÒé°æ±¾ÐÅÏ¢ */

+#define USE_UE_PS_VERSION_R4  0

+#define USE_UE_PS_VERSION_R5  1

+#define USE_UE_PS_VERSION_R6  2

+#define USE_UE_PS_VERSION_R7  3

+#define USE_UE_PS_VERSION_R8  4

+#define USE_UE_PS_VERSION_R9  5

+

+/*15_1 WµÄ°æ±¾ÐÅÏ¢*/

+#define USE_UE_PS_FDD_RELEASE_R3  1

+#define USE_UE_PS_FDD_RELEASE_R4  2

+#define USE_UE_PS_FDD_RELEASE_R5  3

+#define USE_UE_PS_FDD_RELEASE_R6  4

+#define USE_UE_PS_FDD_RELEASE_R7  5

+#define USE_UE_PS_FDD_RELEASE_R8  6

+#define USE_UE_PS_FDD_RELEASE_R9  7

+#define USE_UE_PS_FDD_RELEASE_LATTER  8

+

+/*16 µ÷Ƶ¿ØÖÆ */

+#define USE_CHANGE_FREQ_DEFAULT  0

+#define USE_FREQ_156M  1

+#define USE_FREQ_240M  2

+#define USE_FREQ_312M  3

+

+/*17 µ÷ѹ¿ØÖÆ */

+#define USE_CHANGE_VOLTAGE_1150V_DEFAULT 0

+#define USE_CHANGE_VOLTAGE_1210V  1/*²»µ÷ѹ£¬ÏµÍ³±ê×¼µçѹ*/

+#define USE_CHANGE_VOLTAGE_1175V  2

+#define USE_CHANGE_VOLTAGE_1150V  3

+#define USE_CHANGE_VOLTAGE_1125V  4

+#define USE_CHANGE_VOLTAGE_1100V  5

+

+/*18 EDGEÖ§³Ö */

+#define USE_EDGE_SUPPORT_ENABLE   1

+#define USE_EDGE_SUPPORT_DISABLE  0

+

+/*19 ATͨµÀ¿ØÖÆ */

+#define USE_AT_CHANNEL_USB   1

+#define USE_AT_CHANNEL_UART  0

+

+/*20 GPRS¶àʱ϶֧³Ö */

+#define USE_GPRS_MULTISLOT_ENABLE   1

+#define USE_GPRS_MULTISLOT_DISABLE  0

+

+/*21 EDGE¶àʱ϶֧³Ö */

+#define USE_EDGE_MULTISLOT_ENABLE   1

+#define USE_EDGE_MULTISLOT_DISABLE  0

+

+/* 21 2.4GƵ¶ÎÖ§³Ö */

+#define USE_24FREQ_BAND_SUPPORT      1

+#define USE_24FREQ_BAND_NOT_SUPPORT  0

+

+/* 22 ×Û²âÖ§³Ö */

+#define USE_INTEGRATE_TEST_SUPPORT      1

+#define USE_INTEGRATE_TEST_NOT_SUPPORT  0

+

+/* 23 3AÃÅÏÞÓÐЧλÅжϱê־λ */

+#define USE_3ATHRED_VALID     1

+#define USE_3ATHRED_INVALID   0

+

+/* ºöÂÔÍêÕûÐÔ±£»¤±ê־λ */

+#define USE_IGNORE_SECURITY_SUPPORT     1

+#define USE_IGNORE_SECURITY_NOT_SUPPORT 0

+

+/* ÄÚ´æÐ¹Â¶¼ì²é±ê־λ*/

+#define USE_MEM_LEAK_CHECK_SUPPORT     1

+#define USE_MEM_LEAK_CHECK_NOT_SUPPORT 0

+

+#define USE_UE_SMARTPHONE     1

+#define USE_UE_FEATUREPHONE 0

+

+/* QOS RELEASE */

+#define USE_QOS_VERSION_R4  0

+#define USE_QOS_VERSION_R5  1

+#define USE_QOS_VERSION_R6  2

+#define USE_QOS_VERSION_R7  3

+#define USE_QOS_VERSION_R8  4

+#define USE_QOS_VERSION_R9  5

+

+/* LTE RELEASE */

+#define USE_PS_LTE_RELEASE_R8  0

+#define USE_PS_LTE_RELEASE_R9  1

+#define USE_PS_LTE_RELEASE_R10  2

+

+/* CMCC FLAG */

+#define USE_CMCC_INVALID  0

+#define USE_CMCC_VALID  1

+

+/* µ¥Ë«´ýÇл»µÄÅäÖõÄATÃüÁîÓëÅäÖÃÐÅÏ¢»ñÈ¡½Ó¿Ú*/

+#define USE_CFG_SNGLCRD_SNGLSTDBY  0

+#define USE_CFG_SNGLCRD_DUALSTDBY  1

+#define USE_CFG_DUALCRD_DUALSTDBY  2

+

+/*ÐÂÔöATÃüÁî×î´óÊýÄ¿*/

+#define ATCMD_DYN_MAX_CNT  4

+

+/*4G ATTACH¹ý³Ì¼¤»îCIDµÄ×î´óÖµ*/

+#ifdef _USE_LTE_GCF

+#define USE_LTE_ATTACH_MAX_CID    (BYTE)8

+#else

+#define USE_LTE_ATTACH_MAX_CID    (BYTE)4

+#endif

+

+#ifdef _USE_PSM_TEST

+/*NVÖÐpsmflag´æ·ÅµØÖ·*/

+#define IRAM_PSMFLAG_BASE                (AT_COMM_PSM_FLAG_ADDR)

+#endif

+/*NVÖÐPHYEXIST´æ·ÅµØÖ·*/

+

+#ifdef _OS_WIN

+#define IRAM_PHYEXIST_BASE              (0x001020F0)

+#elif defined (_CHIP_ZX2804)

+#define IRAM_PHYEXIST_BASE              IRAM_BASE_ADDR_TMP

+#else

+#define IRAM_PHYEXIST_BASE              (PHY_EXIST_INFO_ADDR)

+#endif

+#define VOLTE_IMS_APN_MAX_LEN 99

+#define VOLTE_CONF_URI_MAX_LEN 281

+/*==================================================================

+*½á¹¹Ì嶨Òå

+*=====================================================================*/

+#ifdef _USE_PSM_TEST

+ typedef enum

+{

+    PSM_FLAG_R7_NOSLEEP=0,

+    PSM_FLAG_R7_RF_NOSLEEP=1,

+    PSM_FLAG_R7_GSM_NOSLEEP=2,

+    PSM_FLAG_R7_NODVS=3,

+    PSM_FLAG_R7_AXI_NODFS=4,  

+    PSM_FLAG_R7_DDR_NODFS=5,     

+    PSM_FLAG_R7_CORE_NODFS=6,

+    PSM_FLAG_R7_PLAT_PSM_LOG=7,    

+    PSM_FLAG_R7_PLAT_DFM_LOG=8,  

+    

+       PSM_FLAG_A9_NOSLEEP=16,

+    PSM_FLAG_A9_IDLE_WFI=17,       

+    PSM_FLAG_A9_NO_SUSPEND=18,    

+    PSM_FLAG_A9_SUSPEND_WFI=19,    

+    PSM_FLAG_A9_CORE_NODFS=20,    

+    PSM_FLAG_A9_AXI_DDR_NODFS=21,   

+    PSM_FLAG_A9_PLAT_PSM_LOG=22,       

+    PSM_FLAG_A9_PLAT_DFM_LOG=23, 

+

+    PSM_FLAG_MAX

+    

+}CommPsmFlag;

+

+typedef enum

+{

+    R7_PLAT_NO_SLEEP =0,

+    R7_DRV_NO_SLEEP =1,

+    R7_GSM_NO_SLEEP =2,

+    VDCORE_NO_DVS =3,

+    AXI_NO_DFS =4,

+    R7CORE_NO_DFS =5,

+    DDR_NO_DFS =6,

+    R7_RF_NO_SLEEP =7,

+    TYPE_MAX

+}CommLowPowerType;

+#endif

+

+typedef struct  

+{

+    /*NVÍ·²¿*/

+    CHAR    magic[8];  /*ħÊõ×Ö*/

+    UINT16    wVersion; /*°æ±¾ºÅ£¬µ±Ç°Èí¼þÔÝδʹÓÃ*/

+    UINT16    wLen;      /*ÐèÒª¿½±´µÄÓÐЧÊý¾ÝµÄ³¤¶È,±¾°æ±¾È¡ÖµÎª780*/

+

+    UINT8 jtagserver;/* 1:TDÎïÀí²ãµ÷ÊÔ°æ±¾ 0:TDÎïÀí²ã¹Ì»¯°æ±¾£¬ÆäËûÖµÎÞЧ £¬Ä¬ÈÏֵΪ0*/

+    UINT8 exceptReset;/* 2:µ¼³öramdumpºóÔÙÖØÆô1:´ò¿ªÒì³£ÖØÆô 0:¹Ø±ÕÒì³£ÖØÆô£¬Ä¬ÈÏֵΪ0 */

+    UINT8 ramdumpDisplay;/* 1:ramlogÊä³öµ½LCD£» 0 £º²»Êä³öµ½LCD£¬Ä¬ÈÏֵΪ1*/

+    UINT8 psmLogEnable; /* 0:close psm LOG£» 1:open psm LOG£¬Ä¬ÈÏֵΪ0*/

+    UINT8 liaoningVersionSib4;/* 1:´ò¿ªÖ§³ÖÁÉÄþ¶¨Öư汾£» 0 £º¹Ø±ÕÁÉÄþ¶¨Öư汾£¬Ä¬ÈÏֵΪ0*/

+    UINT8 cmccTestFlag;/* 1:´ò¿ªÖÐÒÆÈë¿â¹¦ÄÜ£»0¹Ø±ÕÖÐÒÆÈë¿â¹¦ÄÜ£¬Ä¬ÈÏֵΪ0*/

+    UINT8 ratVersion;/* 0:TD only£»1:gsm only£¬2:TdÓÅÏÈ£» 3£ºGSMÓÅÏÈ £¬4£¬ºöÂÔ*/

+    UINT8 paLogChannel;/* 1:USB 0:UART ÆäËûÖµÎÞЧ £¬Ä¬ÈÏֵΪ1*/

+    

+    UINT32 zspLogFilter[2];/*ZSP logÊä³öÁ¿¿ØÖƺê */

+    UINT16 zspDebugInfo[128];

+    UINT16 zspDebugInfoW[128];/*WÎïÀí²ãZSP logÊä³öÁ¿¿ØÖƺê */

+    

+    UINT8  tebsThreshold;/*tebsÃÅÏÞÖµ */

+    UINT8 voiceSupportFlag;/* ÓïÒôÖ§³Öºê */  

+    UINT8 b2gPdpFlagPadding;   /* ¸ÃºþÄ϶¨Öƺ겻Ó㬽«t2gPdpFlag¸ÄΪÌî³äλ*/

+    UINT8 uePsReleaseInfo;   /* UEÉϱ¨°æ±¾ÐÅÏ¢ */  

+    UINT8 autoStartTestFlag;  /* ÈëÍøÈë¿â×Ô¶¯»¯²âÊÔʹÄÜ¿ØÖÆ*/     

+    UINT8 signalCount;   /* ÊÖ»úÖ§³ÖµÄÐźŸñÊý£¬ÓÐ5,6,7ÈýÖÖ */  

+    UINT8 armFreq;   /* ĬÈϵ÷Ƶ£¬0£¬ÆäËûÊǶ¨Æµ°æ±¾ */      

+    UINT8 voltageChange;  /* µ÷ѹ¿ØÖÆ£¬0£¬²»µ÷ѹ,ÆäËû¸ù¾Ý˵Ã÷ÃèÊö */     

+

+    UINT8 edgeSupport;/* edgeÊÇ·ñÖ§³Ö¿ØÖÆ */

+    UINT8 atChannel;/* ATÃüÁîͨµÀ¿ØÖÆ */

+    UINT8 gprsMultiSlotEnable;/* GPRS¶àʱ϶֧³Ö¿ØÖÆ */

+    UINT8 edgeMultiSlotEnable;/* EDGE¶àʱ϶֧³Ö¿ØÖÆ */

+

+    UINT32 exceptResetCount;/* ÖØÆô´ÎÊýͳ¼Æ */

+    UINT32 pinCode; /* PINÂ룬³õÖµÊÇ1234 £¨Òì³£ÖØÆôÄ£¿éʹÓøÃÖµ£©*/

+    

+    UINT32 ignroeSecuFlag;/* ÍêÕûÐÔ±£»¤±ê־λ */

+    UINT32 lteInfo;/* LTE¶¨ÖÆÐÅÏ¢ */

+    

+    UINT8 freqBand24Support;/* 2.4GƵ¶ÎÖ§³Ö¿ØÖÆ */

+    UINT8 gsm3AThred;/* gsm 3A ÃÅÏÞ */

+    UINT8 td3AThred;/* td 3A ÃÅÏÞ */

+    UINT8 validFlag3AThred;/* 3A ÓÐЧ±ê־λ */

+

+    UINT8 tdThredOff;/* TDÅоöÆ«ÒÆ */

+    UINT8 memLeakCheckFlag;/* ÄÚ´æÐ¹Â¶¼ì²é±ê־λ */

+    UINT8 usTypeFlag;  

+    UINT8 qosRelease;/* QOS RELEASE */

+

+    UINT8 lteRelease; /* lte RELEASE */  

+    UINT8 FddRelease;   /*WCDMA°æ±¾ÐÅÏ¢*/

+    UINT8 cmccFlag;

+    UINT8 standbyMode;/* µ¥Ë«´ýÇл»µÄÅäÖõÄATÃüÁîÓëÅäÖÃÐÅÏ¢ */

+

+    UINT8 TdDrxExpansion;/* TD ѰºôÖÜÆÚÀ©´ó±¶Êý¡£È¡Öµ0±íʾ²»À©´ó¡£È¡Öµ1 ±íʾ 2.56 SÒÔÏ£¨²»º¬2.56S£©µÄѰºôÖÜÆÚÀ©´óÒ»±¶¡£ */

+    UINT8 manual_search;/* ÉèÖÿª»úÊÖ¶¯ËÑÍøÄ£Ê½ */

+    UINT8 gsmDrxExpansion;/* GSM ѰºôÖÜÆÚÀ©´ó±¶Êý¡£È¡Öµ0±íʾ²»À©´ó¡£È¡Öµ1 ±íʾÀ©´ó */

+    /* 1:USB 0:UART ÆäËûÖµÎÞЧ £¬Ä¬ÈÏֵΪ1*/

+    UINT8 paLogChannelW;

+    

+    UINT32 equipmentTestSupport;

+    UINT32 zspLogFilterW[2];/*WµÄZSP logÊä³öÁ¿¿ØÖƺê */

+    UINT32 CommAtCmdDyn[ATCMD_DYN_MAX_CNT];

+    UINT32 psmFuncFlag[4];

+    UINT32 UsatTermProf[8];  /*UICC¸ÅÒªÐÅÏ¢ÅäÖÿª¹Ø*/

+    UINT16 L1wRfcDebug[10];   /*³õʼֵΪ0*/

+    UINT16 LteLimitedBsrStart;/*StartÏÞËÙºóµÄBSRÏÞÖÆ³õʼֵ£»·¶Î§ÊÇ1~64£¬³ö³§ÖµÊÇ20*/

+    UINT16 LteLimitedBsrMin;/*ÏÞËÙºóµÄBSRÏÞÖÆ×îСֵ£»·¶Î§ÊÇ1~64£¬³ö³§ÖµÊÇ1£»ÐèÂú×ãLimitBSR_min СÓÚµÈÓÚLimitBSR_start£»*/

+    UINT16 LteLimitedBsrStep;/*ÿ´Î¼õÉÙ¡¢Ôö¼ÓµÄBSR£»·¶Î§ÊÇ1~64£¬³ö³§ÖµÊÇ2£»*/

+    UINT16 LimitedBsrTimerLen;/*½ÏÉÙ¡¢Ôö¼ÓBSRµÄ¶¨Ê±Æ÷ʱ³¤£¬µ¥Î»ÊÇÃ룻·¶Î§ÊÇ1~3000£¬³ö³§ÖµÊÇ10£»*/

+

+    UINT8 WtebsThred;  /*WµÄTEBSÃÅÏÞ,³õʼֵ31*/

+    UINT8 LteBsrThred;  /*LTE µÄBSRÃÅÏÞ,³õʼֵ64*/

+    UINT8 bWTestPadding;/*WIntrumentTestFlg²»Ê¹ÓÃÁË£¬¸Ä³ÉÌî³äλ*/

+    UINT8 LockSimCardFlg;/*»ú¿¨»¥Ëø±êÖ¾,³õʼֵΪ0*/

+

+    UINT8 bPaddingFlg;    /*2017.3²»ÔÙʹÓøúڰ×Ãûµ¥ËøÍø±êÖ¾,ÐÞ¸ÄΪpaddingλ */

+    UINT8 IsimSupportFlg;    /*µ±Ç°ÊÇ·ñÖ§³ÖISIM,³õʼֵΪ0*/

+    UINT8 ActPriorityFlg;  /*¿ª»ú»ò³ö·ÉÐÐģʽËÑÍøÖÆÊ½ÓÅÏȼ¶,³õʼֵΪ0*/

+    UINT8 UsatFlag;           /*ÊÇ·ñ¿ªÆôUSAT¹¦ÄÜ,0:¹Ø±Õ1:¿ªÆô,³õʼֵ1*/

+

+    UINT8 IsUseImsiFlag;      /*ÊÇ·ñÔÚPS attachºÍCSÓò×¢²áʱֱ½ÓʹÓÃIMSI,0:²»Ê¹ÓÃ1:ʹÓÃ,³õʼֵ0*/

+    UINT8 PppEchoFlag;/*ÊÇ·ñÖ§³Ö·¢ËÍPpp Echo Request,0 :²»Ö§³Ö·¢ËÍ1:Ö§³Ö·¢ËÍ,³õʼֵ1*/

+    UINT8 PbType;/*µç»°±¾ÀàÐÍ,0 :ÆÕͨµç»°±¾1:¼ò»¯µç»°±¾,³õʼֵ0*/

+    UINT8 GsmOtaTestFlag;/*ÊÇ·ñ´ò¿ªGSM_OTA_TEST,0 ¹Ø±Õ1´ò¿ª,³õʼֵ0*/

+

+    UINT8 bCsiFilterPadding;/* Â˲¨¿ª¹ØCsiFilterFlg¸Ä³ÉÓÃmtnettest¿ª¹Ø¿ØÖÆ£¬¸ÄΪÌî³äλ*/

+    UINT8 CsiupFlg;/* 1:ÏòÉÏÈ¡Õû£»elseÏòÏÂÈ¡Õû ,³õʼֵ0*/

+

+    UINT8 CsrhobandFlg;/* 1:Åжϴø¿í£»else²»Åжϴø¿í ,³õʼֵ0*/

+    UINT8 CfoFilterFlg;/* 1:cfo Â˲¨Òò×ÓΪ0.2(¸ßÌúÐŵÀ)£¬else: 0.05 ,³õʼֵ0*/

+

+    UINT8 UlparafixtamodeFlg;/* 1:°²ÀûÒDZífixta ·½Ê½£¬else °²½ÝÂ×ÒDZífixta·½Ê½ ,³õʼֵ0*/

+    UINT8 b711StubFlg;/* 1:711 ¸ß¼¶×®¿ª£¬else: 711 ¸ß¼¶×®¹Ø ,³õʼֵ0*/

+    UINT8 CsrPssBinFlg;/* 1:PssʹÓÃ3·bin£»else: PssʹÓÃ1·bin,³õʼֵ0*/

+    UINT8 CsiIotFlg;/* 1:´ò¿ªCSI IOT²¹¶¡£»0:¹Ø±ÕCSI IOT²¹¶¡,³õʼֵ0*/

+

+    UINT8 PppPcoAuthFlag;/*Óû§ÃûºÍÃÜÂë¶¼²»´æÔÚʱÊÇ·ñ½øÐÐAPN¼øÈ¨£¬Ä¬ÈÏÖµ0*/

+

+    UINT8 LteSValueOffset[2];/*Lte·þÎñÐ¡ÇøºÍÁÚÇøSÖµÆ«ÒÆ£¬Êý×éϱê0ÊÇ·þÎñÐ¡Çø£¬Êý×éϱê1ÊÇÁÚÐ¡Çø£¬È¡Öµ0-30£¬Ä¬ÈÏÖµ0*/

+    UINT8 WSValueOffset[2];/*W·þÎñÐ¡ÇøºÍÁÚÇøSÖµÆ«ÒÆ£¬Êý×éϱê0ÊÇ·þÎñÐ¡Çø£¬Êý×éϱê1ÊÇÁÚÐ¡Çø£¬È¡Öµ0-30£¬Ä¬ÈÏÖµ0*/

+    UINT8 TDSValueOffset[2];/*TD·þÎñÐ¡ÇøºÍÁÚÇøSÖµÆ«ÒÆ£¬Êý×éϱê0ÊÇ·þÎñÐ¡Çø£¬Êý×éϱê1ÊÇÁÚÐ¡Çø£¬È¡Öµ0-30£¬Ä¬ÈÏÖµ0*/

+    UINT8 GsmSValueOffset;/*GSM·þÎñÐ¡ÇøSÖµÆ«ÒÆ£¬È¡Öµ0-30£¬Ä¬ÈÏÖµ0*/

+

+    UINT8 Umm15CauseFlag;/*δ¿ªÍ¨4GÒµÎñµÄUSIMÊÇ·ñÌØÊâ´¦ÀíÈç#15¡¢#17ÊÇ·ñÌØÊâ´¦Àí,0²»ÌØÊâ´¦Àí£¬1ÐèÒªÌØÊâ´¦Àí£¬Ä¬ÈÏÖµ0*/

+    UINT8 PollFlag;/*ÊÇ·ñ½øÐÐÂÖѯ²Ù×÷£¬0£º²»ÂÖѯ£¬1£ºÒªÂÖѯ£¬Ä¬ÈÏÖµ1*/

+    UINT8 abPadding[2];/*Õâ¸öÌî³äλ²»ÔÊÐíÐÞ¸Ä*/

+    UINT32 PppAccm;/*ACCM×Ö·û¼¯£¬Ä¬ÈÏÖµ0*/

+    UINT8 ExceptProc;/*²Ù×÷¿¨Ê±,Çý¶¯·µ»Ø´íÎóÊÇ·ñÒª¹æ±Ü´¦Àí£¬0 :²»¹æ±Ü1:¹æ±Ü,³õʼֵ0*/

+    UINT8 IntrThreadTraceFlag;/*ÖжϺÍÏ̹߳켣¿ª¹Ø±ê־λ0:¹Ø1:¿ª£¬Ä¬ÈÏÖµ0*/

+    UINT8 VsimSupport;/*ÊÇ·ñÖ§³ÖÐéÄ⿨£¬0£º²»Ö§³Ö£¬1£ºÖ§³Ö£¬Ä¬ÈÏÖµ0*/

+    UINT8 AirAuthFlag;/*ÊÇ·ñÊÇÍøÂç·þÎñÆ÷¼øÈ¨£¬0£ºÒ»°ã±¾µØ¼øÈ¨£¬1£ºÍøÂç·þÎñÆ÷¼øÈ¨£¬Ä¬ÈÏÖµ0*/

+

+    /*¿ØÖÆÊý¾ÝÃæµÄ¸÷Ïî˽Óй¦ÄÜ¿ª¹Ø¡£bitmap,bitλΪ1±íʾ¸Ãλ¶ÔÓ¦µÄ¹¦ÄÜ´ò¿ª£¬

+       Ϊ0±íʾ¹Ø±Õ£¬0x00000001±íʾpsbufferÕ»¹ì¼£¸ú×Ù¹¦ÄÜ(7520¼°ºóÐøÐ¾Æ¬Ö§³Ö)£¬

+       0x00000002±íʾÊý¾ÝÃædump¹¦ÄÜ£¬ÆäËûÖµ±£Áô,ĬÈÏÖµ0*/

+    UINT32 El2StartEgy;

+    UINT8 RemoteSimSupport;/*Ô¶³ÌVSIM¿ª¹Ø£¬µ±´ò¿ªÊ±£¬µ÷ÓôúÀíSIM¿¨½Ó¿Ú£»0£º¹Ø±Õ£¬1£º´ò¿ª£¬Ä¬ÈÏÖµ0*/

+    UINT8 IgnorePppAuth;/*ÊÇ·ñºöÂÔPPP¼øÈ¨£¬0:²»ºöÂÔPPP¼øÈ¨£¬1:ºöÂÔPPP¼øÈ¨, ĬÈÏֵΪ0*/

+    UINT16 UssdTimerLen; /*USSD¼à¿Ø¶¨Ê±Æ÷ʱ³¤,µ¥Î»ÊÇÃë,ĬÈÏÖµ200Ã룬Ŀǰ·¶Î§°´ÕÕ60~3600*/

+    UINT8 PsPageOrPlmnlistPrio;/*ÔÚPLMNÁбí¹ý³ÌÖÐÊÇPSѰºôÓÅÏÈ£¬»¹ÊÇÁбíÓÅÏÈ£¬0:ѰºôÓÅÏÈ£¬1:ÁбíÓÅÏÈ£¬Ä¬ÈÏÖµ0 */

+    UINT8 GsmPsTbfRecvCsPage;/*2G PSÁ¬½Ó(TBF)̬ÏÂÊÇ·ñ½ÓÊÕCSѰºô£¬0:TBF̬½ÓÊÕCSѰºô£¬1:TBF̬²»½ÓÊÕCSѰºô£¬Ä¬ÈÏÖµ0 */

+    UINT8 bPrioPadding[2];/*²»ÔÊÐíÐÞ¸Ä*/

+    /* PCOÇëÇóÖÐЯ´øµÄÐÅÔªÏîÉèÖã¬Ä¬ÈÏÊÇ0X1E07£¬²Î¼û24008 10.5.6.3;¶ÔÓ¦¹ØÏµ£¬Ã¿¸öBIT¶ÔÓ¦Ò»¸öÐÅÔªÏî(ID)(0±íʾ²»Ö§³Ö£¬1±íʾ֧³Ö)£¬BITλ´Ó1¿ªÊ±:

+    * bit1 : PCSCF_IPV6ADDR   0±íʾ²»Ö§³Ö£¬1±íʾ֧³Ö;

+    * bit2 : IMS_SIGNAL_FLG   0±íʾ²»Ö§³Ö£¬1±íʾ֧³Ö;

+    * bit3 : DNS_SRV_IPV6ADDR 0±íʾ²»Ö§³Ö£¬1±íʾ֧³Ö;

+    * bit4 : Reserved    ÉèΪ0

+    * bit5 : SUPPORT_BC_INDICATOR  0±íʾ²»Ö§³Ö£¬1±íʾ֧³Ö;

+    * bit6 : Reserved   ÉèΪ0

+    * bit7 : DSMIPV6_HA_ADDR   0±íʾ²»Ö§³Ö£¬1±íʾ֧³Ö;

+    * bit8 : DSMIPV6_HN_PREF   0±íʾ²»Ö§³Ö£¬1±íʾ֧³Ö;

+    * bit9 : DSMIPV6V4_HA_ADDR 0±íʾ²»Ö§³Ö£¬1±íʾ֧³Ö;

+    * bit10 : IPADDR_VIA_NAS_SIGNAL  0±íʾ²»Ö§³Ö£¬1±íʾ֧³Ö;

+    * bit11 : IPV4ADDR_VIA_DHCPV4    0±íʾ²»Ö§³Ö£¬1±íʾ֧³Ö;

+    * bit12 : PCSCF_IPV4_ADDR     0±íʾ²»Ö§³Ö£¬1±íʾ֧³Ö;

+    * bit13 : DNS_SRV_IPV4_ADDR   0±íʾ²»Ö§³Ö£¬1±íʾ֧³Ö;

+    * bit14 : MSISDN              0±íʾ²»Ö§³Ö£¬1±íʾ֧³Ö;

+    * bit15 : IFOM-Support-Request 0±íʾ²»Ö§³Ö£¬1±íʾ֧³Ö;

+    * bit16 : IPV4MTU              0±íʾ²»Ö§³Ö£¬1±íʾ֧³Ö;

+    *ÆäËû±£Áô£¬ÉèΪ0*/

+    UINT32 pcoInfo;

+    UINT8 KoreaTest;/*º«¹ú¾Ö·½²âÊÔ°æ±¾¿ª¹Ø£¬0:ÆÕͨ°æ±¾£¬1:º«¹ú¾Ö·½²âÊÔ°æ±¾£¬Ä¬ÈÏ0*/

+    UINT8 VolteMtNetTestPadding;/*±¾ÒÑ·ÏÆú,µ«¸çÂ×±ÈÑÇVOLTEÒDZí²âÊÔUMMÈÔÐèÒªµ±Ç°×´Ì¬,ÐèÒªÓëVOLTE NV×Ö¶ÎÒ»ÖÂ*/

+    UINT8 NsIotTestPadding;/*·ÏÆú²»ÓøijÉÌî³äλ,NS_IOT²âÊÔ¿ª¹Ø£¬0£º¹Ø±Õ£¬1£º´ò¿ª,ĬÈÏ0*/

+    UINT8 GsmMeasPrior;/*ÖÐÒÆSRVCCÍⳡ£¬ÊÇ·ñ¿ªÆôGSM²âÁ¿ÓÅÏȹ¦ÄÜ£¬0£º¹Ø±Õ£¬1£º´ò¿ª£¬Ä¬ÈÏÖµ0*/

+    UINT8 VolteCvmodPadding;/*·ÏÆú²»ÓøijÉÌî³äλ,ÓïÒôºô½ÐµÄģʽ£¬0:CS_ONLY, 1:VOIP_ONLY, 2:CSÓÅÏÈ,3:VOIPÓÅÏÈ,ĬÈÏ3*/

+    UINT8 VolteArmWbFlgPadding;/*·ÏÆú²»ÓøijÉÌî³äλ,Volte ARM-WBµÄ¿ª¹Ø£¬0£º¹Ø±Õ£¬1£º´ò¿ª£¬Ä¬ÈÏÖµ1*/

+    UINT8 OffsetRssi;/*WÖ÷Ä£ÏÂÊÕµ½2GÉϱ¨µÄ²âÁ¿Ê±£¬¼õÈ¥µÄÆ«ÒÆÁ¿,[0-255],ĬÈÏÖµ0*/

+    UINT8 Ecno;/*WÖ÷Ä£ÏÂÅжÏSֵʱ£¬±¾µØÉèÖõÄÄܹ»Ö§³ÅÒµÎñµÄ×îСECNO,[0-255],ĬÈÏÖµ255*/

+    UINT8 Rscp;/*WÖ÷Ä£ÏÂÅжÏSֵʱ£¬±¾µØÉèÖõÄÄܹ»Ö§³ÅÒµÎñµÄ×îСRSCP,[0-255],ĬÈÏÖµ255*/

+    UINT8 VolteEmCallSupportPadding;/*·ÏÆú²»ÓøijÉÌî³äλ,VOLTEÊÇ·ñÖ§³Ö½ô¼±ºô½ÐÁ÷³Ì¿ª¹Ø£¬0£º¹Ø±Õ£¬1£º´ò¿ª£¬Ä¬ÈÏÖµ0*/

+    UINT8 OosThreshFlg;/*OOSÃÅÏÞÊÇ·ñÆôÓÿª¹Ø£¬0£º¹Ø±Õ£¬1£º´ò¿ª,ĬÈÏ0*/

+    UINT8 IslandThreshFlg;/*¹ÂµºÃÅÏÞÊÇ·ñÆôÓÿª¹Ø£¬0£º¹Ø±Õ£¬1£º´ò¿ª,ĬÈÏ1*/

+    UINT16 OosThresh;/*OOSÃÅÏÞÖµ£¬¿ª¹Ø¿ªÆôʱÓÐЧ£¬·¶Î§0µ½60£¬Ä¬ÈÏ7,µ¥Î»db*/

+    UINT16 IslandThresh;/*¹ÂµºÃÅÏÞÖµ£¬¿ª¹Ø¿ªÆôʱÓÐЧ£¬·¶Î§0µ½60£¬Ä¬ÈÏ16,µ¥Î»db*/

+    UINT8 RrcCustomBitMap;/*rrc¶¨ÖƵŦÄÜ¿ª¹Ø,bitλ°´´Ó0¿ªÊ¼,bit0:Proc²âÁ¿±¨¸æÓÅ»¯¹¦ÄÜ,0±íʾ¹Ø±Õ,1±íʾ´ò¿ª,ĬÈÏÊÇ0*/

+    UINT8 TauPrior;/*¿ØÖÆLTEÖÆÊ½ÏÂûÓÐPDPÉÏÏÂÎÄʱÊÇ·ñÐèÒªÏÈ·¢ÆðTAU¿ª¹Ø£¬0£º¹Ø±Õ£¬1£º´ò¿ª,ĬÈÏ0*/

+    UINT8 ReselOffSet;/*ÖØÑ¡ÒÖÖÆÃÅÏÞÖµ£¬·¶Î§0µ½3£¬Ä¬ÈÏ3,µ¥Î»db*/

+    UINT8 SoftVersion;/*IMEIºóÃæµÄSoftVersion£¬Ä¬ÈÏÊÇ55*/

+    UINT8 bRpi;/*ȡֵ·¶Î§[0-2],ÅäÖøøPHYµÄRPI,³ö³§Öµ255*/

+    UINT8 bEmmTimerFg;/*ÊÇ·ñ½«EMM´óÓÚ1·ÖÖӵĶ¨Ê±Æ÷Ëõ¶ÌÖÁ1·ÖÖÓ,1:ÊÇ,0:·ñ,³õʼֵ0*/

+    UINT8 bNvDelayWriteTm;/*Ïà¹ØNVµÄдÈëʱ¼ä¼ä¸ô,0±íʾ½öÔÚCFUN0дÈë,1-24±íʾNVдÈë¼ä¸ôʱ¼äµ¥Î»Ð¡Ê±,255±íʾÁ¢¼´Ð´Èë,ĬÈÏÖµ0*/

+    UINT8 bPsbufInit;/*0:psbufÉϵç³õʼ»¯²»ÌáǰÉêÇë,1:psbufÉϵç³õʼ»¯ÌáǰÉêÇë,³ö³§Öµ0*/

+    UINT8 bAttachCid;/*4G ATTACH¹ý³ÌÖ줻îĬÈϳÐÔØÊ¹ÓõÄCID,ĬÈÏֵΪ0*/

+    UINT8 bHarqBufNum;/*ȡֵ12»ò16,ÓÃÓÚ¶¨Òåharq buf¸öÊý,³ö³§Öµ12*/

+    UINT16 wSmallTbNum;/*word·¶Î§,ÓÃÓÚ¶¨ÒåСTB¿é¸öÊý,³ö³§Öµ420*/

+    UINT16 wPsBufNum;/*word·¶Î§,ÓÃÓÚ¶¨Òåpsbuf/pdcp pdu¸öÊý,³ö³§Öµ520*/

+    UINT8 bEdcpPollFg;/*EDCPÊÇ·ñ²ÉÓÃÂÖѯ·½Ê½,1ÂÖѯ0ÖжÏ,³ö³§Öµ0*/

+    UINT8 bHpplmnReSearchTime;/*hpplmnËÑË÷¼ä¸ô,ȡֵ·¶Î§0-255,µ¥Î»·ÖÖÓ,³õʼֵ0,0±íʾ²»Æô¶¯*/

+    UINT8 bHpplmnReTryTime;/*hpplmnÏ´γ¢ÊÔ¼ä¸ô,ȡֵ·¶Î§0-255,µ¥Î»Ãë,³õʼֵ0,0±íʾ²»Æô¶¯*/

+    UINT8 bTEnableEutranLen;/*ÖØÊÔ¼¤»îLTEÄÜÁ¦Ê±³¤,µ¥Î»·ÖÖÓ,³õʼֵ0*/

+    UINT8 bUsatSCFg;/*USAT SMS SCÊÇ·ñÖ±½Ó²éѯ¿¨»ñÈ¡,0·ñ,1ÊÇ,³õʼֵ0*/

+    UINT8 bIdleDrxTm;/*IDLE DRXÖÜÆÚ¿ÉÅäÖÃ,0-²»¿ÉÅäÖÃ,1-4´ú±í4¸öÖÜÆÚ³¤¶È,³ö³§Öµ0*/

+    UINT32 dwDataMonitorTm;/*Êý¾Ý¼à¿ØÊ±³¤,0-²»Æô¶¯,ÆäËüÖµ±íʾ¼à¿ØÊ±³¤,µ¥Î»ms,³ö³§Öµ0*/

+    UINT16 bFreqScanTmin;/*×îСɨƵÖÜÆÚ,³ö³§Öµ0,µ¥Î»S*/

+    UINT16 bFreqScanStep;/*ÖÜÆÚÐÔɨƵ²½³¤,³ö³§Öµ0,µ¥Î»s*/

+    UINT16 bFreqScanTnum;/*ͬһÖÜÆÚ³¢ÊÔ´ÎÊý,³ö³§Öµ0*/

+    UINT16 bFreqScanTmax;/*×î´óɨƵÖÜÆÚ,³ö³§Öµ0,µ¥Î»S*/

+}CommAtSetting;

+/* atÉèÖýṹÌå ²»´æNV*/

+typedef struct  

+{

+    UINT16 interruptAssertNum;

+    UINT8 interruptAssertMode;       /* 1´ò¿ª£¬0 ¹Ø±Õ */

+    UINT8 OpenVoiceChnlFlag; /*ÊÇ·ñÒªµ÷ÓÃÇý¶¯º¯Êý´ò¿ªÓïÒô£¬0£ºÒª´ò¿ª£¬1£º²»´ò¿ª£¬Ä¬ÈÏÖµ0*/

+}CommNoSaveNvAtSetting;

+

+#ifdef _OS_WIN

+/* ZSP NV¿ØÖƽṹÌå ,mtnetTestFlagºÍshangDongPsmFlagµ÷µ½ÎïÀí²ãNVºó¸Ã½á¹¹Ö»ÓÃÓÚVC°æ±¾*/

+typedef struct  

+{

+        UINT16 maxTxPower;       /* ·ÏÆú²»ÓÃ*/

+        UINT16 mtnetTestFlag;    /* ÈëÍø²âÊÔ¿ØÖÆ£¬1´ò¿ª£¬0 ¹Ø±Õ */

+        UINT16 shangDongPsmFlag; /* ɽ¶«¶¨Öư汾Ïà¹Ø¿ØÖÆ,1´ò¿ª£¬0¹Ø±Õ */

+        UINT16 integrateTestFlag;/* ·ÏÆú²»ÓÃ */

+}CommZspAtSetting;

+

+typedef struct  

+{

+        UINT16 wCmccChipTest;/*AT+ZSET="CMCC_CHIP_TEST"[,<n>] ÖÐÒÆÐ¾Æ¬ÈÏÖ¤ÖмȲ»·ûºÏЭÒéÒ²²»·ûºÏÍⳡµÄ´¦Àí¿ª¹Ø£¬0:¹Ø±Õ£¬1:´ò¿ª,ĬÈÏ0*/

+        UINT16 wPsmTest;/*AT+ZSET="PSM_TEST"[,<n>] Ê¡µç²âÊÔ¿ª¹Ø£¬0:¹Ø±Õ£¬1:´ò¿ª,ĬÈÏΪ0*/

+        UINT16 voltePowerSave;/*AT+ZSET="VOLTE_POWERSAVE"[,<n>] VOLTE¹¦ºÄÏà¹ØµÄ¿ª¹Ø£¬0:¹Ø±Õ±íʾÊdz£¹æ²âÊÔ£¬1:´ò¿ª£¬ÓÃÓÚ²âÊÔVOLTE¹¦ºÄ,ĬÈÏ0*/

+        UINT16 wphyCfgFlg;/*AT+ZSET="phyCfg"[,<n>] ÎïÀí²ã¹¦ÄÜÅäÖÃ,bit1:²âÁ¿²ßÂÔ¿ª¹Ø,bit2:ѰºôÏÂÒÆ¿ª¹Ø,bit3:RFµ¥ÌìÏß½ÓÊÕ¿ª¹Ø,0:¹Ø±Õ1:´ò¿ª,ĬÈÏ0*/

+}CommVcTtestSetting;

+#endif

+

+typedef struct  

+{

+        UINT32  param1; 

+        UINT32  param2;

+        UINT32  param3;

+        UINT32  param4;

+        UINT32  param5;

+        UINT32  param6;

+        UINT32  param7;

+        UINT32  param8;

+        UINT32  flag1;

+        UINT32  flag2;

+        UINT32  flag3;

+        UINT32  flag4;

+        UINT32  flag5;

+        UINT32  flag6;

+        UINT32  flag7;

+        UINT32  flag8;

+        UINT32  result;

+}CommAtCfgCmdParam;

+

+

+typedef struct  

+{

+        UINT16 cmdID; 

+        UINT16 pading;

+        UINT32  logfilter1; 

+        UINT32  logfilter2;  

+}CommAtCfgLogFilter;

+

+typedef struct  

+{

+        UINT16 cmdID; 

+        UINT16 pading;

+        UINT32  paLogFlag; 

+}CommAtCfgPaLogChannel;

+

+typedef struct  

+{

+        UINT16 cmdID; 

+        UINT16 pading;

+        UINT16  zspDebugInfo[256];

+}CommAtCfgZspDebugInfo;

+

+typedef struct  

+{

+        UINT16 cmdID; 

+        UINT16 pading;

+        UINT16 L1wAtRfcDebug[10];

+}CommAtCfgL1wAtRfcDebug;

+/*====================================================================

+*ÏûÏ¢¶¨Òå

+*=====================================================================*/

+

+

+/*==================================================================

+*½Ó¿Ú¶¨Òå

+*=====================================================================*/

+/*****************************************************************************

+ *  º¯ÊýÃû      £ºzOss_SetJtagServerFlag

+ *  ¹¦ÄÜ        £º

+ *  ÊäÈë²ÎÊý    £ºUSE_JTAGSERVER_ENABLE,USE_JTAGSERVER_DISABLE

+ *  Êä³ö²ÎÊý    £ºÎÞ

+ *  ·µ»ØÖµËµÃ÷  £ºZOSS_SUCCESS,ZOSS_ERROR

+ *  ÆäËû˵Ã÷    £º1 TDÎïÀí²ã¹Ì»¯°æ±¾¿ØÖÆ

+ *****************************************************************************/

+UINT32 zOss_SetJtagServerFlag(UINT32 flag);

+

+/*****************************************************************************

+ *  º¯ÊýÃû      £ºzOss_GetJtagServerFlag

+ *  ¹¦ÄÜ        £º

+ *  ÊäÈë²ÎÊý    £ºÎÞ

+ *  Êä³ö²ÎÊý    £ºÎÞ

+ *  ·µ»ØÖµËµÃ÷  £ºUSE_JTAGSERVER_ENABLE,USE_JTAGSERVER_DISABLE,ZOSS_ERROR

+ *  ÆäËû˵Ã÷    £º1 TDÎïÀí²ã¹Ì»¯°æ±¾¿ØÖÆ

+ *****************************************************************************/

+UINT32 zOss_GetJtagServerFlag(VOID);

+

+/*****************************************************************************

+ *  º¯ÊýÃû      £ºUINT32 zOss_SetPaLogChannel(UINT32 flag)

+ *  ¹¦ÄÜ        £º

+ *  ÊäÈë²ÎÊý    £ºUSE_PA_FROM_ARM_ENABLE,USE_PA_FROM_ARM_DISABLE

+ *  Êä³ö²ÎÊý    £ºÎÞ

+ *  ·µ»ØÖµËµÃ÷  £ºZOSS_SUCCESS,ZOSS_ERROR

+ *  ÆäËû˵Ã÷    £ºPAÊä³öLOGͨµÀ ,TDרÓÃ

+ *****************************************************************************/

+UINT32 zOss_SetPaLogChannel(UINT32 flag);

+/*****************************************************************************

+ *  º¯ÊýÃû      £ºUINT32 zOss_SetWPaLogChannel(UINT32 flag)

+ *  ¹¦ÄÜ        £º

+ *  ÊäÈë²ÎÊý    £ºUSE_PA_FROM_ARM_ENABLE,USE_PA_FROM_ARM_DISABLE

+ *  Êä³ö²ÎÊý    £ºÎÞ

+ *  ·µ»ØÖµËµÃ÷  £ºZOSS_SUCCESS,ZOSS_ERROR

+ *  ÆäËû˵Ã÷    £ºPAÊä³öLOGͨµÀ ,WרÓÃ

+ *****************************************************************************/

+UINT32 zOss_SetWPaLogChannel(UINT32 flag);

+

+/*****************************************************************************

+ *  º¯ÊýÃû      £ºzOss_GetPaLogChannel

+ *  ¹¦ÄÜ        £º

+ *  ÊäÈë²ÎÊý    £ºÎÞ

+ *  Êä³ö²ÎÊý    £ºÎÞ

+ *  ·µ»ØÖµËµÃ÷  £ºUSE_PA_FROM_ARM_ENABLE,USE_PA_FROM_ARM_DISABLE,ZOSS_ERROR

+ *  ÆäËû˵Ã÷    £ºPAÊä³öLOGͨµÀ 

+ *****************************************************************************/

+UINT32 zOss_GetPaLogChannel(VOID);

+/**************************************************************************

+*º¯ÊýÃû³Æ:zOss_GetWPaLogChannel

+*º¯Êý¹¦ÄÜ:»ñÈ¡WµÄpa channel±ê־λ

+*ÆäËû˵Ã÷:EC:616000266091

+**************************************************************************/

+UINT32 zOss_GetWPaLogChannel(VOID);

+

+/*****************************************************************************

+ *  º¯ÊýÃû      £ºzOss_SetExceptResetFlag

+ *  ¹¦ÄÜ        £º

+ *  ÊäÈë²ÎÊý    £ºEXCEPT_RESET_ENABLE,EXCEPT_RESET_DISABLE

+ *  Êä³ö²ÎÊý    £ºÎÞ

+ *  ·µ»ØÖµËµÃ÷  £ºZOSS_SUCCESS,ZOSS_ERROR

+ *  ÆäËû˵Ã÷    £ºÒì³£ÖØÆô¿ØÖÆ

+ *****************************************************************************/

+UINT32 zOss_SetExceptResetFlag(UINT32 flag);

+

+/*****************************************************************************

+ *  º¯ÊýÃû      £ºzOss_GetExceptResetFlag

+ *  ¹¦ÄÜ        £º

+ *  ÊäÈë²ÎÊý    £ºÎÞ

+ *  Êä³ö²ÎÊý    £ºÎÞ

+ *  ·µ»ØÖµËµÃ÷  £ºEXCEPT_RESET_ENABLE,EXCEPT_RESET_DISABLE,ZOSS_ERROR

+ *  ÆäËû˵Ã÷    £ºÒì³£ÖØÆô¿ØÖÆ

+ *****************************************************************************/

+UINT32 zOss_GetExceptResetFlag(VOID);

+

+/*****************************************************************************

+ *  º¯ÊýÃû      £ºzOss_SetRamdumpDisplayFlag

+ *  ¹¦ÄÜ        £º

+ *  ÊäÈë²ÎÊý    £ºUSE_RAMDUMP_DISPLAY_ENABLE,USE_RAMDUMP_DISPLAY_DISABLE

+ *  Êä³ö²ÎÊý    £ºÎÞ

+ *  ·µ»ØÖµËµÃ÷  £ºZOSS_SUCCESS,ZOSS_ERROR

+ *  ÆäËû˵Ã÷    £ºRAMDUMP ÏÔʾµ½LCD¿ØÖÆ 

+ *****************************************************************************/

+UINT32 zOss_SetRamdumpDisplayFlag(UINT32 flag);

+

+/*****************************************************************************

+ *  º¯ÊýÃû      £ºzOss_GetRamdumpDisplayFlag

+ *  ¹¦ÄÜ        £º

+ *  ÊäÈë²ÎÊý    £ºÎÞ

+ *  Êä³ö²ÎÊý    £ºÎÞ

+ *  ·µ»ØÖµËµÃ÷  £ºUSE_RAMDUMP_DISPLAY_ENABLE,USE_RAMDUMP_DISPLAY_DISABLE,ZOSS_ERROR

+ *  ÆäËû˵Ã÷    £ºRAMDUMP ÏÔʾµ½LCD¿ØÖÆ 

+ *****************************************************************************/

+UINT32 zOss_GetRamdumpDisplayFlag (VOID);

+

+/*****************************************************************************

+ *  º¯ÊýÃû      £ºzOss_SetPsmLogEnable

+ *  ¹¦ÄÜ        £º

+ *  ÊäÈë²ÎÊý    £ºUSE_ARM_LOG_CHANNEL_USB,USE_ARM_LOG_CHANNEL_UART

+ *  Êä³ö²ÎÊý    £ºÎÞ

+ *  ·µ»ØÖµËµÃ÷  £ºZOSS_SUCCESS,ZOSS_ERROR

+ *  ÆäËû˵Ã÷    £ºARMÊä³öLOGͨµÀ¿ØÖÆ

+ *****************************************************************************/

+UINT32 zOss_SetPsmLogEnable (UINT32 flag);

+

+/*****************************************************************************

+ *  º¯ÊýÃû      £ºzOss_GetPsmLogEnable

+ *  ¹¦ÄÜ        £º

+ *  ÊäÈë²ÎÊý    £ºÎÞ

+ *  Êä³ö²ÎÊý    £ºÎÞ

+ *  ·µ»ØÖµËµÃ÷  £ºUSE_ARM_LOG_CHANNEL_USB,USE_ARM_LOG_CHANNEL_UART,ZOSS_ERROR

+ *  ÆäËû˵Ã÷    £ºARMÊä³öLOGͨµÀ¿ØÖÆ

+ *****************************************************************************/

+UINT32 zOss_GetPsmLogEnable (VOID);

+

+/*****************************************************************************

+ *  º¯ÊýÃû      £ºzOss_SetMtnetTestFlag

+ *  ¹¦ÄÜ        £º

+ *  ÊäÈë²ÎÊý    £ºUSE_MTNET_TEST_ENABLE,USE_MTNET_TEST_DISABLE

+ *  Êä³ö²ÎÊý    £ºÎÞ

+ *  ·µ»ØÖµËµÃ÷  £ºZOSS_SUCCESS,ZOSS_ERROR

+ *  ÆäËû˵Ã÷    £ºÈëÍø²âÊÔ¿ØÖÆ

+ *****************************************************************************/

+UINT32 zOss_SetMtnetTestFlag(UINT32 flag);

+

+/*****************************************************************************

+ *  º¯ÊýÃû      £ºzOss_GetMtnetTestFlag

+ *  ¹¦ÄÜ        £º

+ *  ÊäÈë²ÎÊý    £ºÎÞ

+ *  Êä³ö²ÎÊý    £ºÎÞ

+ *  ·µ»ØÖµËµÃ÷  £ºUSE_MTNET_TEST_ENABLE,USE_MTNET_TEST_DISABLE,ZOSS_ERROR

+ *  ÆäËû˵Ã÷    £ºÈëÍø²âÊÔ¿ØÖÆ

+ *****************************************************************************/

+UINT32 zOss_GetMtnetTestFlag (VOID);

+

+/*****************************************************************************

+ *  º¯ÊýÃû      £ºzOss_SetShandongPsmFlag

+ *  ¹¦ÄÜ        £º

+ *  ÊäÈë²ÎÊý    £ºUSE_SHANDONG_FIELD_ENABLE,USE_SHANDONG_FIELD_DISABLE

+ *  Êä³ö²ÎÊý    £ºÎÞ

+ *  ·µ»ØÖµËµÃ÷  £ºZOSS_SUCCESS,ZOSS_ERROR

+ *  ÆäËû˵Ã÷    £ºÉ½¶«Ê¡µç

+ *****************************************************************************/

+UINT32 zOss_SetShandongPsmFlag(UINT32 flag);

+

+/*****************************************************************************

+ *  º¯ÊýÃû      £ºGetShandongPsmFlag

+ *  ¹¦ÄÜ        £º

+ *  ÊäÈë²ÎÊý    £ºÎÞ

+ *  Êä³ö²ÎÊý    £ºÎÞ

+ *  ·µ»ØÖµËµÃ÷  £ºUSE_SHANDONG_FIELD_ENABLE,USE_SHANDONG_FIELD_DISABLE,ZOSS_ERROR

+ *  ÆäËû˵Ã÷    £ºÉ½¶«Ê¡µç

+ *****************************************************************************/

+UINT32 zOss_GetShandongPsmFlag (VOID);

+

+/*****************************************************************************

+ *  º¯ÊýÃû      £ºzOss_SetLiaoNingPsmFlag

+ *  ¹¦ÄÜ        £º

+ *  ÊäÈë²ÎÊý    £ºUSE_SIB4_BAR_ENABLE,USE_SIB4_BAR_DISABLE

+ *  Êä³ö²ÎÊý    £ºÎÞ

+ *  ·µ»ØÖµËµÃ÷  £ºZOSS_SUCCESS,ZOSS_ERROR

+ *  ÆäËû˵Ã÷    £ºÁÉÄþÊ¡µç

+ *****************************************************************************/

+UINT32 zOss_SetLiaoNingPsmFlag(UINT32 flag);

+

+/*****************************************************************************

+ *  º¯ÊýÃû      £ºGetLiaoNingPsmFlag

+ *  ¹¦ÄÜ        £º

+ *  ÊäÈë²ÎÊý    £ºÎÞ

+ *  Êä³ö²ÎÊý    £ºÎÞ

+ *  ·µ»ØÖµËµÃ÷  £ºUSE_SIB4_BAR_ENABLE,USE_SIB4_BAR_DISABLE,ZOSS_ERROR

+ *  ÆäËû˵Ã÷    £ºÁÉÄþÊ¡µç

+ *****************************************************************************/

+UINT32 zOss_GetLiaoNingPsmFlag (VOID);

+

+/*****************************************************************************

+ *  º¯ÊýÃû      £ºzOss_SetZspLogFilter

+ *  ¹¦ÄÜ        £º

+ *  ÊäÈë²ÎÊý    £ºuint32

+ *  Êä³ö²ÎÊý    £ºÎÞ

+ *  ·µ»ØÖµËµÃ÷  £ºZOSS_SUCCESS,ZOSS_ERROR

+ *  ÆäËû˵Ã÷    £ºZSP log¹ýÂË

+ *****************************************************************************/

+UINT32 zOss_SetZspLogFilter(UINT32 flag1,UINT32 flag2);

+/**************************************************************************

+*º¯ÊýÃû³Æ:zOss_SetWZspLogFilter

+*º¯Êý¹¦ÄÜ:ÉèÖÃWÎïÀí²ãµÄZSPLOG

+*ÆäËû˵Ã÷:616000216091Ôö¼Ó¶¯Ì¬¿ØÖÆWÎïÀí²ãLOGÊä³ö·½Ê½µÄÖ§³Ö

+***************************************************************************/

+UINT32 zOss_SetWZspLogFilter(UINT32 flag1, UINT32 flag2);

+

+/*****************************************************************************

+ *  º¯ÊýÃû      £ºzOss_GetZspLogFilter

+ *  ¹¦ÄÜ        £º

+ *  ÊäÈë²ÎÊý    £ºÎÞ

+ *  Êä³ö²ÎÊý    £ºÎÞ

+ *  ·µ»ØÖµËµÃ÷  £ºUINT32

+ *  ÆäËû˵Ã÷    £ºZSP log¹ýÂË

+ *****************************************************************************/

+CommAtCfgCmdParam zOss_GetZspLogFilter (VOID);

+/****************************************************************

+*º¯ÊýÃû³Æ:zOss_GetWZspLogFilter

+*º¯Êý¹¦ÄÜ:»ñÈ¡WÎïÀí²ãZSPLOGÉèÖõıê־λ

+*ÆäËû˵Ã÷:616000266091

+****************************************************************/

+CommAtCfgCmdParam zOss_GetWZspLogFilter (VOID);

+

+/*****************************************************************************

+ *  º¯ÊýÃû      £ºzOss_SetCmccFlag

+ *  ¹¦ÄÜ        £º

+ *  ÊäÈë²ÎÊý    £ºUSE_CMCC_TEST_ENABLE,USE_CMCC_TEST_DISABLE

+ *  Êä³ö²ÎÊý    £ºÎÞ

+ *  ·µ»ØÖµËµÃ÷  £ºZOSS_SUCCESS,ZOSS_ERROR

+ *  ÆäËû˵Ã÷    £ºÖÐÒÆÈë¿â

+ *****************************************************************************/

+UINT32 zOss_SetCmccFlag(UINT32 flag);

+

+/*****************************************************************************

+ *  º¯ÊýÃû      £ºzOss_GetCmccFlag

+ *  ¹¦ÄÜ        £º

+ *  ÊäÈë²ÎÊý    £ºÎÞ

+ *  Êä³ö²ÎÊý    £ºÎÞ

+ *  ·µ»ØÖµËµÃ÷  £ºUSE_CMCC_TEST_ENABLE,USE_CMCC_TEST_DISABLE,ZOSS_ERROR

+ *  ÆäËû˵Ã÷    £ºÖÐÒÆÈë¿â

+ *****************************************************************************/

+UINT32 zOss_GetCmccFlag (VOID);

+

+/*****************************************************************************

+ *  º¯ÊýÃû      £ºzOss_SetRatVersion

+ *  ¹¦ÄÜ        £º

+ *  ÊäÈë²ÎÊý    £ºUSE_RAT_VERSION_TD_ONLY,USE_RAT_VERSION_GSM_ONLY,USE_RAT_VERSION_TD_PRI,USE_RAT_VERSION_GSM_PRI

+ *  Êä³ö²ÎÊý    £ºÎÞ

+ *  ·µ»ØÖµËµÃ÷  £ºZOSS_SUCCESS,ZOSS_ERROR

+ *  ÆäËû˵Ã÷    £º°æ±¾ÖÆÊ½¿ØÖÆ

+ *****************************************************************************/

+UINT32 zOss_SetRatVersion(UINT32 flag);

+

+/*****************************************************************************

+ *  º¯ÊýÃû      £ºzOss_GetRatVersion

+ *  ¹¦ÄÜ        £º

+ *  ÊäÈë²ÎÊý    £ºÎÞ

+ *  Êä³ö²ÎÊý    £ºÎÞ

+ *  ·µ»ØÖµËµÃ÷  £ºUSE_RAT_VERSION_TD_ONLY,USE_RAT_VERSION_GSM_ONLY,USE_RAT_VERSION_TD_PRI,USE_RAT_VERSION_GSM_PRI,ZOSS_ERROR

+ *  ÆäËû˵Ã÷    £º°æ±¾ÖÆÊ½¿ØÖÆ

+ *****************************************************************************/

+UINT8 zOss_GetRatVersion (VOID);

+

+/*****************************************************************************

+ *  º¯ÊýÃû      £ºzOss_SetZspDeubgInfo

+ *  ¹¦ÄÜ        £º

+ *  ÊäÈë²ÎÊý    £ºÎÞ

+ *  Êä³ö²ÎÊý    £ºÎÞ

+ *  ·µ»ØÖµËµÃ÷  £ºUSE_RAT_VERSION_TD_ONLY,USE_RAT_VERSION_GSM_ONLY,USE_RAT_VERSION_TD_PRI,USE_RAT_VERSION_GSM_PRI,ZOSS_ERROR

+ *  ÆäËû˵Ã÷    £º°æ±¾ÖÆÊ½¿ØÖÆ

+ *****************************************************************************/

+UINT32 zOss_SetZspDeubgInfo(UINT16 param1, 

+                                                                              UINT16 param2, 

+                                                                              UINT16 param3,

+                                                                              UINT16 param4,

+                                                                              UINT16 param5,

+                                                                              UINT16 param6);

+

+

+/*****************************************************************************

+ *  º¯ÊýÃû      £ºzOss_SetZspDeubgInfo

+ *  ¹¦ÄÜ        £º

+ *  ÊäÈë²ÎÊý    £ºÎÞ

+ *  Êä³ö²ÎÊý    £ºÎÞ

+ *  ·µ»ØÖµËµÃ÷  £ºUSE_RAT_VERSION_TD_ONLY,USE_RAT_VERSION_GSM_ONLY,USE_RAT_VERSION_TD_PRI,USE_RAT_VERSION_GSM_PRI,ZOSS_ERROR

+ *  ÆäËû˵Ã÷    £º°æ±¾ÖÆÊ½¿ØÖÆ

+ *****************************************************************************/

+CommAtCfgCmdParam zOss_GetZspDeubgInfo(VOID);

+/*****************************************************************************

+*º¯ÊýÃû³Æ:zOss_SetWZspDeubgInfo

+*º¯Êý¹¦ÄÜ:ÉèÖÃWÎïÀí²ãZSP LOGÊä³ö¿ØÖÆ

+*ÆäËû˵Ã÷:616000266091Ôö¼Ó¶¯Ì¬¿ØÖÆWÎïÀí²ãLOGÊä³ö·½Ê½µÄÖ§³Ö

+ *****************************************************************************/

+UINT32 zOss_SetWZspDeubgInfo(UINT16 param1, 

+                                                                              UINT16 param2, 

+                                                                              UINT16 param3,

+                                                                              UINT16 param4,

+                                                                              UINT16 param5,

+                                                                              UINT16 param6);

+/*****************************************************************************

+*º¯ÊýÃû³Æ:zOss_SetWZspDeubgInfo

+*º¯Êý¹¦ÄÜ:ÉèÖÃWÎïÀí²ãZSP LOGÊä³ö¿ØÖÆ

+*ÆäËû˵Ã÷:616000266091Ôö¼Ó¶¯Ì¬¿ØÖÆWÎïÀí²ãLOGÊä³ö·½Ê½µÄÖ§³Ö

+ *****************************************************************************/

+CommAtCfgCmdParam zOss_GetWZspDeubgInfo(VOID);

+UINT32 zOss_SetL1wrfcDebugInfo(UINT16 param1, 

+                                                                              UINT16 param2, 

+                                                                              UINT16 param3,

+                                                                              UINT16 param4,

+                                                                              UINT16 param5,

+                                                                              UINT16 param6);

+CommAtCfgCmdParam zOss_GetL1wrfcDebugInfo(VOID);

+

+/*****************************************************************************

+ *  º¯ÊýÃû      :zOss_AtCfgSet

+ *  ¹¦ÄÜ        £ºAt

+ *  ÊäÈë²ÎÊý    £ºcmd:ÊäÈëµÄAtÃüÁparamÃüÁîµÄ²ÎÊý

+ *  Êä³ö²ÎÊý    £ºÎÞ

+ *  ·µ»ØÖµËµÃ÷  £ºZOSS_SUCCESS,ZOSS_ERROR;

+ *  ÆäËû˵Ã÷    £º

+ *****************************************************************************/

+UINT32 zOss_AtCfgSet(CHAR* cmd,CommAtCfgCmdParam * cmdParm, UINT8 bInsNo);

+

+/*****************************************************************************

+ *  º¯ÊýÃû      :zOss_AtCfgGet

+ *  ¹¦ÄÜ        £º»ñÈ¡atÃüÁîµÄ²ÎÊý

+ *  ÊäÈë²ÎÊý    £º

+ *  Êä³ö²ÎÊý    £ºÎÞ

+ *  ·µ»ØÖµËµÃ÷  £º²ÎÊýÖµ

+ *  ÆäËû˵Ã÷    £ºÎÞ

+ *****************************************************************************/

+CommAtCfgCmdParam zOss_AtCfgGet(CHAR* cmd);

+

+/*****************************************************************************

+ *  º¯ÊýÃû      :zOss_GetTebsThreshold

+ *  ¹¦ÄÜ        :

+ *  ÊäÈë²ÎÊý    £º

+ *  Êä³ö²ÎÊý    £ºÎÞ

+ *  ·µ»ØÖµËµÃ÷  £º

+ *  ÆäËû˵Ã÷    £º

+ *****************************************************************************/

+UINT8 zOss_GetTebsThreshold(VOID);

+

+/*****************************************************************************

+ *  º¯ÊýÃû      :zOss_SetTebsThreshold

+ *  ¹¦ÄÜ        £º

+ *  ÊäÈë²ÎÊý    £º0-31 ĬÈÏ15

+ *  Êä³ö²ÎÊý    £ºÎÞ

+ *  ·µ»ØÖµËµÃ÷  £ºZOSS_SUCCESS,ZOSS_ERROR

+ *  ÆäËû˵Ã÷    £ºÎÞ

+ *****************************************************************************/

+UINT32 zOss_SetTebsThreshold(UINT32 tebsThreshold);

+

+/*****************************************************************************

+ *  º¯ÊýÃû      :zOss_GetVoiceSuppFlag

+ *  ¹¦ÄÜ        :

+ *  ÊäÈë²ÎÊý    £º

+ *  Êä³ö²ÎÊý    £ºÎÞ

+ *  ·µ»ØÖµËµÃ÷  £º0,²»Ö§³ÖÀ´µç£¬1Ö§³ÖÀ´µç£¬ÆäËûÖµÎÞЧ

+ *  ÆäËû˵Ã÷    £º

+ *****************************************************************************/

+UINT8 zOss_GetVoiceSuppFlag(VOID);

+

+/*****************************************************************************

+ *  º¯ÊýÃû      :zOss_SetVoiceSuppFlag

+ *  ¹¦ÄÜ        £º

+ *  ÊäÈë²ÎÊý    £º

+ *  Êä³ö²ÎÊý    £ºÎÞ

+ *  ·µ»ØÖµËµÃ÷  £ºZOSS_SUCCESS,ZOSS_ERROR

+ *  ÆäËû˵Ã÷    £ºÎÞ

+ *****************************************************************************/

+UINT32 zOss_SetVoiceSuppFlag(UINT32 voiceSupportFlag);

+

+/*****************************************************************************

+ *  º¯ÊýÃû      : zOss_GetUeRelease

+ *  ¹¦ÄÜ        : »ñÈ¡UEÉϱ¨µÄЭÒé°æ±¾ÐÅÏ¢

+ *  ÊäÈë²ÎÊý    £º

+ *  Êä³ö²ÎÊý    £ºÎÞ

+ *  ·µ»ØÖµËµÃ÷  £º#define USE_UE_PS_VERSION_R4  0

+                  #define USE_UE_PS_VERSION_R5  1

+                  #define USE_UE_PS_VERSION_R7  3

+                  #define USE_UE_PS_VERSION_R9  5

+ *  ÆäËû˵Ã÷    £º

+ *****************************************************************************/

+UINT8 zOss_GetUeRelease (VOID);

+

+/*****************************************************************************

+ *  º¯ÊýÃû      : zOss_SetUeRelease

+ *  ¹¦ÄÜ        £ºÉèÖÃUEÉϱ¨µÄЭÒé°æ±¾ÐÅÏ¢

+ *  ÊäÈë²ÎÊý    £º

+ *  Êä³ö²ÎÊý    £ºÎÞ

+ *  ·µ»ØÖµËµÃ÷  £ºZOSS_SUCCESS,ZOSS_ERROR

+ *  ÆäËû˵Ã÷    £ºÎÞ

+ *****************************************************************************/

+UINT32 zOss_SetUeRelease(UINT32 ueRelease);

+/*****************************************************************************

+ *  º¯ÊýÃû      : zOss_GetFddRelease

+ *  ¹¦ÄÜ        : »ñÈ¡UEÉϱ¨µÄwcdmaЭÒé°æ±¾ÐÅÏ¢

+ *  ÊäÈë²ÎÊý    £º

+ *  Êä³ö²ÎÊý    £ºÎÞ

+ *  ·µ»ØÖµËµÃ÷

+                    

+                  #define USE_UE_PS_FDD_RELEASE_R3  1

+                  #define USE_UE_PS_FDD_RELEASE_R4 2

+                  #define USE_UE_PS_FDD_RELEASE_R5  3

+                  #define USE_UE_PS_FDD_RELEASE_R6 4

+                  #define USE_UE_PS_FDD_RELEASE_R7 5

+                  #define USE_UE_PS_FDD_RELEASE_R8  6

+                  #define USE_UE_PS_FDD_RELEASE_R9  7

+ *  ÆäËû˵Ã÷    £º

+ *****************************************************************************/

+UINT8 zOss_GetFddRelease (VOID);

+

+/*****************************************************************************

+ *  º¯ÊýÃû      : zOss_SetFddRelease

+ *  ¹¦ÄÜ        £ºÉèÖÃUEÉϱ¨µÄWCDMAЭÒé°æ±¾ÐÅÏ¢

+ *  ÊäÈë²ÎÊý    £º

+ *  Êä³ö²ÎÊý    £ºÎÞ

+ *  ·µ»ØÖµËµÃ÷  £ºZOSS_SUCCESS,ZOSS_ERROR

+ *  ÆäËû˵Ã÷    £ºÎÞ

+ *****************************************************************************/

+UINT32 zOss_SetFddRelease(UINT32 FddRelease);

+/*****************************************************************************

+ *  º¯ÊýÃû      : zOss_GetAutoStartTestFlag

+ *  ¹¦ÄÜ        : »ñÈ¡µ±Ç°¶ÔÈëÍøÈë¿â×Ô¶¯»¯²âÊÔÖ§³ÖµÄ±ê־λ

+ *  ÊäÈë²ÎÊý    £º

+ *  Êä³ö²ÎÊý    £ºÎÞ

+ *  ·µ»ØÖµËµÃ÷  £º#define USE_AUTOSTART_TEST_ENABLE  1

+                  #define USE_AUTOSTART_TEST_DISABLE  0

+ *  ÆäËû˵Ã÷    £ºÆäËûÖµÎÞЧ

+ *****************************************************************************/

+UINT32 zOss_GetAutoStartTestFlag (VOID);

+

+/*****************************************************************************

+ *  º¯ÊýÃû      : zOss_SetAutoStartTestFlag

+ *  ¹¦ÄÜ        £ºÉèÖÃUEÉϱ¨µÄЭÒé°æ±¾ÐÅÏ¢

+ *  ÊäÈë²ÎÊý    £º#define USE_AUTOSTART_TEST_ENABLE  1

+                  #define USE_AUTOSTART_TEST_DISABLE  0

+ *  Êä³ö²ÎÊý    £ºÎÞ

+ *  ·µ»ØÖµËµÃ÷  £ºZOSS_SUCCESS,ZOSS_ERROR

+ *  ÆäËû˵Ã÷    £ºÎÞ

+ *****************************************************************************/

+UINT32 zOss_SetAutoStartTestFlag(UINT32 flag);

+

+/*****************************************************************************

+ *  º¯ÊýÃû      : zOss_GetSignalCount()

+ *  ¹¦ÄÜ        : »ñÈ¡µ±Ç°ÐͺŻúÖ§³ÖµÄÐźŸñÊý

+ *  ÊäÈë²ÎÊý    £º

+ *  Êä³ö²ÎÊý    £ºÎÞ

+ *  ·µ»ØÖµËµÃ÷  £º5,6,7ÓÐЧ£¬ÆäËûÖµÎÞЧ

+ *  ÆäËû˵Ã÷    £ºÆäËûÖµÎÞЧ

+ *****************************************************************************/

+UINT8 zOss_GetSignalCount (VOID);

+

+/*****************************************************************************

+ *  º¯ÊýÃû      : zOss_SetSignalCount

+ *  ¹¦ÄÜ        £ºÉèÖõ±Ç°ÐͺŻúÖ§³ÖµÄÐźŸñÊý

+ *  ÊäÈë²ÎÊý    £º5,6,7

+ *  Êä³ö²ÎÊý    £ºÎÞ

+ *  ·µ»ØÖµËµÃ÷  £ºZOSS_SUCCESS,ZOSS_ERROR

+ *  ÆäËû˵Ã÷    £ºÎÞ

+ *****************************************************************************/

+UINT32 zOss_SetSignalCount(UINT32 signalCout);

+

+/*****************************************************************************

+ *  º¯ÊýÃû      : zOss_GetFreq()

+ *  ¹¦ÄÜ        : »ñÈ¡µ±Ç°°æ±¾µÄÖ÷Ƶ»òÊÇ·ñµ÷Ƶ

+ *  ÊäÈë²ÎÊý    £º

+ *  Êä³ö²ÎÊý    £ºÎÞ

+ *  ·µ»ØÖµËµÃ÷  £º#define USE_CHANGE_FREQ_DEFAULT  0

+                  #define USE_FREQ_156M  1

+                  #define USE_FREQ_240M  2

+                  #define USE_FREQ_312M  3

+                  ÆäËûÖµÎÞЧ

+ *  ÆäËû˵Ã÷    £º

+ *****************************************************************************/

+UINT8 zOss_GetFreq (VOID);

+

+/*****************************************************************************

+ *  º¯ÊýÃû      : zOss_SetFreq

+ *  ¹¦ÄÜ        £ºÉèÖõ±Ç°°æ±¾µÄÖ÷Ƶ»òÊÇ·ñµ÷Ƶ

+ *  ÊäÈë²ÎÊý    £º

+                  #define USE_CHANGE_FREQ_DEFAULT  0

+                  #define USE_FREQ_156M  1

+                  #define USE_FREQ_240M  2

+                  #define USE_FREQ_312M  3

+ *  Êä³ö²ÎÊý    £ºÎÞ

+ *  ·µ»ØÖµËµÃ÷  £ºZOSS_SUCCESS,ZOSS_ERROR

+ *  ÆäËû˵Ã÷    £ºÎÞ

+ *****************************************************************************/

+UINT32 zOss_SetFreq(UINT32 freq);

+

+/*****************************************************************************

+ *  º¯ÊýÃû      : zOss_GetVoltageChange()

+ *  ¹¦ÄÜ        : »ñÈ¡µ±Ç°ÐͺŻúµ÷ѹ´óС

+ *  ÊäÈë²ÎÊý    £ºÎÞ

+ *  Êä³ö²ÎÊý    £ºÎÞ

+ *  ·µ»ØÖµËµÃ÷  £º

+                  #define USE_CHANGE_VOLTAGE_1150V_DEFAULT 0

+                  #define USE_CHANGE_VOLTAGE_1210V  1

+                  #define USE_CHANGE_VOLTAGE_1175V  2

+                  #define USE_CHANGE_VOLTAGE_1150V  3

+                  #define USE_CHANGE_VOLTAGE_1125V  4

+                  #define USE_CHANGE_VOLTAGE_1100V  5

+                  ÆäËûÖµÎÞЧ

+ *  ÆäËû˵Ã÷    £º

+ *****************************************************************************/

+UINT32 zOss_GetVoltageChange (VOID);

+

+/*****************************************************************************

+ *  º¯ÊýÃû      : zOss_SetVoltageChange

+ *  ¹¦ÄÜ        £ºÉèÖõ±Ç°ÐͺŻúµ÷ѹ´óС

+ *  ÊäÈë²ÎÊý    £º

+                  #define USE_CHANGE_VOLTAGE_1150V_DEFAULT 0

+                  #define USE_CHANGE_VOLTAGE_1210V  1

+                  #define USE_CHANGE_VOLTAGE_1175V  2

+                  #define USE_CHANGE_VOLTAGE_1150V  3

+                  #define USE_CHANGE_VOLTAGE_1125V  4

+                  #define USE_CHANGE_VOLTAGE_1100V  5

+                  ÆäËûÖµÎÞЧ

+ *  Êä³ö²ÎÊý    £ºÎÞ

+ *  ·µ»ØÖµËµÃ÷  £ºZOSS_SUCCESS,ZOSS_ERROR

+ *  ÆäËû˵Ã÷    £ºÎÞ

+ *****************************************************************************/

+UINT32 zOss_SetVoltageChange(UINT32 voltage);

+

+/*****************************************************************************

+ *  º¯ÊýÃû      : zOss_GetEdgeSupportFlag()

+ *  ¹¦ÄÜ        : »ñÈ¡µ±Ç°Æ½Ì¨¶ÔEDGEµÄÖ§³ÖÇé¿ö

+ *  ÊäÈë²ÎÊý    £ºÎÞ

+ *  Êä³ö²ÎÊý    £ºÎÞ

+ *  ·µ»ØÖµËµÃ÷  £º

+                  #define USE_EDGE_SUPPORT_ENABLE   1

+                  #define USE_EDGE_SUPPORT_DISABLE  0

+                  ÆäËûÖµÎÞЧ

+ *  ÆäËû˵Ã÷    £º

+ *****************************************************************************/

+UINT32 zOss_GetEdgeSupportFlag (VOID);

+

+/*****************************************************************************

+ *  º¯ÊýÃû      : zOss_SetEdgeSupportFlag

+ *  ¹¦ÄÜ        £ºÉèÖõ±Ç°Æ½Ì¨¶ÔEDGEµÄÖ§³ÖÇé¿ö

+ *  ÊäÈë²ÎÊý    £º

+                  #define USE_EDGE_SUPPORT_ENABLE   1

+                  #define USE_EDGE_SUPPORT_DISABLE  0

+                  ÆäËûÖµÎÞЧ

+ *  Êä³ö²ÎÊý    £ºÎÞ

+ *  ·µ»ØÖµËµÃ÷  £ºZOSS_SUCCESS,ZOSS_ERROR

+ *  ÆäËû˵Ã÷    £ºÎÞ

+ *****************************************************************************/

+UINT32 zOss_SetEdgeSupportFlag(UINT32 edgeEnableFlag);

+

+/*****************************************************************************

+ *  º¯ÊýÃû      : zOss_GetAtChannel()

+ *  ¹¦ÄÜ        : »ñÈ¡atÃüÁîͨµÀÊÇUSB»¹ÊÇUART

+ *  ÊäÈë²ÎÊý    £ºÎÞ

+ *  Êä³ö²ÎÊý    £ºÎÞ

+ *  ·µ»ØÖµËµÃ÷  £º

+                  #define USE_AT_CHANNEL_USB   1

+                  #define USE_AT_CHANNEL_UART  0

+                  ÆäËûÖµÎÞЧ

+ *  ÆäËû˵Ã÷    £º

+ *****************************************************************************/

+UINT32 zOss_GetAtChannel (VOID);

+

+/*****************************************************************************

+ *  º¯ÊýÃû      : zOss_SetAtChannel

+ *  ¹¦ÄÜ        £ºÉèÖÃatÃüÁîͨµÀÊÇUSB»¹ÊÇUART

+ *  ÊäÈë²ÎÊý    £º

+                  #define USE_AT_CHANNEL_USB   1

+                  #define USE_AT_CHANNEL_UART  0

+                  ÆäËûÖµÎÞЧ

+ *  Êä³ö²ÎÊý    £ºÎÞ

+ *  ·µ»ØÖµËµÃ÷  £ºZOSS_SUCCESS,ZOSS_ERROR

+ *  ÆäËû˵Ã÷    £ºÎÞ

+ *****************************************************************************/

+UINT32 zOss_SetAtChannel(UINT32 atChannel);

+

+/*****************************************************************************

+ *  º¯ÊýÃû      : zOss_GetGprsMutiSlotFlag()

+ *  ¹¦ÄÜ        : »ñȡƽ̨ÊÇ·ñÖ§³ÖGPRS¶àʱ϶

+ *  ÊäÈë²ÎÊý    £ºÎÞ

+ *  Êä³ö²ÎÊý    £ºÎÞ

+ *  ·µ»ØÖµËµÃ÷  £º

+                  #define USE_GPRS_MULTISLOT_ENABLE   1

+                  #define USE_GPRS_MULTISLOT_DISABLE  0

+                  ÆäËûÖµÎÞЧ

+ *  ÆäËû˵Ã÷    £º

+ *****************************************************************************/

+UINT32 zOss_GetGprsMutiSlotFlag (VOID);

+

+/*****************************************************************************

+ *  º¯ÊýÃû      : zOss_SetGprsMutiSlotFlag

+ *  ¹¦ÄÜ        £ºÉèÖÃÆ½Ì¨ÊÇ·ñÖ§³ÖGPRS¶àʱ϶

+ *  ÊäÈë²ÎÊý    £º

+                  #define USE_GPRS_MULTISLOT_ENABLE   1

+                  #define USE_GPRS_MULTISLOT_DISABLE  0

+                  ÆäËûÖµÎÞЧ

+ *  Êä³ö²ÎÊý    £ºÎÞ

+ *  ·µ»ØÖµËµÃ÷  £ºZOSS_SUCCESS,ZOSS_ERROR

+ *  ÆäËû˵Ã÷    £ºÎÞ

+ *****************************************************************************/

+UINT32 zOss_SetGprsMutiSlotFlag(UINT32 gprsMutiSlotEnableFlag);

+

+/*****************************************************************************

+ *  º¯ÊýÃû      : zOss_GetEdgeMutiSlotFlag()

+ *  ¹¦ÄÜ        : »ñȡƽ̨ÊÇ·ñÖ§³ÖEDGE¶àʱ϶

+ *  ÊäÈë²ÎÊý    £ºÎÞ

+ *  Êä³ö²ÎÊý    £ºÎÞ

+ *  ·µ»ØÖµËµÃ÷  £º

+                  #define USE_EDGE_MULTISLOT_ENABLE   1

+                  #define USE_EDGE_MULTISLOT_DISABLE  0

+                  ÆäËûÖµÎÞЧ

+ *  ÆäËû˵Ã÷    £º

+ *****************************************************************************/

+UINT32 zOss_GetEdgeMutiSlotFlag (VOID);

+

+/*****************************************************************************

+ *  º¯ÊýÃû      : zOss_SetEdgeMutiSlotFlag

+ *  ¹¦ÄÜ        £ºÉèÖÃÆ½Ì¨ÊÇ·ñÖ§³ÖGPRS¶àʱ϶

+ *  ÊäÈë²ÎÊý    £º

+                  #define USE_EDGE_MULTISLOT_ENABLE   1

+                  #define USE_EDGE_MULTISLOT_DISABLE  0

+                  ÆäËûÖµÎÞЧ

+ *  Êä³ö²ÎÊý    £ºÎÞ

+ *  ·µ»ØÖµËµÃ÷  £ºZOSS_SUCCESS,ZOSS_ERROR

+ *  ÆäËû˵Ã÷    £ºÎÞ

+ *****************************************************************************/

+UINT32 zOss_SetEdgeMutiSlotFlag(UINT32 edgeMutiSlotEnableFlag);

+

+/*****************************************************************************

+ *  º¯ÊýÃû      : zOss_SetFreqBand24Support

+ *  ¹¦ÄÜ        £ºÉèÖÃÆ½Ì¨ÊÇ·ñÖ§³Ö2.4GƵ¶Î

+ *  ÊäÈë²ÎÊý    £º

+                  #define USE_24FREQ_BAND_SUPPORT   1

+                  #define USE_24FREQ_BAND_NOT_SUPPORT  0

+                  ÆäËûÖµÎÞЧ

+ *  Êä³ö²ÎÊý    £ºÎÞ

+ *  ·µ»ØÖµËµÃ÷  £ºZOSS_SUCCESS,ZOSS_ERROR

+ *  ÆäËû˵Ã÷    £ºÎÞ

+ *****************************************************************************/

+UINT32 zOss_SetFreqBand24Support(UINT32 freqBand24SupportFlag);

+

+/*****************************************************************************

+ *  º¯ÊýÃû      : zOss_GetFreqBand24Support

+ *  ¹¦ÄÜ        £º»ñȡƽ̨ÊÇ·ñÖ§³Ö2.4GƵ¶ÎÐÅÏ¢

+ *  ÊäÈë²ÎÊý    £ºÎÞ

+                  ÆäËûÖµÎÞЧ

+ *  Êä³ö²ÎÊý    £ºÎÞ

+ *  ·µ»ØÖµËµÃ÷  £º 

+                  #define USE_24FREQ_BAND_SUPPORT   1

+                  #define USE_24FREQ_BAND_NOT_SUPPORT  0

+ *  ÆäËû˵Ã÷    £ºÎÞ

+ *****************************************************************************/

+UINT32 zOss_GetFreqBand24Support(VOID);

+

+/*****************************************************************************

+ *  º¯ÊýÃû      : zOss_SetExceptResetCount

+ *  ¹¦ÄÜ        £ºÉèÖÃÒì³£ÖØÆô´ÎÊý

+ *  ÊäÈë²ÎÊý    £ºÎÞ

+ *  Êä³ö²ÎÊý    £ºÎÞ

+ *  ·µ»ØÖµËµÃ÷  £ºZOSS_SUCCESS,ZOSS_ERROR

+ *  ÆäËû˵Ã÷    £ºÔÚÿ´Î·¢ÉúÒì³£ÖØÆôµÄʱºòµ÷ÓÃÒ»´Î

+ *****************************************************************************/

+UINT32 zOss_SetExceptResetCount(VOID);

+

+/*****************************************************************************

+ *  º¯ÊýÃû      : zOss_GetExceptResetCount

+ *  ¹¦ÄÜ        £º»ñÈ¡Òì³£ÖØÆô´ÎÊý

+ *  ÊäÈë²ÎÊý    £ºÎÞ

+                  ÆäËûÖµÎÞЧ

+ *  Êä³ö²ÎÊý    £ºÎÞ

+ *  ·µ»ØÖµËµÃ÷  £ºÒì³£ÖØÆô´ÎÊý

+ *  ÆäËû˵Ã÷    £ºÎÞ

+ *****************************************************************************/

+UINT32 zOss_GetExceptResetCount(VOID);

+

+/*****************************************************************************

+ *  º¯ÊýÃû      : zOss_ReadPin

+ *  ¹¦ÄÜ        £º¶ÁÈ¡PINÂë

+ *  ÊäÈë²ÎÊý    £ºÎÞ

+ *  Êä³ö²ÎÊý    £º

+ *  ·µ»ØÖµËµÃ÷  £ºZOSS_SUCCESS,ZOSS_ERROR

+ *  ÆäËû˵Ã÷    £º

+ *****************************************************************************/

+UINT32 zOss_ReadPin(UINT32 *code);

+

+/*****************************************************************************

+ *  º¯ÊýÃû      : zOss_WritePin

+ *  ¹¦ÄÜ        £º±£´æµ±Ç°PINÂë

+ *  ÊäÈë²ÎÊý    £ºÊäÈëµÄPINÂë

+ *  Êä³ö²ÎÊý    £º

+ *  ·µ»ØÖµËµÃ÷  £ºZOSS_SUCCESS,ZOSS_ERROR

+ *  ÆäËû˵Ã÷    £º

+ *****************************************************************************/

+UINT32 zOss_WritePin(UINT32 *code);

+

+/*****************************************************************************

+ *  º¯ÊýÃû      : zOss_SetGsm3AThred

+ *  ¹¦ÄÜ        £ºÉèÖÃGSM 3aÃÅÏÞ´óС

+ *  ÊäÈë²ÎÊý    £ºGSM 3aÃÅÏÞ´óС

+ *  Êä³ö²ÎÊý    £ºÎÞ

+ *  ·µ»ØÖµËµÃ÷  £ºZOSS_SUCCESS,ZOSS_ERROR

+ *  ÆäËû˵Ã÷    3AÃÅÏÞÖÐGSMµÄÃÅÏÞ,b3AThredFlg=1ʱÓÐЧ¡£È¡Öµ·¶Î§0--63£¬ÕÛËã³ÉDBMʱÐèÒª-110

+ *****************************************************************************/

+UINT32 zOss_SetGsm3AThred(UINT32 gsm3AThred);

+

+/*****************************************************************************

+ *  º¯ÊýÃû      : zOss_GetGsm3AThred

+ *  ¹¦ÄÜ        £º»ñÈ¡3A±¨¸æÅоöʱGSMÄ¿±êÐ¡ÇøµÄ²âÁ¿¾ø¶ÔÖµ£¨Ð­ÒéÕ»ÊÕµ½ºóÐèÒª-110£©£»

+ *  ÊäÈë²ÎÊý    £ºÎÞ

+ *  Êä³ö²ÎÊý    £ºÎÞ

+ *  ·µ»ØÖµËµÃ÷  £ºGSM 3AÃÅÏÞ

+ *  ÆäËû˵Ã÷    £º3AÃÅÏÞÖÐGSMµÄÃÅÏÞ,b3AThredFlg=1ʱÓÐЧ¡£È¡Öµ·¶Î§0--63£¬ÕÛËã³ÉDBMʱÐèÒª-110

+ *****************************************************************************/

+UINT32 zOss_GetGsm3AThred(VOID);

+

+/*****************************************************************************

+ *  º¯ÊýÃû      : zOss_SetTd3AThred

+ *  ¹¦ÄÜ        £ºÉèÖÃtd 3aÃÅÏÞ´óС

+ *  ÊäÈë²ÎÊý    £ºtd 3aÃÅÏÞ´óС

+ *  Êä³ö²ÎÊý    £ºÎÞ

+ *  ·µ»ØÖµËµÃ÷  £ºZOSS_SUCCESS,ZOSS_ERROR

+ *  ÆäËû˵Ã÷    : 3AÃÅÏÞÖÐTDµÄÃÅÏÞ,b3AThredFlg=1ʱÓÐЧ¡£È¡Öµ·¶Î§0--91£¬ÕÛËã³ÉDBMʱÐèÒª-121 

+ *****************************************************************************/

+UINT32 zOss_SetTd3AThred(UINT32 td3AThred);

+

+/*****************************************************************************

+ *  º¯ÊýÃû      : zOss_GetTd3AThred

+ *  ¹¦ÄÜ        £º»ñÈ¡3A±¨¸æÅоöʱTD·þÎñÐ¡ÇøµÄ²âÁ¿¾ø¶ÔÖµ£¨Ð­ÒéÕ»ÊÕµ½ºóÐèÒª-120£©£»

+ *  ÊäÈë²ÎÊý    £ºÎÞ

+ *  Êä³ö²ÎÊý    £ºÎÞ

+ *  ·µ»ØÖµËµÃ÷  £ºtd 3aÃÅÏÞ

+ *  ÆäËû˵Ã÷    £º3AÃÅÏÞÖÐTDµÄÃÅÏÞ,b3AThredFlg=1ʱÓÐЧ¡£È¡Öµ·¶Î§0--91£¬ÕÛËã³ÉDBMʱÐèÒª-121

+ *****************************************************************************/

+UINT32 zOss_GetTd3AThred(VOID);

+

+/*****************************************************************************

+ *  º¯ÊýÃû      : zOss_SetTdThredOff

+ *  ¹¦ÄÜ        £ºÉèÖÃtdÅоöÆ«ÒÆ

+ *  ÊäÈë²ÎÊý    £ºtdÅоöÆ«ÒÆ

+ *  Êä³ö²ÎÊý    £ºÎÞ

+ *  ·µ»ØÖµËµÃ÷  £ºZOSS_SUCCESS,ZOSS_ERROR

+ *  ÆäËû˵Ã÷    : GSMÖ÷ÖÆÊ½Ï£¬TDÐ¡ÇøÖØÑ¡ÅоöÃÅÏÞÆ«ÒÆ£¬È¡Öµ0- 10£¬TDÏà¶ÔÃÅÏÞ = £¨Íø²àÏ·¢µÄÃÅÏÞ£¨ÕÛËãµ½DBMºó£©+bTdTredOff£©£¨DBM£©

+ *****************************************************************************/

+UINT32 zOss_SetTdThredOff(UINT32 tdThredOff);

+

+/*****************************************************************************

+ *  º¯ÊýÃû      : zOss_GetTdThredOff

+ *  ¹¦ÄÜ        £º»ñÈ¡GSMÏòTDÖØÑ¡ÆÀ¹ÀʱµÄÓû§ÉèÖò¹³¥Öµ£¬0¼´±íʾ²»²¹³¥¡£

+ *  ÊäÈë²ÎÊý    £ºÎÞ

+ *  Êä³ö²ÎÊý    £ºÎÞ

+ *  ·µ»ØÖµËµÃ÷  £ºtdÅоöÆ«ÒÆ

+ *  ÆäËû˵Ã÷    £º GSMÖ÷ÖÆÊ½Ï£¬TDÐ¡ÇøÖØÑ¡ÅоöÃÅÏÞÆ«ÒÆ£¬È¡Öµ0- 10£¬TDÏà¶ÔÃÅÏÞ = £¨Íø²àÏ·¢µÄÃÅÏÞ£¨ÕÛËãµ½DBMºó£©+bTdTredOff£©£¨DBM£©

+ *****************************************************************************/

+UINT8 zOss_GetTdThredOff(VOID);

+

+/*****************************************************************************

+ *  º¯ÊýÃû      : zOss_Set3AThredValidFlag

+ *  ¹¦ÄÜ        £ºÉèÖÃ3aÃÅÏÞÊÇ·ñÓÐЧ

+ *  ÊäÈë²ÎÊý    £º0,1 ÊÇ·ñÓÐЧֵ

+ *  Êä³ö²ÎÊý    £º

+ *  ·µ»ØÖµËµÃ÷  £ºZOSS_SUCCESS,ZOSS_ERROR

+ *  ÆäËû˵Ã÷    ATÉèÖõÄ3AÃÅÏÞÊÇ·ñÓÐЧ£¬1±íʾÓÐЧ£¬´ËʱºöÂÔÕæÊµÍø²àÏ·¢µÄÃÅÏÞ¡£0±íʾÎÞЧ£¬ATÏ·¢ÃÅÏÞÎÞЧ²ÉÓÃÍø²àÏ·¢ÃÅÏÞ

+ *****************************************************************************/

+UINT32 zOss_Set3AThredValidFlag(UINT32 isValid);

+

+/*****************************************************************************

+ *  º¯ÊýÃû      : zOss_Get3AThredValidFlag

+ *  ¹¦ÄÜ        £º±êʶÓû§ÉèÖõÄ3A±¨¸æÅоöÃÅÏÞÊÇ·ñÓÐЧ£¬1±íʾÓÐЧ£¬0±íʾÎÞЧ£»

+ *  ÊäÈë²ÎÊý    £ºÎÞ

+ *  Êä³ö²ÎÊý    £ºÎÞ

+ *  ·µ»ØÖµËµÃ÷  £ºtdÅоöÆ«ÒÆ

+ *  ÆäËû˵Ã÷    £ºATÉèÖõÄ3AÃÅÏÞÊÇ·ñÓÐЧ£¬1±íʾÓÐЧ£¬´ËʱºöÂÔÕæÊµÍø²àÏ·¢µÄÃÅÏÞ¡£0±íʾÎÞЧ£¬ATÏ·¢ÃÅÏÞÎÞЧ²ÉÓÃÍø²àÏ·¢ÃÅÏÞ

+ *****************************************************************************/

+UINT32 zOss_Get3AThredValidFlag(VOID);

+

+/*****************************************************************************

+ *  º¯ÊýÃû      : zOss_SetIgnoreSecurityFlag

+ *  ¹¦ÄÜ        £ºÉèÖúöÂÔÍêÕûÐÔ±£»¤±ê־λ

+ *  ÊäÈë²ÎÊý    £º0,1 ÊÇ·ñÓÐЧֵ

+ *  Êä³ö²ÎÊý    £º

+ *  ·µ»ØÖµËµÃ÷  £ºZOSS_SUCCESS,ZOSS_ERROR

+ *  ÆäËû˵Ã÷    

+ *****************************************************************************/

+UINT32 zOss_SetIgnoreSecurityFlag(UINT32 flag); 

+

+/*****************************************************************************

+ *  º¯ÊýÃû      : zOss_GetIgnoreSecurityFlag

+ *  ¹¦ÄÜ        £º»ñÈ¡ºöÂÔÍêÕûÐÔ±£»¤±ê־λ

+ *  ÊäÈë²ÎÊý    £ºÎÞ

+ *  Êä³ö²ÎÊý    £ºÎÞ

+ *  ·µ»ØÖµËµÃ÷  £ººöÂÔÍêÕûÐÔ±£»¤±ê־λ

+ *  ÆäËû˵Ã÷    £º

+ *****************************************************************************/

+UINT32 zOss_GetIgnoreSecurityFlag(VOID); 

+

+/*****************************************************************************

+ *  º¯ÊýÃû      : zOss_SetMemLeakCheckFlag

+ *  ¹¦ÄÜ        £ºÉèÖÃÄÚ´æÐ¹Â¶¼ì²é±ê־λ

+ *  ÊäÈë²ÎÊý    £º#define USE_MEM_LEAK_CHECK_SUPPORT     1

+ *                #define USE_MEM_LEAK_CHECK_NOT_SUPPORT 0

+ *  Êä³ö²ÎÊý    £º

+ *  ·µ»ØÖµËµÃ÷  £ºZOSS_SUCCESS,ZOSS_ERROR

+ *  ÆäËû˵Ã÷    

+ *****************************************************************************/

+UINT32 zOss_SetMemLeakCheckFlag(UINT32 flag); 

+

+/*****************************************************************************

+ *  º¯ÊýÃû      : zOss_GetMemLeakCheckFlag

+ *  ¹¦ÄÜ        £º»ñÈ¡ÄÚ´æÐ¹Â¶¼ì²é±ê־λ

+ *  ÊäÈë²ÎÊý    £ºÎÞ

+ *  Êä³ö²ÎÊý    £ºÎÞ

+ *  ·µ»ØÖµËµÃ÷  £º#define USE_MEM_LEAK_CHECK_SUPPORT     1

+ *                #define USE_MEM_LEAK_CHECK_NOT_SUPPORT 0

+ *  ÆäËû˵Ã÷    £º

+ *****************************************************************************/

+UINT32 zOss_GetMemLeakCheckFlag(VOID); 

+

+/*****************************************************************************

+ *  º¯ÊýÃû      : zOss_SetLteFlagInfo

+ *  ¹¦ÄÜ        £ºÉèÖÃLTE¶¨ÖÆÐÅÏ¢

+ *  ÊäÈë²ÎÊý    £º

+ *  Êä³ö²ÎÊý    £º

+ *  ·µ»ØÖµËµÃ÷  £ºZOSS_SUCCESS,ZOSS_ERROR

+ *  ÆäËû˵Ã÷    

+ *****************************************************************************/

+UINT32 zOss_SetLteFlagInfo(UINT32 flag); 

+

+/*****************************************************************************

+ *  º¯ÊýÃû      : zOss_GetLteFlagInfo

+ *  ¹¦ÄÜ        £º»ñÈ¡LTE¶¨ÖÆÐÅÏ¢

+ *  ÊäÈë²ÎÊý    £ºÎÞ

+ *  Êä³ö²ÎÊý    £ºÎÞ

+ *  ·µ»ØÖµËµÃ÷  £ºLTE¶¨ÖÆÐÅÏ¢

+ *  ÆäËû˵Ã÷    £º

+ *****************************************************************************/

+UINT32 zOss_GetLteFlagInfo(VOID); 

+

+

+/*****************************************************************************

+ *  º¯ÊýÃû      : zOss_SetUeType

+ *  ¹¦ÄÜ        £ºÉèÖÃPbCrsmÊÇ·ñʹÓýӿÚ

+ *  ÊäÈë²ÎÊý    £º

+ *  Êä³ö²ÎÊý    £º

+ *  ·µ»ØÖµËµÃ÷  £ºZOSS_SUCCESS,ZOSS_ERROR

+ *  ÆäËû˵Ã÷    

+ *****************************************************************************/

+UINT32 zOss_SetUeType(UINT32 flag); 

+

+/*****************************************************************************

+ *  º¯ÊýÃû      : zOss_GetUeType

+ *  ¹¦ÄÜ        £º»ñÈ¡PbCrsmÊÇ·ñʹÓýӿÚ

+ *  ÊäÈë²ÎÊý    £ºÎÞ

+ *  Êä³ö²ÎÊý    £ºÎÞ

+ *  ·µ»ØÖµËµÃ÷  £º1±íʾʹÓã¬0±íʾ²»Ê¹ÓÃ

+ *  ÆäËû˵Ã÷    £º

+ *****************************************************************************/

+UINT32 zOss_GetUeType(VOID); 

+

+/*****************************************************************************

+ *  º¯ÊýÃû      : zOss_SetQosRelease

+ *  ¹¦ÄÜ        £ºÉèÖÃQOS°æ±¾

+ *  ÊäÈë²ÎÊý    £º

+ *  Êä³ö²ÎÊý    £º

+ *  ·µ»ØÖµËµÃ÷  £ºZOSS_SUCCESS,ZOSS_ERROR

+ *  ÆäËû˵Ã÷    

+ *****************************************************************************/

+UINT32 zOss_SetQosRelease(UINT32 qosRelease); 

+

+/*****************************************************************************

+ *  º¯ÊýÃû      : zOss_GetQosRelease

+ *  ¹¦ÄÜ        £º»ñÈ¡QOS°æ±¾

+ *  ÊäÈë²ÎÊý    £ºÎÞ

+ *  Êä³ö²ÎÊý    £ºÎÞ

+ *  ·µ»ØÖµËµÃ÷  £º

+#define USE_QOS_VERSION_R4  0

+#define USE_QOS_VERSION_R5  1

+#define USE_QOS_VERSION_R6  2

+#define USE_QOS_VERSION_R7  3

+#define USE_QOS_VERSION_R8  4

+#define USE_QOS_VERSION_R9  5

+ *  ÆäËû˵Ã÷    £º

+ *****************************************************************************/

+UINT8 zOss_GetQosRelease(VOID); 

+

+/*****************************************************************************

+ *  º¯ÊýÃû      : zOss_SetUePsLteRelease

+ *  ¹¦ÄÜ        £ºÉèÖÃlte°æ±¾

+ *  ÊäÈë²ÎÊý    £º

+ *  Êä³ö²ÎÊý    £º

+ *  ·µ»ØÖµËµÃ÷  £ºZOSS_SUCCESS,ZOSS_ERROR

+ *  ÆäËû˵Ã÷    

+ *****************************************************************************/

+UINT32 zOss_SetUePsLteRelease(UINT32 lteRelease); 

+

+/*****************************************************************************

+ *  º¯ÊýÃû      : zOss_GetUePsLteRelease

+ *  ¹¦ÄÜ        £º»ñÈ¡lte°æ±¾

+ *  ÊäÈë²ÎÊý    £ºÎÞ

+ *  Êä³ö²ÎÊý    £ºÎÞ

+ *  ·µ»ØÖµËµÃ÷  £º

+#define USE_PS_LTE_RELEASE_R8  0

+#define USE_PS_LTE_RELEASE_R9  1

+ *  ÆäËû˵Ã÷    £º

+ *****************************************************************************/

+UINT8 zOss_GetUePsLteRelease(VOID); 

+

+/*****************************************************************************

+ *  º¯ÊýÃû      : zOss_SetUeCmccFlag

+ *  ¹¦ÄÜ        £ºÉèÖÃÊÇ·ñÖ§³ÖÖÐÒÆ¶¯¶¨ÖÆ

+ *  ÊäÈë²ÎÊý    £º

+#define USE_CMCC_INVALID  0

+#define USE_CMCC_VALID  1

+ *  Êä³ö²ÎÊý    £º

+ *  ·µ»ØÖµËµÃ÷  £ºZOSS_SUCCESS,ZOSS_ERROR

+ *  ÆäËû˵Ã÷    

+ *****************************************************************************/

+UINT32 zOss_SetUeCmccFlag(UINT32 flag); 

+

+/*****************************************************************************

+ *  º¯ÊýÃû      : zOss_GetUeCmccFlag

+ *  ¹¦ÄÜ        £º»ñÈ¡ÊÇ·ñÖ§³ÖÖÐÒÆ¶¯¶¨ÖÆ

+ *  ÊäÈë²ÎÊý    £ºÎÞ

+ *  Êä³ö²ÎÊý    £ºÎÞ

+ *  ·µ»ØÖµËµÃ÷  £º

+#define USE_CMCC_INVALID  0

+#define USE_CMCC_VALID  1

+ *  ÆäËû˵Ã÷    £º

+ *****************************************************************************/

+UINT8 zOss_GetUeCmccFlag(VOID); 

+

+/*****************************************************************************

+ *  º¯ÊýÃû      : zOss_SetStandbyCfg

+ *  ¹¦ÄÜ        £ºµ¥Ë«´ýÇл»µÄÅäÖõÄATÃüÁîÓëÅäÖÃÐÅÏ¢

+ *  ÊäÈë²ÎÊý    £º

+#define USE_STANDBY_CFG_SINGLE  0

+#define USE_STANDBY_CFG_DOUBLE  1

+     0£ºµ¥´ý°æ±¾£¨Ä¬ÈÏÖµ£©

+     1£ºÖÐÒÆË«´ý°æ±¾ÐèÇó2£ºLTE/TD + GSM

+     ÆäËû£º±£ÁôÖµ

+     ÉèÖÃ0¡¢1£¬·µ»ØÖµ£ºOK

+     ÉèÖÃÆäËûÖµ£¬·µ»Ø£ºCME ERROR

+ *  Êä³ö²ÎÊý    £º

+ *  ·µ»ØÖµËµÃ÷  £ºZOSS_SUCCESS,ZOSS_ERROR

+ *  ÆäËû˵Ã÷    

+ *****************************************************************************/

+UINT32 zOss_SetStandbyCfg(UINT32 StandbyCfg); 

+

+/*****************************************************************************

+ *  º¯ÊýÃû      : zOss_GetStandbyCfg

+ *  ¹¦ÄÜ        £º»ñÈ¡µ¥Ë«´ýÇл»µÄÅäÖõÄATÃüÁîÓëÅäÖÃÐÅÏ¢

+ *  ÊäÈë²ÎÊý    £ºÎÞ

+ *  Êä³ö²ÎÊý    £ºÎÞ

+ *  ·µ»ØÖµËµÃ÷  £ºµ¥Ë«´ýÇл»µÄÅäÖõÄATÃüÁîÓëÅäÖÃÐÅÏ¢

+ *  ÆäËû˵Ã÷    £ºË«´ý°æ±¾ÐèÇó2£¬LTE/TDÊÇЭÒéÕ»1£¬GSMÊÇЭÒéÕ»2¡£´ËÌõÇëʹÓÃATÃüÁîµÄÄ£¿é¹Ø×¢£¬ÉèÖÃÔÚCP¹Ø»úÔÙÆô¶¯Ê±ÉúЧ

+ *****************************************************************************/

+UINT32 zOss_GetStandbyCfg(VOID); 

+

+/*****************************************************************************

+ *  º¯ÊýÃû      : zOss_SetTdDrxExpansion

+ *  ¹¦ÄÜ        £ºÉèÖáTDÏÂDRXÖÜÆÚÀ©´ó²ÎÊý

+ *  ÊäÈë²ÎÊý    £ºÎÞ

+ *  Êä³ö²ÎÊý    £º0: ²»À©´ó1: 2.56S ÒÔϵÄDRX À©´ó1±¶

+ *  ·µ»ØÖµËµÃ÷  £ºZOSS_SUCCESS,ZOSS_ERROR

+

+ *  ÆäËû˵Ã÷    £º

+ *****************************************************************************/

+UINT32 zOss_SetTdDrxExpansion(UINT32 flag);

+

+/*****************************************************************************

+ *  º¯ÊýÃû      : zOss_GetTdDrxExpansion

+ *  ¹¦ÄÜ        £º»ñÈ¡TDÏÂDRXÖÜÆÚÀ©´ó²ÎÊý

+ *  ÊäÈë²ÎÊý    £ºÎÞ

+ *  Êä³ö²ÎÊý    £ºÎÞ

+ *  ·µ»ØÖµËµÃ÷  £º0: ²»À©´ó1: À©´ó1±¶

+

+ *  ÆäËû˵Ã÷    £º

+ *****************************************************************************/

+UINT8 zOss_GetTdDrxExpansion(VOID);

+

+/*****************************************************************************

+ *  º¯ÊýÃû      : zOss_SetManualSearchCfg

+ *  ¹¦ÄÜ        £ºÉèÖÃÊÖ¶¯Ñ¡ÍøÄ£Ê½

+ *  ÊäÈë²ÎÊý    £ºÎÞ

+ *  Êä³ö²ÎÊý    £º

+ *  ·µ»ØÖµËµÃ÷  £ºZOSS_SUCCESS,ZOSS_ERROR

+

+ *  ÆäËû˵Ã÷    £º

+ *****************************************************************************/

+UINT32 zOss_SetManualSearchCfg(UINT32 flag);

+

+/*****************************************************************************

+ *  º¯ÊýÃû      : zOss_GetManualSearchCfg

+ *  ¹¦ÄÜ        £º»ñÈ¡ÊÖ¶¯Ñ¡ÍøÄ£Ê½

+ *  ÊäÈë²ÎÊý    £ºÎÞ

+ *  Êä³ö²ÎÊý    £ºÎÞ

+ *  ·µ»ØÖµËµÃ÷  £º

+

+ *  ÆäËû˵Ã÷    £º

+ *****************************************************************************/

+UINT8 zOss_GetManualSearchCfg(VOID);

+

+/****************************************************************** 

+ *  º¯ÊýÃû      : zSys_GetNVCmdValue

+ *  ¹¦ÄÜ        £º»ñÈ¡AT¸÷×Ö¶ÎÖµ

+ *  ÊäÈë²ÎÊý    £ºATÃüÁî¶ÔÓ¦µÄË÷ÒýÄÚÈÝ

+ *  Êä³ö²ÎÊý    £ºÎÞ

+ *  ·µ»ØÖµËµÃ÷  £º×Ö¶ÎÄÚÈÝ

+ *  ÆäËû˵Ã÷    £º

+ *****************************************************************************/

+

+UINT32 zSys_GetNVCmdValue(const CHAR* cmd);

+UINT8 zOss_GetLockSimcardFlag(VOID);

+UINT32 zOss_SetLockSimcardFlag(UINT32 flag);

+UINT32 zOss_SetRamdumpResetFlag(UINT32 flag);

+UINT32 zOss_GetRamdumpResetFlag(VOID);

+UINT32 zOss_SetIsimFlg(UINT32 flag);

+UINT8 zOss_GetIsimFlag(VOID);

+UINT32 zOss_SetWTebsThreshold(UINT32 value);

+UINT8 zOss_GetWTebsThreshold(VOID);

+UINT32 zOss_SetLteBsrThreshold(UINT32 value);

+UINT8 zOss_GetLteBsrThreshold(VOID);

+UINT32 zOss_SetActPriorityFlag(UINT32 flag);

+UINT8 zOss_GetActPriorityFlg(VOID);

+UINT32 zOss_SetUsatSupportFlag(UINT32 flag);

+UINT32 zOss_GetUsatSupportFlag(VOID);

+

+UINT32 zOss_SetCsiupInfo(UINT16 param1,  UINT16 param2,UINT16 flg1,UINT16 flg2);

+CommAtCfgCmdParam zOss_GetCsiupInfo(VOID);

+UINT32 zOss_SetCsrhobandIFlagnfo(UINT16 param1,  UINT16 param2,UINT16 param3,UINT16 param4,UINT16 flg1,UINT16 flg2,UINT16 flg3,UINT16 flg4);

+CommAtCfgCmdParam zOss_GetCsrHandoverFlagInfo(VOID);

+UINT32 zOss_SetDlparaflgInfo(UINT16 param1,  UINT16 param2,UINT16 flg1,UINT16 flg2);

+CommAtCfgCmdParam zOss_GetDlparaflgInfo(VOID);

+UINT32 zOss_SetUlparafixtamodeInfo(UINT16 param1, UINT16 param2, UINT16 flg1, UINT16 flg2);

+CommAtCfgCmdParam zOss_GetUlparafixtamodeInfo(VOID);

+UINT32 zOss_Set711StubFlgInfo(UINT16 param1,  UINT16 param2, UINT16 flg1, UINT16 flg2);

+CommAtCfgCmdParam zOss_Get711StubFlgInfo(VOID);

+UINT32 zOss_SetCsrPssBinFlgInfo(UINT16 param1,  UINT16 param2,UINT16 param3,UINT16 param4,UINT16 flg1,UINT16 flg2,UINT16 flg3,UINT16 flg4);

+CommAtCfgCmdParam zOss_GetCsrPssBinFlgInfo(VOID);

+UINT32 zOss_SetCsiIotFlgInfo(UINT16 param1, UINT16 param2, UINT16 flg1, UINT16 flg2);

+CommAtCfgCmdParam zOss_GetCsiIotFlgInfo(VOID);

+UINT32 zOss_SetWInstrumentInfo(UINT16 param1,  UINT16 param2,UINT16 param3,UINT16 param4,UINT16 flg1,UINT16 flg2,UINT16 flg3,UINT16 flg4);

+CommAtCfgCmdParam zOss_GetWInstrumentInfo(VOID);

+UINT32 zOss_SetWPhyfuncInfo(UINT16 param1,  UINT16 param2,UINT16 param3,UINT16 param4,UINT16 flg1,UINT16 flg2,UINT16 flg3,UINT16 flg4);

+CommAtCfgCmdParam zOss_GetWPhyfuncInfo(VOID);

+UINT32 zOss_SetTdsInstrumentInfo(UINT16 param1,  UINT16 param2,UINT16 param3,UINT16 param4,UINT16 flg1,UINT16 flg2,UINT16 flg3,UINT16 flg4);

+CommAtCfgCmdParam zOss_GetTdsInstrumentInfo(VOID);

+UINT32 zOss_SetTdsPhyfuncInfo(UINT16 param1,  UINT16 param2,UINT16 param3,UINT16 param4,UINT16 flg1,UINT16 flg2,UINT16 flg3,UINT16 flg4);

+CommAtCfgCmdParam zOss_GetTdsPhyfuncInfo(VOID);

+UINT32 zOss_SetComPhyfuncInfo(UINT16 param1,UINT16 param2,UINT16 param3,UINT16 param4, UINT16 flg1, UINT16 flg2, UINT16 flg3,UINT16 flg4);

+CommAtCfgCmdParam zOss_GetCom_phyfuncValue(VOID);

+UINT32 zOss_SetRfcParaCfg(UINT16 param1, UINT16 param2, UINT16 param3, UINT16 param4,UINT16 flg1, UINT16 flg2, UINT16 flg3, UINT16 flg4);

+CommAtCfgCmdParam zOss_GetRfcParaCfg(VOID);

+UINT32 zOss_SetUlpowerAdapter(UINT16 param1, UINT16 param2, UINT16 flg1, UINT16 flg2);

+CommAtCfgCmdParam zOss_GetUlpowerAdapter(VOID);

+

+UINT32 zOss_SetTerminalProfileFlag(UINT32 param1, UINT32 param2, 

+    UINT32 param3,UINT32 param4,UINT32 param5,UINT32 param6,UINT32 param7,UINT32 param8);

+

+CommAtCfgCmdParam zOss_GetTerminalProfileFlag(VOID);

+/************************************************************************

+*º¯ÊýÃû³Æ:zOss_SetIsUseImsiFlg

+*º¯Êý¹¦ÄÜ:ÉèÖÃÊÇ·ñÔÚPS attachºÍCSÓò×¢²áʱֱ½ÓʹÓÃIMSI

+*²ÎÊý˵Ã÷:0 ²»Ê¹ÓÃ1ʹÓÃ

+************************************************************************/

+UINT32 zOss_SetIsUseImsiFlg(UINT32 flag);

+

+/**********************************************************************

+*º¯ÊýÃû³Æ:zOss_GetIsUseImsiFlg

+*º¯Êý¹¦ÄÜ:»ñÈ¡ÊÇ·ñÔÚPS attachºÍCSÓò×¢²áʱֱ½ÓʹÓÃIMSI

+*²ÎÊý˵Ã÷:0 ²»Ê¹ÓÃ1ʹÓÃ

+**********************************************************************/

+UINT8 zOss_GetIsUseImsiFlg(VOID);

+

+UINT16 zOss_GetLteLimitedBsrStart(VOID);

+UINT16 zOss_GetLteLimitedBsrMin(VOID);

+UINT16 zOss_GetLteLimitedBsrStep(VOID);

+UINT16 zOss_GetLteLimitedBsrTimerLen(VOID);

+UINT32 zOss_LteBsrCfgSet(CommAtCfgCmdParam * cmdParm);

+UINT32 zOss_SetLteTemperatureControl(CommAtCfgCmdParam * cmdParm, BYTE bIndx);

+VOID zOss_GetLteTemperatureControl(CommAtCfgCmdParam * cmdParm, BYTE bIndx);

+/************************************************

+*º¯ÊýÃû³Æ:zOss_SetPppEchoSupportFlag

+*º¯Êý¹¦ÄÜ:ÉèÖÃÊÇ·ñÖ§³Ö·¢ËÍPpp Echo Request

+*ȡֵ˵Ã÷:0 ²»Ö§³Ö·¢ËÍ1Ö§³Ö·¢ËÍ

+************************************************/

+UINT32 zOss_SetPppEchoSupportFlag(UINT8 flag);

+

+/***************************************************************************

+*º¯ÊýÃû³Æ:zOss_GetPppEchoSupportFlag

+*º¯Êý¹¦ÄÜ:»ñÈ¡ÊÇ·ñÖ§³Ö·¢ËÍPpp Echo RequestµÄ±ê־λ

+*·µ»ØÖµËµÃ÷:0 ²»Ö§³Ö·¢ËÍ1Ö§³Ö·¢ËÍ

+***************************************************************************/

+UINT8 zOss_GetPppEchoSupportFlag(VOID);

+

+/************************************************

+*º¯ÊýÃû³Æ:zOss_SetPbType

+*º¯Êý¹¦ÄÜ:ÉèÖõ绰±¾ÀàÐÍ

+*ȡֵ˵Ã÷:0 ÆÕͨµç»°±¾1¼ò»¯µç»°±¾

+************************************************/

+UINT32 zOss_SetPbType(UINT8 flag);

+

+/***************************************************************************

+*º¯ÊýÃû³Æ:zOss_GetPbType

+*º¯Êý¹¦ÄÜ:»ñÈ¡µç»°±¾ÀàÐÍ

+*·µ»ØÖµËµÃ÷:0 ÆÕͨµç»°±¾1¼ò»¯µç»°±¾

+***************************************************************************/

+UINT8 zOss_GetPbType(VOID);

+

+UINT32 zOss_SetGsmOtaTestFlag(UINT8 flag);

+UINT8 zOss_GetGsmOtaTestFlag(VOID);

+

+UINT32 zOss_SetPppPcoAuthFlag(UINT8 flag);

+UINT8 zOss_GetPppPcoAuthFlag(VOID);

+

+/************************************************************************

+*º¯ÊýÃû³Æ:zOss_LteSetSValueOffset

+*º¯Êý¹¦ÄÜ:ÉèÖÃLTE·þÎñÐ¡ÇøSÖµÆ«ÒÆºÍÁÚÇøSÖµÆ«ÒÆ

+*²ÎÊý˵Ã÷:param1:·þÎñÐ¡ÇøSÖµÆ«ÒÆ£¬flg1:param1ÊÇ·ñÓÐЧ

+*                       param2:ÁÚÇøSÖµÆ«ÒÆ£¬flg2:param2ÊÇ·ñÓÐЧ

+************************************************************************/

+UINT32 zOss_LteSetSValueOffset(UINT8 param1, UINT8 param2, UINT8 flg1, UINT8 flg2);

+

+/**********************************************************************

+*º¯ÊýÃû³Æ:zOss_LteGetSValueOffset

+*º¯Êý¹¦ÄÜ:»ñÈ¡Ð¡ÇøSÖµÆ«ÒÆ

+*²ÎÊý˵Ã÷:bCellFlg: 0±íʾ·þÎñÐ¡Çø£¬1±íʾÁÚÐ¡Çø£¬·µ»ØÖµ0 -30

+**********************************************************************/

+UINT8 zOss_LteGetSValueOffset(UINT8 bCellFlg);

+

+/************************************************************************

+*º¯ÊýÃû³Æ:zOss_WSetSValueOffset

+*º¯Êý¹¦ÄÜ:ÉèÖÃW·þÎñÐ¡ÇøSÖµÆ«ÒÆºÍÁÚÇøSÖµÆ«ÒÆ

+*²ÎÊý˵Ã÷:param1:·þÎñÐ¡ÇøSÖµÆ«ÒÆ£¬flg1:param1ÊÇ·ñÓÐЧ

+*                       param2:ÁÚÇøSÖµÆ«ÒÆ£¬flg2:param2ÊÇ·ñÓÐЧ

+************************************************************************/

+UINT32 zOss_WSetSValueOffset(UINT8 param1, UINT8 param2, UINT8 flg1, UINT8 flg2);

+

+/**********************************************************************

+*º¯ÊýÃû³Æ:zOss_WGetSValueOffset

+*º¯Êý¹¦ÄÜ:»ñÈ¡Ð¡ÇøSÖµÆ«ÒÆ

+*²ÎÊý˵Ã÷:bCellFlg: 0±íʾ·þÎñÐ¡Çø£¬1±íʾÁÚÐ¡Çø£¬·µ»ØÖµ0 -30

+**********************************************************************/

+UINT8 zOss_WGetSValueOffset(UINT8 bCellFlg);

+

+/************************************************************************

+*º¯ÊýÃû³Æ:zOss_TDSetSValueOffset

+*º¯Êý¹¦ÄÜ:ÉèÖÃTD·þÎñÐ¡ÇøSÖµÆ«ÒÆºÍÁÚÇøSÖµÆ«ÒÆ

+*²ÎÊý˵Ã÷:param1:·þÎñÐ¡ÇøSÖµÆ«ÒÆ£¬flg1:param1ÊÇ·ñÓÐЧ

+*                       param2:ÁÚÇøSÖµÆ«ÒÆ£¬flg2:param2ÊÇ·ñÓÐЧ

+************************************************************************/

+UINT32 zOss_TDSetSValueOffset(UINT8 param1, UINT8 param2, UINT8 flg1, UINT8 flg2);

+

+/**********************************************************************

+*º¯ÊýÃû³Æ:zOss_TDGetSValueOffset

+*º¯Êý¹¦ÄÜ:»ñÈ¡Ð¡ÇøSÖµÆ«ÒÆ

+*²ÎÊý˵Ã÷:bCellFlg: 0±íʾ·þÎñÐ¡Çø£¬1±íʾÁÚÐ¡Çø£¬·µ»ØÖµ0 -30

+**********************************************************************/

+UINT8 zOss_TDGetSValueOffset(UINT8 bCellFlg);

+

+/************************************************************************

+*º¯ÊýÃû³Æ:zOss_GsmSetSValueOffset

+*º¯Êý¹¦ÄÜ:ÉèÖÃGsm·þÎñÐ¡ÇøSÖµÆ«ÒÆ

+*²ÎÊý˵Ã÷:param1:·þÎñÐ¡ÇøSÖµÆ«ÒÆ£¬

+************************************************************************/

+UINT32 zOss_GsmSetSValueOffset(UINT8 param1);

+

+/**********************************************************************

+*º¯ÊýÃû³Æ:zOss_GsmGetSValueOffset

+*º¯Êý¹¦ÄÜ:»ñÈ¡·þÎñÐ¡ÇøSÖµÆ«ÒÆ

+*²ÎÊý˵Ã÷:·µ»ØÖµ0 -30

+**********************************************************************/

+UINT8 zOss_GsmGetSValueOffset(VOID);

+

+UINT32 zOss_SetInterruptAssertTest(UINT8 bMode, UINT32 wAssertNum);

+UINT16 zOss_GetInterruptAssertNum(VOID);

+

+UINT32 zOss_SetUmm15CauseProcFlag(UINT8 flag);

+UINT8 zOss_GetUmm15CauseProcFlag(VOID);

+

+UINT32 zOss_SetPollFlag(UINT8 flag);

+UINT8 zOss_GetPollFlag(VOID);

+

+UINT32 zOss_SetPppAccm(UINT32 accm);

+UINT32 zOss_GetPppAccm(VOID);

+

+UINT32 zOss_SetExceptProc(UINT8 flag);

+UINT8 zOss_GetExceptProc(VOID);

+

+UINT32 zOss_SetIntrThreadTraceFlag(UINT8 flag);

+UINT8 zOss_GetIntrThreadTraceFlag(VOID);

+

+UINT32 zOss_SetVsimSupport(UINT8 flag);

+UINT8 zOss_GetVsimSupport(VOID);

+

+UINT32 zOss_SetAirAuthFlag(UINT8 flag);

+UINT8 zOss_GetAirAuthFlag(VOID);

+

+UINT32 zOss_SetEl2StartEgy(UINT32 el2startegy);

+UINT32 zOss_GetEl2StartEgy(VOID);

+

+UINT32 zOss_SetOpenVoiceChnel(UINT8 flag);

+UINT8 zOss_GetOpenVoiceChnel(VOID);

+

+UINT32 zOss_SetRemoteSimSupport(UINT8 flag);

+UINT8 zOss_GetRemoteSimSupport(VOID);

+

+UINT32 zOss_SetIgnorePppAuthFlag(UINT8 flag);

+UINT8 zOss_GetIgnorePppAuthFlag(VOID);

+

+UINT32 zOss_SetUssdTimerLen(UINT32 UssdTimerLen);

+UINT16 zOss_GetUssdTimerLen(VOID);

+

+UINT32 zOss_SetPsPageOrPlmnlistPrio(UINT8 flag);

+UINT8 zOss_GetPsPageOrPlmnlistPrio(VOID);

+

+UINT32 zOss_Set2GPsRecvCsPage(UINT8 flag);

+UINT8 zOss_Get2GPsRecvCsPage(VOID);

+

+UINT32 zOss_SetPcoItemInfo(UINT32 dwPcoInfo);

+UINT32 zOss_GetPcoItemInfo(VOID);

+

+UINT32 zOss_SetKoreaTest(UINT32 flag);

+UINT8 zOss_GetKoreaTest(VOID);

+

+UINT32 zOss_SetGsmMeasPrior(UINT32 flag);

+UINT8 zOss_GetGsmMeasPrior(VOID);

+

+

+

+UINT32 zOss_SetWMeasAdjust(UINT32 param1, UINT32 param2, UINT32 param3,UINT32 flg1, UINT32 flg2,UINT32 flg3);

+/************************************************

+*º¯ÊýÃû³Æ:zOss_GetRssiOffset

+*º¯Êý¹¦ÄÜ:»ñÈ¡WÖ÷Ä£ÏÂÊÕµ½2GÉϱ¨µÄ²âÁ¿Ê±£¬¼õÈ¥µÄÆ«ÒÆÁ¿

+*ȡֵ˵Ã÷:·¶Î§0-255

+************************************************/

+UINT8 zOss_GetRssiOffset(VOID);

+

+/************************************************

+*º¯ÊýÃû³Æ:zOss_GetWEcno

+*º¯Êý¹¦ÄÜ:»ñÈ¡WÖ÷Ä£ÏÂÅжÏSֵʱ£¬±¾µØÉèÖõÄÄܹ»Ö§³ÅÒµÎñµÄ×îСECNO

+*ȡֵ˵Ã÷:·¶Î§0-255

+************************************************/

+UINT8 zOss_GetWEcno(VOID);

+

+/************************************************

+*º¯ÊýÃû³Æ:zOss_GetWRscp

+*º¯Êý¹¦ÄÜ:»ñÈ¡WÖ÷Ä£ÏÂÅжÏSֵʱ£¬±¾µØÉèÖõÄÄܹ»Ö§³ÅÒµÎñµÄ×îСRSCP.

+*ȡֵ˵Ã÷:·¶Î§0-255

+************************************************/

+UINT8 zOss_GetWRscp(VOID);

+

+UINT32 zOss_SetPsmTest(UINT32 flag);

+UINT8 zOss_GetPsmTest(VOID);

+

+/************************************************

+*º¯ÊýÃû³Æ:zOss_SetCmccChipTest

+*º¯Êý¹¦ÄÜ:ÉèÖÃÖÐÒÆÐ¾Æ¬ÈÏÖ¤ÖмȲ»·ûºÏЭÒéÒ²²»·ûºÏÍⳡµÄ´¦Àí¿ª¹Ø

+*ȡֵ˵Ã÷:0:¹Ø±Õ£¬1:´ò¿ª

+************************************************/

+UINT32 zOss_SetCmccChipTest(UINT32 flag);

+

+/***************************************************************************

+*º¯ÊýÃû³Æ:zOss_GetCmccChipTest

+*º¯Êý¹¦ÄÜ:»ñÈ¡ÖÐÒÆÐ¾Æ¬ÈÏÖ¤ÖмȲ»·ûºÏЭÒéÒ²²»·ûºÏÍⳡµÄ´¦Àí¿ª¹Ø

+*·µ»ØÖµËµÃ÷:0:¹Ø±Õ£¬1:´ò¿ª

+***************************************************************************/

+UINT8 zOss_GetCmccChipTest(VOID);

+

+/****************************************************************** 

+ *  º¯ÊýÃû      : zOss_GetCsfFlag

+ *  ¹¦ÄÜ        : »ñÈ¡WÒÖÖÆGSM¸ÉÈÅCSFÂ˲¨¿ª¹Ø

+ *  ·µ»ØÖµËµÃ÷  : 0 - ±íʾ²»Æô¶¯CSFÂ˲¨£» 1- Æô¶¯CSFÂ˲¨¡£

+ *****************************************************************************/

+UINT32 zOss_GetCsfFlag(VOID);

+

+UINT32 zOss_SetLteCat(UINT32 flag);

+UINT16 zOss_GetLteCat(VOID);

+

+UINT32 zOss_SetOosThresh(UINT32 OosThreshFlg, UINT32 OosThresh, UINT32 OosParmFlg, UINT32 OosThreshParmFlg);

+CommAtCfgCmdParam zOss_GetOosThresh(VOID);

+

+UINT32 zOss_SetIslandThresh(UINT32 IslandThreshFlg, UINT32 IslandThresh, UINT32 IslandParmFlg, UINT32 IslandThreshParmFlg);

+CommAtCfgCmdParam zOss_GetIslandThresh(VOID);

+

+/***************************************************************************

+*º¯ÊýÃû³Æ:zPs_GetOosThresh

+*º¯Êý¹¦ÄÜ:»ñÈ¡OOSÃÅÏÞÊÇ·ñÆôÓÿª¹Ø¼°OOSÃÅÏÞÖµ

+*·µ»ØÖµËµÃ÷:·µ»ØOOSÃÅÏÞÊÇ·ñÆôÓÿª¹Ø£¬0:¹Ø±Õ£¬1:´ò¿ª

+*pOosThresh :OOSÃÅÏÞÖµ£¬È¡Öµ·¶Î§-20µ½40

+***************************************************************************/

+UINT8 zPs_GetOosThresh(SINT16 *pOosThresh);

+

+/***************************************************************************

+*º¯ÊýÃû³Æ:zPs_GetIslandThresh

+*º¯Êý¹¦ÄÜ:»ñÈ¡¹ÂµºÃÅÏÞÊÇ·ñÆôÓÿª¹Ø¼°¹ÂµºÃÅÏÞÖµ

+*·µ»ØÖµËµÃ÷:·µ»Ø¹ÂµºÃÅÏÞÊÇ·ñÆôÓÿª¹Ø£¬0:¹Ø±Õ£¬1:´ò¿ª

+*pIslandThresh :¹ÂµºÃÅÏÞÖµ£¬È¡Öµ·¶Î§-20µ½40

+***************************************************************************/

+UINT8 zPs_GetIslandThresh(SINT16 *pIslandThresh);

+

+UINT32 zOss_SetVoltePowerSave(UINT32 flag);

+UINT8 zOss_GetVoltePowerSave(VOID);

+

+UINT32 zOss_SetRrcCustomCfg(UINT32 flag);

+UINT8 zOss_GetRrcCustomCfg(VOID);

+

+UINT32 zOss_SetphyCfgFlg(UINT32 wMeasPchCfgFlg);

+UINT16 zOss_GetphyCfgFlg(VOID);

+

+UINT32 zOss_SetTauPrior(UINT32 flag);

+UINT8 zOss_GetTauPrior(VOID);

+UINT32 zOss_SetReselOffSet(UINT32 flag);

+UINT8 zOss_GetReselOffSet(VOID);

+UINT32 zOss_SetImeiSoftVersion(UINT32 flag);

+UINT8 zOss_GetImeiSoftVersion(VOID);

+UINT8 zPs_GetImeiSVBcd(VOID);

+

+UINT32 zOss_SetRpi(UINT32 flag, UINT8 bInsNo);

+UINT8 zOss_GetRpiSet(VOID);

+UINT32 zOss_SetEmmTimerAdjustFlag(UINT32 flag);

+UINT8 zOss_GetEmmTimerAdjustFlag(VOID);

+UINT32 zOss_SetNvDelayWriteTime(UINT32 flag);

+UINT8 zOss_GetNvDelayWriteTime(VOID);

+UINT32 zOss_SetDynamicMemCfg(UINT32 bPsbufInit, UINT32 wSmallTbNum, UINT32 wPsBufNum, UINT32 bHarqBufNum, UINT32 bPollEdcp,

+                             UINT32 bPsbufInitFg, UINT32 bSmallTbNumFg, UINT32 bPsBufNumFg, UINT32 bHarqBufNumFg, UINT32 bPollEdcpFg);

+UINT8 zOss_GetDynMemPsbufInit(VOID);

+UINT16 zOss_GetDynMemSmallTbNum(VOID);

+UINT16 zOss_GetDynMemPsBufNum(VOID);

+UINT8 zOss_GetDynMemHarqBufNum(VOID);

+UINT8 zOss_GetEdcpPollFlag(VOID);

+UINT32 zOss_SetAttachCid(UINT32 bAttachCid);

+UINT8 zOss_GetAttachCid(VOID);

+UINT8 zOss_GetHpplmnResearchTime(VOID);

+UINT8 zOss_GetHpplmnRetryTime(VOID);

+UINT8 zOss_GetTEnableEutranLen(VOID);

+UINT32 zOss_SetUsatSCQryFg(UINT32 flag);

+UINT8 zOss_GetUsatSCQryFg(VOID);

+UINT8 zOss_GetVolteMtNetTest(VOID);

+UINT32 zOss_SetIdleDrxTime(UINT32 flag);

+UINT8 zOss_GetIdleDrxTime(VOID);

+UINT32 zOss_SetDataMonitorTime(UINT32 flag);

+UINT32 zOss_GetDataMonitorTime(VOID);

+UINT32 zOss_SetFreqScanInfo(CommAtCfgCmdParam * cmdParm);

+VOID zOss_GetFreqScanInfo(CommAtCfgCmdParam * cmdParm);

+UINT16 zOss_GetFreqScanTmin(VOID);

+UINT16 zOss_GetFreqScanStep(VOID);

+UINT16 zOss_GetFreqScanTnum(VOID);

+UINT16 zOss_GetFreqScanTmax(VOID);

+#ifdef _USE_PSM_TEST

+/****************************************************************** 

+ *  º¯ÊýÃû      : zSys_SetPsmFlagToIram

+ *  ¹¦ÄÜ        £ºÉèÖÃPSMflag to iram

+ *  ÊäÈë²ÎÊý    £º

+ *  Êä³ö²ÎÊý    £ºÎÞ

+ *  ·µ»ØÖµËµÃ÷    ÎÞ

+ *  ÆäËû˵Ã÷    £º

+ *****************************************************************************/

+VOID zSys_SetPsmFlagToIram(VOID);

+

+/****************************************************************** 

+ *  º¯ÊýÃû      : zSys_SetR7SleepType

+ *  ¹¦ÄÜ        £ºÉèÖÃR7µÄ˯Ãßģʽ

+ *  ÊäÈë²ÎÊý    £º

+ *  Êä³ö²ÎÊý    £º

+ *  ·µ»ØÖµËµÃ÷  £º1:²»ÔÊÐí˯Ãߣ»0:ÔÊÐí˯Ãß

+ *  ÆäËû˵Ã÷    £º

+ *****************************************************************************/

+UINT32 zSys_SetR7SleepType(CommLowPowerType type);

+#endif

+

+UINT32 zOss_GetPsLogTrace(VOID);

+#endif

+

diff --git a/cp/ps/modem/com/inc/config/oss_cfg.h b/cp/ps/modem/com/inc/config/oss_cfg.h
new file mode 100644
index 0000000..82fbaef
--- /dev/null
+++ b/cp/ps/modem/com/inc/config/oss_cfg.h
@@ -0,0 +1,66 @@
+/*******************************************************************************

+ * Copyright (C) 2007, ZTE Corporation.

+ *

+ * File Name:    

+ * File Mark:    

+ * Description:  

+ * Others:        

+ * Version:       v0.1

+ * Author:        xuxingkui

+ * Date:          2008-12-3

+ * History 1:      

+ *     Date: 2010-11-18

+ *     Version:

+ *     Author: 

+ *     Modification:  new create

+ * History 2: 

+  ********************************************************************************/

+#ifndef _OSS_CFG_H

+#define _OSS_CFG_H

+

+#ifdef __cplusplus

+extern "C" {

+#endif

+

+#ifdef _CORE_ARM0

+#ifdef _USE_PSM

+#define  CPUTIMELEN                     50

+#define  CPUTITHERADPRIOR               0

+#define  PSMCPUCOUNTNUM                 6  

+#define  PSM_ENABLE_DEEPSLEEPTIME       15   /*ÔÊÐí½øÈëÉî˯ÃßµÄʱ¼ä£¬µ¥Î»ms*/

+#define  PSM_ENABLE_SHALLOWSLEEPTIME    100

+#define  PSM_AIRPLANE_SLEEPTIMER        0xFFFFFFFF

+#endif

+#endif

+

+/*===========================================*/

+/*DevSv config*/

+/*===========================================*/

+typedef struct tagT_DevSv

+{

+    UINT8     devSv; /* ¸Ã³ÉÔ±¸³ÖµÊ±×¢ÒâǰºóÊý×ֵߵ¹£¬ÈçÏëÉèÖÃIMEISVµÄSVΪ91£¬Ð踳ֵΪ0x19 */

+}T_DevSv;    /* svÅäÖÃ */

+

+

+/*===========================================*/

+/*Reserved nv */

+/*===========================================*/

+typedef struct

+{

+    CHAR    magic[8]; /* ħÊõ×Ö */

+    UINT16  version;

+    UINT16  len;

+}T_zOss_RevNvHead;

+

+typedef struct

+{

+    UINT32  nv_addr;

+    CHAR    magic[8]; /* ħÊõ×Ö */    

+}T_zOss_RevConfig;

+

+#ifdef __cplusplus

+}

+#endif

+

+#endif

+

diff --git a/cp/ps/modem/com/inc/config/tspconfig.h b/cp/ps/modem/com/inc/config/tspconfig.h
new file mode 100755
index 0000000..edc19f2
--- /dev/null
+++ b/cp/ps/modem/com/inc/config/tspconfig.h
@@ -0,0 +1,278 @@
+/*********************************************************************

+ Copyright 2007 by  ZTE Corporation.  

+ *

+ * FileName::    version.h

+ * File Mark:  	

+* Description:  

+* Others:  	

+* Version:  	v0.5

+* Author:  	huji

+* Date:  	2011-09-06

+* History 1:  		

+*     Date: 

+*     Version:

+*     Author: 

+*     Modification:  

+* History 2: 

+**********************************************************************/

+

+#ifndef    _TSP_CONFIG_H

+#define    _TSP_CONFIG_H

+

+#include "oss_api.h"

+

+/* °æ±¾ºÅµÄ³¤¶È´Ó20À©Õ¹µ½40 */

+#define TSP_VERSION_NUMBER_MAX_LEN   40

+

+

+typedef  enum

+{

+    ON_STATE=0xFF,                

+    OFF_STATE=0x0,

+    ERR_STATE=0x55

+}T_SYS_NV_FUN_CTRL_FLAG;

+

+typedef  enum

+{

+    SHORT_INTERVAL=0x00,                

+    LONG_INTERVAL=0x36,

+    ERR_INTERVAL=0x55

+}T_SYS_NV_DL_INTERVAL_CTRL_FLAG;

+

+/************************************************************************/

+/*                          É䯵³õʼ»¯¶Ë¿Úºê¶¨Òå                        */

+/************************************************************************/

+

+

+typedef struct

+{	

+    UINT8 bootmode[2];

+    /********************************************************************************

+     ¹¦ÄÜ£º    ϵͳÆô¶¯Ä£Ê½

+     ȡֵ·¶Î§£º{0x54,0x4D}(AMTģʽ)£¬·Ç{0x54,0x4D}(Õý³£°æ±¾Ä£Ê½)

+     ³ö³§Öµ£º0xFFFF

+    *********************************************************************************/

+   

+    CHAR   tspVersion[TSP_VERSION_NUMBER_MAX_LEN];

+    /********************************************************************************

+    ¹¦ÄÜ£º   TSP    Èí¼þ°æ±¾ºÅ

+    ȡֵ·¶Î§£ºÈÎÒâ×Ö·û´®,ÒÔ'\0'±íʾ½áÊø

+    ³ö³§Öµ£ºÓɳö²ú³§É̾ö¶¨

+    *********************************************************************************/

+     CHAR   devName[TSP_VERSION_NUMBER_MAX_LEN];

+    /********************************************************************************

+    ¹¦ÄÜ£º   É豸Ãû³Æ

+    ȡֵ·¶Î§£ºÈÎÒâ×Ö·û´®,ÒÔ'\0'±íʾ½áÊø

+    ³ö³§Öµ£ºÓɳö²ú³§É̾ö¶¨

+    *********************************************************************************/

+     CHAR   hardwareVersion[TSP_VERSION_NUMBER_MAX_LEN];

+    /********************************************************************************

+    ¹¦ÄÜ£º   Ó²¼þ°æ±¾ºÅ

+    ȡֵ·¶Î§£ºÈÎÒâ×Ö·û´®,ÒÔ'\0'±íʾ½áÊø

+    ³ö³§Öµ£ºÓɳö²ú³§É̾ö¶¨

+    *********************************************************************************/

+     T_SYS_NV_DL_INTERVAL_CTRL_FLAG    DLIntervalFlag; 

+   /********************************************************************************

+    ¹¦ÄÜ£º    bootÏÂÔØ¿Ú¿ª¹ØÊ±¼ä±êÖ¾

+    ȡֵ·¶Î§£º0x0(¶Ìʱ¼ä)»òÕß0x36(³¤Ê±¼ä)

+    ³ö³§Öµ£º0xFF

+    *********************************************************************************/

+

+    /* Êý¾Ý¶ÔÆëÓõÄÔ¤Áô룬NVµ½´ËλÖÃΪ124×Ö½Ú */

+    CHAR    reserve;

+

+    T_ZOss_NvEccLog tEccLog;

+    /********************************************************************************

+    ¹¦ÄÜ£º    ECC logÐÅÏ¢¼Ç¼

+    ȡֵ·¶Î§£ºÔËÐÐʱ¶¯Ì¬Éú³É

+    ³ö³§Öµ£º0x0

+    *********************************************************************************/

+

+	 //UINT8 atMode[2];

+    /********************************************************************************

+     µÚ1024×Ö½Ú¿ªÊ¼µÄ2¸ö×Ö½ÚÓÃÓÚ±êʶAMTģʽÏÂÊÇ·ñ½âÎöATÃüÁî

+     ¹¦ÄÜ£º ±íʾAMTģʽÏÂÊÇ·ñ½âÎöATÃüÁî,ºÍbootmodeÒ»ÆðÅжÏAMTģʽÏÂÊÇ·ñÒª½âÎöATÃüÁî

+     ȡֵ·¶Î§£º{0x41,0x54}(AMTģʽ½âÎöATÃüÁî)£¬·Ç{0x41,0x54}(AMTģʽϽâÎöAMTÃüÁî)

+     ³ö³§Öµ£º0xFFFF

+    *********************************************************************************/

+   

+}T_SYS_NV_TSP_CONFIG;

+

+/**************************************************************************

+* Function: zSys_NvGetBootMode

+* Description: get boot mode

+* Parameters:

+*   Input: bootmode

+*   Output: bootmode

+* Returns:  ZOSS_SUCCESS or ZOSS_ERROR

+*

+* Others: None

+**************************************************************************/

+UINT32 zSys_NvGetBootMode(UINT8 bootmode[]);

+

+/**************************************************************************

+* Function: zSys_NvSetBootMode

+* Description: set boot mode

+* Parameters:

+*   Input:  bootmode

+*   Output: None

+* Returns:  ZOSS_SUCCESS or ZOSS_ERROR

+*

+* Others: None

+**************************************************************************/

+UINT32 zSys_NvSetBootMode(UINT8 bootmode[]);

+

+/**************************************************************************

+* Function: zSys_NvGetTspVersion

+* Description: get the TSP software version number

+* Parameters:

+*   Input:

+*              the buffer pointer to store the version number

+*   Output: None

+* Returns:  err code

+*	        

+* Others: None

+**************************************************************************/

+UINT32 zSys_NvGetTspVersion(CHAR * pVersion);

+

+/**************************************************************************

+* Function: zSys_NvSetTspVersion

+* Description: set version number

+* Parameters: the pointer to the version number

+*   Input:  pVersion

+*              None

+*   Output: None

+* Returns:  err code

+*	        

+* Others: None

+**************************************************************************/

+UINT32 zSys_NvSetTspVersion(CHAR * pVersion);

+

+/**************************************************************************

+* Function: zSys_NvGetBootFlag

+* Description: get the bootflag to on/off the download ports

+* Parameters:

+*   Input:

+*              None

+*   Output: None

+* Returns:  the value of bootflag or err code 

+*	        

+* Others: None

+**************************************************************************/

+T_SYS_NV_FUN_CTRL_FLAG  zSys_NvGetBootFlag(VOID);

+

+/**************************************************************************

+* Function: zSys_NvSetBootGlag

+* Description:set  the bootflag to on/off the download ports

+* Parameters:

+*   Input:

+*              boot funciton control flag

+*   Output: None

+* Returns:  err code 

+*	        

+* Others: None

+**************************************************************************/

+UINT32 zSys_NvSetBootFlag(T_SYS_NV_FUN_CTRL_FLAG flag);

+

+

+/**************************************************************************

+* Function: zSys_NvGetCdromFlag

+* Description: get the flag to on/off the CDROM function

+* Parameters:

+*   Input:

+*              None

+*   Output: None

+* Returns:  the value of bootflag

+*	        

+* Others: None

+**************************************************************************/

+T_SYS_NV_FUN_CTRL_FLAG  zSys_NvGetCdromFlag(VOID);

+

+/**************************************************************************

+* Function: zSys_NvSetCdromFlag

+* Description: set the flag to on/off the CDROM function

+* Parameters:

+*   Input:

+*              cdrom function control flag

+*   Output: None

+* Returns:  errcode

+*	        

+* Others: None

+**************************************************************************/

+UINT32 zSys_NvSetCdromFlag(T_SYS_NV_FUN_CTRL_FLAG flag);

+/**************************************************************************

+* Function: zSys_NvSetDevName

+* Description: set device namer

+* Parameters: the pointer to the device name

+*   Input:  pDevName

+*              None

+*   Output: None

+* Returns:  err code

+*

+* Others: None

+**************************************************************************/

+UINT32 zSys_NvSetDevName(CHAR * pDevName);

+/**************************************************************************

+* Function: zSys_NvGetDevName

+* Description: get device name

+* Parameters:

+*   Input:

+*              None

+*   Output: None

+* Returns:  the pointer to the version number

+*

+* Others: None

+**************************************************************************/

+UINT32 zSys_NvGetDevName(CHAR * pDevName);

+/**************************************************************************

+* Function: zSys_NvSetHardwareVersion

+* Description: set HardwareVersion

+* Parameters: the pointer to the device name

+*   Input:  pDevName

+*              None

+*   Output: None

+* Returns:  err code

+*

+* Others: None

+**************************************************************************/

+UINT32 zSys_NvSetHardwareVersion(CHAR * pHardwareVersion);

+/**************************************************************************

+* Function: zSys_NvGetHardwareVersion

+* Description: get HardwareVersion

+* Parameters:

+*   Input:

+*              None

+*   Output: None

+* Returns:  the pointer to the version number

+*

+* Others: None

+**************************************************************************/

+UINT32 zSys_NvGetHardwareVersion(CHAR * pHardwareVersion);

+/**************************************************************************

+* Function: zSys_NvGetDLIntervalGlag

+* Description:get  the flag to short/long  download intervals

+* Parameters:

+*   Input:

+*              none

+*   Output: None

+* Returns:  err code 

+*	        

+* Others: None

+**************************************************************************/

+UINT32 zSys_NvGetDLIntervalFlag (void);

+

+

+/**************************************************************************

+* Function: zSys_NvSetDLIntervalGlag

+* Description:set  the flag to short/long  download intervals

+* Parameters:

+*   Input:

+*              DL Interval funciton control flag

+*   Output: None

+* Returns:  err code 

+*	        

+* Others: None

+**************************************************************************/

+

+UINT32  zSys_NvSetDLIntervalFlag (UINT32 flag);

+#endif  /* _TSP_CONFIG_H*/

diff --git a/cp/ps/modem/com/inc/psbuf.h b/cp/ps/modem/com/inc/psbuf.h
new file mode 100755
index 0000000..53a6051
--- /dev/null
+++ b/cp/ps/modem/com/inc/psbuf.h
@@ -0,0 +1,302 @@
+/************************************************************************

+* °æÈ¨ËùÓÐ (C)2001,ÖÐÐËͨѶ¹É·ÝÓÐÏÞ¹«Ë¾¡£

+*

+* ÎļþÃû³Æ: psbuf.h

+* Îļþ±êʶ:

+* ÄÚÈÝÕªÒª: Êý¾ÝÃæ»º´æÏà¹Ø½á¹¹Ì嶨Òå¡¢ºê¶¨ÒåºÍº¯ÊýÉùÃ÷

+*

+* ÐÞ¸ÄÈÕÆÚ     °æ±¾ºÅ     Ð޸ıê¼Ç     ÐÞ¸ÄÈË        ÐÞ¸ÄÄÚÈÝ

+* ---------------------------------------------------------------------

+* 2012/06/15   V1.0                                   create

+************************************************************************/

+

+#ifndef _PS_BUF_H

+#define _PS_BUF_H

+

+/**************************************************************************

+ *                        Í·Îļþ°üº¬                                      *

+ **************************************************************************/

+ 

+/**************************************************************************

+                    È«¾Ö±äÁ¿ÉùÃ÷

+**************************************************************************/

+extern WORD gLinkAlignOffset;

+extern WORD g_l2_wUpLinkSDUNum;

+extern WORD g_l2_wEpdcpPDUNum;

+

+/**************************************************************************

+                    PSÊý¾ÝÃæÓÅ»¯Ïà¹Ø

+**************************************************************************/

+/**************************************************************************

+ *                          Ïà¹Øºê¶¨Òå                                    *

+ **************************************************************************/

+#define Z_LINK_ALIGN_OFFSET gLinkAlignOffset

+/* PSÊý¾ÝÃæ£¬ÉÏÐлº´æÐèÒªÔ¤ÁôÊý¾ÝÇø´óС */

+

+#define Z_UP_PPP_MAX_SIZE    (1520 + 100)

+#define Z_UP_IP_MAX_SIZE    1520

+#define LL_MAX_HEADER 48//64

+#define Z_UP_LINK_RESERVE LL_MAX_HEADER

+#define Z_UL_PDU_BUF_SIZE 1600

+/* PSÊý¾ÝÃæ£¬ÉÏÐÐPPPÊý¾Ý°üµÄ×î´óÖµ */

+

+#define Z_DOWN_LINK_RESERVE_IP      (LL_MAX_HEADER + 16)

+#define Z_DOWN_LINK_RESERVE_MAC     (LL_MAX_HEADER + 14)

+#define Z_DOWN_RLCSDU_MAX_SIZE 1504

+

+/* PSÊý¾ÝÃæ£¬ÏÂÐлº´æÐèÒªÔ¤ÁôÊý¾ÝÇø´óС */

+#define Z_DOWN_LINK_RESERVE  (Z_DOWN_LINK_RESERVE_MAC + Z_LINK_ALIGN_OFFSET)

+

+#define Z_DDR_32                         0

+#define Z_DDR_64                         1

+

+#ifdef _OS_WIN

+/* PSÊý¾ÝÃæ£¬ÉÏ¡¢ÏÂÐлº´æ¿éµÄ¸öÊý */

+#define Z_UP_LINK_SDU_COUNT  (1536 + 1792)//g_El2_wUpLinkSDUNum

+#define Z_DOWNLINK_SDU_COUNT 1792

+

+#define Z_LTE_EPDCP_PDU_COUNT 1536

+

+#else

+/*ps buffer memory size provided by product ddr*/

+#define Z_PS_BUFFER_MEM_SIZE         DDR_BASE_LEN_PSBUF /* 2.5M */

+

+/* PSÊý¾ÝÃæ£¬ÉÏ¡¢ÏÂÐлº´æ¿éµÄ¸öÊý */

+#define Z_UP_LINK_SDU_COUNT         g_l2_wUpLinkSDUNum//520        //1792

+#define Z_DOWNLINK_SDU_COUNT        0

+#define Z_LTE_EPDCP_PDU_COUNT       g_l2_wUpLinkSDUNum // 520      //1536

+

+#endif

+

+#define Z_PLAT_DL_RESERVE     (Z_DOWN_LINK_RESERVE - 14)

+#define Z_UL_DATA_DESC_SIZE         40

+#define Z_DL_DATA_DESC_SIZE         40

+#define Z_SKB_SHARE_INFO_SIZE       396 //400 //ºêÖµÓÉ 400¸ÄΪ396£¬±£Ö¤psbufµÄdataÓòΪ64×Ö½Ú¶ÔÆë

+ 

+//DHD°üÍ·×î´óÆ«ÒÆ

+#define Z_UL_DHD_MAX_OFFSET         64

+#define Z_OVERFLUD_SIZE             4

+//ec616000533092

+#define Z_UL_NODE_BUF_SIZE  (((DWORD)(Z_UP_LINK_RESERVE + Z_UP_IP_MAX_SIZE + Z_SKB_SHARE_INFO_SIZE + Z_OVERFLUD_SIZE+63) >> 6) << 6)/*4×Ö½Ú»º´æ¸Äд±êÖ¾*/

+#define Z_UL_SDU_BUF_SIZE   (Z_UP_LINK_RESERVE + Z_UP_IP_MAX_SIZE)

+//#define Z_DL_NODE_BUF_SIZE          (Z_DOWN_LINK_RESERVE_IP + Z_DOWN_RLCSDU_MAX_SIZE + Z_SKB_SHARE_INFO_SIZE + Z_OVERFLUD_SIZE) 

+//#define Z_DL_SDU_BUF_SIZE           (Z_DOWN_LINK_RESERVE_IP + Z_DOWN_RLCSDU_MAX_SIZE)

+

+/* PSÊý¾ÝÃæ£¬¼ì²é»º´æ¿éÊÇ·ñ±»Öظ´Êͷűêʾ£¬ÄÚ²¿Ê¹Óò»¶ÔÍ⿪·Å */

+#define Z_BUFFER_NOFREED   0xA3A3A3A3//0xFEFEFEFE

+#define Z_BUFFER_FREED     0x00

+#define Z_BUFFER_NOFLUD    0xA3A3A3A3//0xFEFEFEFE

+/**************************************************************************

+ *                          È«¾Ö½á¹¹ÀàÐÍ                                  *

+ **************************************************************************/ 

+/* PSÊý¾ÝÃæ£¬ÉÏÐлº´æ¿éµÄ½á¹¹ */

+typedef struct _Z_UpLink_Sdu {

+    T_ZOss_Node  tNode;    

+    BYTE tDataDescInfo[Z_UL_DATA_DESC_SIZE]; //±£´æTD»òLTEµÄÃèÊöÐÅÏ¢

+    BYTE bCid;

+    BYTE bPid;   //ƽ̨ÓÃÓÚ±êʶÊÇ·ñΪTCP ACK°ü

+    BYTE bNsapi; 

+    BYTE bAtiBuf;  

+    PBYTE pbPdcpPduAddr;

+    WORD wIpPacketLen;

+    WORD wIpPacketOffSet; // ÐèÒª³õʼ»¯

+    BYTE bIsTcpAck;

+    BYTE bPad[3];

+    PBYTE Data;

+    PBYTE tSkbShareInfo;

+    PBYTE pbSkbAddr;

+} T_z_UpLink_Sdu; 

+

+/* PSÊý¾ÝÃæ£¬ÏÂÐлº´æ¿éµÄ½á¹¹ */

+typedef struct _Z_DownLink_Sdu {

+    T_ZOss_Node  tNode;    

+    BYTE tDataDescInfo[Z_DL_DATA_DESC_SIZE]; //±£´æTD»òLTEµÄÃèÊöÐÅÏ¢

+    BYTE bCid;

+    BYTE bPid;   

+    BYTE bNsapi; 

+    BYTE bRbid;

+    WORD abPadding1[2];/*¶ÔÓ¦ÉÏÐÐpbPdcpPduAddr£¬ÏÂÐд¦Àí²»ÄÜʹÓã¬

+                                       ÒòÊͷŽڵãʱ²»Çø·ÖÉÏÏÂÐУ¬»á×÷ΪpbPdcpPduAddrµØÖ·½øÐлØÊÕ£¬

+                                       Èô±»ÉÏÐÐÉêÇëµ½£¬¶Ô¸ÃµØÖ·²Ù×÷ʱ£¬»áÔì³ÉËÀ»ú*/

+    WORD wDataLen;

+    WORD wDataOffSet;

+    WORD abPadding2[2];

+    PBYTE Data;

+    PBYTE tSkbShareInfo;

+    PBYTE pbSkbAddr;

+} T_z_DownLink_Sdu;

+

+/* PSÊý¾ÝÃæ£¬ÉÏÐлº´æ¿é½Úµã½á¹¹£¬ÄÚ²¿Ê¹Óò»¶ÔÍ⿪·Å */

+typedef struct _T_z_UpLink_Node {

+    T_z_UpLink_Sdu           tUpLinkSdu;

+    PDWORD                      pdwOverFlud;

+    DWORD                      dwFreed;

+    WORD    wCurrentModule;

+    WORD    wNextModule;

+    struct _T_z_UpLink_Node  *ptNextNode;

+} T_z_UpLink_Node;

+

+/**************************************************************************

+ *                              º¯ÊýÉùÃ÷                                  *

+ **************************************************************************/

+

+/*****************************************************************************

+*º¯ÊýÃû³Æ :   zAllocUlBuf

+*º¯Êý¹¦ÄÜ :   ÉêÇëÉÏÐÐÊý¾Ý»º´æ

+*ÊäÈë²ÎÊý :   VOID

+*·µ »Ø Öµ :   PBYTE ÿ¿éÊý¾Ý»º´æÆ«ÒƺóµÄµØÖ·

+*ÆäËû˵Ã÷ :   Ö§³Ö²¢·¢²Ù×÷£¬»º´æÎª¿Õʱ·µ»ØNULL

+*---------------------------------------------------------------------------

+*

+****************************************************************************/

+PBYTE zAllocUlBuf(VOID);

+

+/*****************************************************************************

+*º¯ÊýÃû³Æ :   zAllocDlBuf

+*º¯Êý¹¦ÄÜ :   ÉêÇëÏÂÐÐÊý¾Ý»º´æ

+*ÊäÈë²ÎÊý :   VOID

+*·µ »Ø Öµ :   PBYTE ÿ¿éÊý¾Ý»º´æÆ«ÒƺóµÄµØÖ·

+*ÆäËû˵Ã÷ :   Ö§³Ö²¢·¢²Ù×÷£¬»º´æÎª¿Õʱ·µ»ØNULL

+*---------------------------------------------------------------------------

+*

+****************************************************************************/

+PBYTE zAllocDlBuf(VOID);

+

+/*****************************************************************************

+*º¯ÊýÃû³Æ :   zAllocUlBufCanWait

+*º¯Êý¹¦ÄÜ :   ÉêÇëÉÏÐÐÊý¾Ý»º´æ

+*ÊäÈë²ÎÊý :   VOID

+*·µ »Ø Öµ :   PBYTE ÿ¿éÊý¾Ý»º´æÆ«ÒƺóµÄµØÖ·

+*ÆäËû˵Ã÷ :   Ö§³Ö²¢·¢²Ù×÷£¬»º´æÎª¿Õʱ×èÈûµ÷ÓÃÏß³ÌÖ±µ½ÓпÉÓõÄÏß³Ì

+*º¯Êý×÷Õß :              ´´½¨ÈÕÆÚ: 2011-11-04

+*

+*ÐÞ¸ÄÈÕÆÚ      °æ±¾ºÅ         ÐÞ¸ÄÈË         µ¥ºÅÓëÐÞ¸ÄÄÚÈÝ

+*---------------------------------------------------------------------------

+*

+****************************************************************************/

+PBYTE zAllocUlBufCanWait(VOID);

+

+/*****************************************************************************

+*º¯ÊýÃû³Æ :   zFreeUlBuf

+*º¯Êý¹¦ÄÜ :   ÊÍ·ÅÉÏÐÐÊý¾Ý»º´æ

+*ÊäÈë²ÎÊý :   VOID

+*·µ »Ø Öµ :   PBYTE ÿ¿éÊý¾Ý»º´æÆ«ÒƺóµÄµØÖ·

+*ÆäËû˵Ã÷ :   Ö§³Ö²¢·¢²Ù×÷£¬

+*º¯Êý×÷Õß :              ´´½¨ÈÕÆÚ: 2011-11-04

+*

+*ÐÞ¸ÄÈÕÆÚ      °æ±¾ºÅ         ÐÞ¸ÄÈË         µ¥ºÅÓëÐÞ¸ÄÄÚÈÝ

+*---------------------------------------------------------------------------

+*

+****************************************************************************/

+VOID zFreeUlBuf(PBYTE pBuf);

+

+/*****************************************************************************

+*º¯ÊýÃû³Æ :   zFreeDlBuf

+*º¯Êý¹¦ÄÜ :   ÊÍ·ÅÏÂÐÐÊý¾Ý»º´æ

+*ÊäÈë²ÎÊý :   VOID

+*·µ »Ø Öµ :   PBYTE ÿ¿éÊý¾Ý»º´æµÄÊ×µØÖ·

+*ÆäËû˵Ã÷ :   Ö§³Ö²¢·¢²Ù×÷£¬

+*º¯Êý×÷Õß :              ´´½¨ÈÕÆÚ: 2011-11-04

+*

+*ÐÞ¸ÄÈÕÆÚ      °æ±¾ºÅ         ÐÞ¸ÄÈË         µ¥ºÅÓëÐÞ¸ÄÄÚÈÝ

+*---------------------------------------------------------------------------

+*

+****************************************************************************/

+VOID zFreeDlBuf(PBYTE pBuf);

+

+/*****************************************************************************

+*º¯ÊýÃû³Æ :   zGetUlBufAddr

+*º¯Êý¹¦ÄÜ :   ΪÁ˽â¾öDHD°üÍ·32×Ö½Ú¶ÔÆë´«ÊäµÄÎÊÌ⣬´Ëº¯Êý¹©RNDISµ÷Ó㬻ñÈ¡

+              SduÊ×µØÖ·ºó£¬Í¶µÝ¸øÐ­ÒéÕ»¡£

+*ÊäÈë²ÎÊý :   ÎÞ

+*·µ »Ø Öµ :      ÎÞ

+*ÆäËû˵Ã÷ :   

+*º¯Êý×÷Õß :              ´´½¨ÈÕÆÚ: 2013-09-23

+*Ôö¼Ó±³¾° :   7510UFIÁªµ÷ÐÂÔö

+*ÐÞ¸ÄÈÕÆÚ      °æ±¾ºÅ         ÐÞ¸ÄÈË         µ¥ºÅÓëÐÞ¸ÄÄÚÈÝ

+*---------------------------------------------------------------------------

+*

+****************************************************************************/

+T_z_UpLink_Sdu * zGetUlBufAddr(PBYTE pBuf);

+

+#if !defined(_OS_WIN)

+PBYTE zGetpsbufferHead(PBYTE data);

+#endif

+

+PBYTE zAllocEpdcpPduBuf(VOID);

+void zInitEpdcpPduBuf(VOID);

+void zFreeEpdcpPduBuf(PBYTE pbAddr);

+void zFreeEpdcpPduBufList(T_z_UpLink_Node *ptHead,T_z_UpLink_Node *ptTail);

+

+BOOL zIsPsbuff(VOID *buf);

+

+/*****************************************************************************

+*º¯ÊýÃû³Æ :   zPutSkb2Psbuf

+*º¯Êý¹¦ÄÜ :   ½«SKBÐÅÏ¢·â×°µ½PSBUF½á¹¹ÄÚ

+*ÊäÈë²ÎÊý :   pbIpData    - IPÂëÁ÷Ê×µØÖ·

+              wIpDataLen  - IPÂëÁ÷³¤¶È(×Ö½Ú)

+              pbPdcpPduAddr - ÉÏÐÐEPDCP¼ÓÃܵÄÄ¿±êµØÖ·

+              pbSkbAddr     - SKBµØÖ·£¬ÊÍ·ÅʱʹÓÃ

+*·µ »Ø Öµ :   ÉÏÐÐÊý¾Ý½ÚµãÖ¸Õë

+*ÆäËû˵Ã÷ :   

+      ×¢Òâ:sizeof(T_z_UpLink_Node) + Z_UP_LINK_RESERVE ²»Äܳ¬¹ý192×Ö½Ú£¬·ñÔòҪ֪ͨAP

+*º¯Êý×÷Õß :   

+*

+*ÐÞ¸ÄÈÕÆÚ      °æ±¾ºÅ         ÐÞ¸ÄÈË         µ¥ºÅÓëÐÞ¸ÄÄÚÈÝ

+*---------------------------------------------------------------------------

+*

+****************************************************************************/

+extern PBYTE zPutSkb2Psbuf(PBYTE pbIpData, WORD wIpDataLen, PBYTE pbPdcpPduAddr, PBYTE pbSkbAddr);

+extern WORD zGetUpLinkSduSize(VOID);

+

+/*****************************************************************************

+*º¯ÊýÃû³Æ :   zPsBuf_CacheInvalidateRange

+*º¯Êý¹¦ÄÜ :   PSBUF·â×°zOss_CacheInvalidateRange²Ù×÷£¬ÒÔºó°æ±¾ºÃͳһ

+*ÊäÈë²ÎÊý :   

+*·µ »Ø Öµ :   

+*ÆäËû˵Ã÷ :   

+*º¯Êý×÷Õß :   

+*

+*ÐÞ¸ÄÈÕÆÚ      °æ±¾ºÅ         ÐÞ¸ÄÈË         µ¥ºÅÓëÐÞ¸ÄÄÚÈÝ

+*---------------------------------------------------------------------------

+*

+****************************************************************************/

+extern VOID zPsBuf_CacheInvalidateRange(UINT32 base, UINT32 size);

+

+/*****************************************************************************

+*º¯ÊýÃû³Æ :   zPsBuf_CacheCleanRange

+*º¯Êý¹¦ÄÜ :   PSBUF·â×°zOss_CacheCleanRange²Ù×÷£¬ÒÔºó°æ±¾ºÃͳһ

+*ÊäÈë²ÎÊý :   

+*·µ »Ø Öµ :   

+*ÆäËû˵Ã÷ :   

+*º¯Êý×÷Õß :   

+*

+*ÐÞ¸ÄÈÕÆÚ      °æ±¾ºÅ         ÐÞ¸ÄÈË         µ¥ºÅÓëÐÞ¸ÄÄÚÈÝ

+*---------------------------------------------------------------------------

+*

+****************************************************************************/

+extern VOID zPsBuf_CacheCleanRange(UINT32 base, UINT32 size);

+

+

+/* psbuff leak check */

+#ifdef _PSBUF_LEAK_CHECK

+void SetCurrntModule( PBYTE pBuf, WORD wModule );

+void SetNextModule( PBYTE pBuf, WORD wModuleC, WORD wModuleN );

+#define PSBUF_IN(b,m)         SetCurrntModule((PBYTE)(b),(WORD)(m))    /* psbuff into module m */

+#define PSBUF_OUT(b,mc,mn)    SetNextModule((PBYTE)(b),(WORD)(mc),(WORD)(mn))    /* psbuff from module mc to mn */

+#else

+#define PSBUF_IN(b,m)

+#define PSBUF_OUT(b,mc,mn)

+#endif

+/* outter module id define */

+#define PSBUF_MDL_BASE          0x10

+#define PSBUF_MDL_SIZE          0x10    /* high 4bit for outter module, low 4bit for inner module */

+#define PSBUF_MDL_CP_DRV_BASE   PSBUF_MDL_BASE                                  /* 0x10 */

+#define PSBUF_MDL_CP_CTRM_BASE  (PSBUF_MDL_CP_DRV_BASE     + PSBUF_MDL_SIZE)    /* 0x20 */

+#define PSBUF_MDL_CP_NET_BASE   (PSBUF_MDL_CP_CTRM_BASE    + PSBUF_MDL_SIZE)    /* 0x30 */

+#define PSBUF_MDL_AP_PSBUF_BASE (PSBUF_MDL_CP_NET_BASE     + PSBUF_MDL_SIZE)    /* 0x40 */

+#define PSBUF_MDL_AP_DDRNET_BASE    (PSBUF_MDL_AP_PSBUF_BASE   + PSBUF_MDL_SIZE)    /* 0x50 */

+#define PSBUF_MDL_AP_NET_BASE    (PSBUF_MDL_AP_DDRNET_BASE  + PSBUF_MDL_SIZE)    /* 0x60 */

+#define PSBUF_MDL_AP_WIFI_BASE   (PSBUF_MDL_AP_NET_BASE     + PSBUF_MDL_SIZE)    /* 0x70 */

+#define PSBUF_MDL_CP_PS_BASE     (PSBUF_MDL_AP_WIFI_BASE    + PSBUF_MDL_SIZE)    /* 0x80 */

+#endif

diff --git a/cp/ps/modem/com/inc/zpsi_api.h b/cp/ps/modem/com/inc/zpsi_api.h
new file mode 100644
index 0000000..64f4949
--- /dev/null
+++ b/cp/ps/modem/com/inc/zpsi_api.h
@@ -0,0 +1,184 @@
+/**************************************************************************

+*

+*             Protocol Stack Adapter Layer Telephone Interface

+*

+*                  Copyright (c) 2011 ZTE Corporation.

+*

+***************************************************************************

+*

+*   °æ±¾ËùÓÐ :   ÖÐÐËͨѶ¹É·ÝÓÐÏÞ¹«Ë¾ ÊÖ»úÊÂÒµ²¿ 

+*   Ä£ ¿é Ãû :   PSI

+*   ÎÄ ¼þ Ãû :   zpsi_api.h

+*   Îļþ±êʶ :   

+*   Ïà¹ØÎļþ : 

+*   ʵÏÖ¹¦ÄÜ :   PSI×Óϵͳ¶Ôƽ̨ӦÓýӿÚ

+*   ×÷    Õß :   

+*   °æ    ±¾ :   

+*   Íê³ÉÈÕÆÚ :   2011.04.06

+*   ÆäËü˵Ã÷ :

+**************************************************************************/

+#ifndef ZPSI_API_H

+#define ZPSI_API_H

+

+#define ZATI2_SM_IPV4_PDPADDR_LEN   4

+#define ZATI2_SM_IPV6_PDPADDR_LEN   16

+

+#define ZATI2_SM_MAX_PDPADDR_LEN   (ZATI2_SM_IPV4_PDPADDR_LEN + ZATI2_SM_IPV6_PDPADDR_LEN)

+

+/* ½á¹¹Ì嶨Òå */

+typedef struct {

+    UINT8                                         iCid;

+    UINT8                                         iPdpType;   /*

+                                                             * 0x01-PPP

+                                                             * 0x21-IPv4

+                                                             * 0x57-IPv6

+                                                             */

+    UINT8                                         iPdpAddr[ZATI2_SM_MAX_PDPADDR_LEN]; /* È«0±íʾʹÓö¯Ì¬µØÖ·£¬Èç10.40.63.4±íʾΪ

+                                                                                          iPdpAddr[0]=10,iPdpAddr[1]=40,iPdpAddr[2]=63,iPdpAddr[3]=4*/

+    UINT8                                         iGateWay[ZATI2_SM_MAX_PDPADDR_LEN]; /* ͬÉÏ */

+    UINT8                                         iPrimaryDns[ZATI2_SM_MAX_PDPADDR_LEN]; /* ͬÉÏ */

+    UINT8                                         iSecondaryDns[ZATI2_SM_MAX_PDPADDR_LEN];  /* ͬÉÏ */

+}T_ZAti_SmIpDnsInfo;

+

+typedef enum

+{

+    ZATI2_CHIND_AT = 0,      /* ָʾµ±Ç°Êý¾ÝΪATÃüÁî*/

+    ZATI2_CHIND_PSD,         /* ָʾµ±Ç°Êý¾ÝΪPSD*/

+    ZATI2_CHIND_PSDV6,       /* ָʾµ±Ç°Êý¾ÝΪPSDV6*/

+    ZATI2_CHIND_CSD,         /* ָʾµ±Ç°Êý¾ÝΪCSD*/

+    ZATI2_CHIND_TURN_AT,     /* ָʾµ±Ç°Í¨µÀ״̬Çл»ÎªÃüÁî̬£¬Ð¯´øÊý¾ÝÎÞЧ*/

+    ZATI2_CHIND_TURN_PSD,    /* ָʾµ±Ç°Í¨µÀ״̬Çл»ÎªPSD£¬Ð¯´øÊý¾ÝÎÞЧ*/

+    ZATI2_CHIND_TURN_CSD,    /* ָʾµ±Ç°Í¨µÀ״̬Çл»ÎªCSD£¬Ð¯´øÊý¾ÝÎÞЧ*/

+    ZATI2_CHIND_MAX

+}

+T_zAti2_CtrmChInd;

+

+typedef enum

+{

+    ZATI2_CHANNEL_SRV_MODE_INVAL = 0,

+    ZATI2_CHANNEL_SRV_MODE_CMD,

+    ZATI2_CHANNEL_SRV_MODE_DATA

+}T_zAti2_ChnlSrvModeType;

+

+typedef SINT32 (*T_ZAti2_AtRecvFunc)(UINT8 channelId, UINT8* pDataPtr, UINT16 iDataLen, T_zAti2_CtrmChInd iFlag);

+typedef  BOOL (*OutputIpPacket_CB)(UINT8 chId ,VOID  *packet, SINT32 packetLen, UINT8 flag);

+typedef BYTE (*T_zAti_AtChannelFunc)(UINT8 PsId);

+#ifdef Z_DUALCARD_DUALSTANDBY

+typedef SINT32 (*ZUSAT_SENDATCMDTOACCESSCHANNEL_FUNC)(UINT32 devId, UINT8 *data, UINT16 dataLen);

+#else

+typedef SINT32 (*ZUSAT_SENDATCMDTOACCESSCHANNEL_FUNC)(UINT8 *data, UINT16 dataLen);

+#endif

+/**************************************************************************

+* º¯ÊýÃû³Æ£º zPsi_RegOutputIpPacketCb

+* ¹¦ÄÜÃèÊö£º 

+* ²ÎÊý˵Ã÷£º 

+* ·µ »Ø Öµ£º ³É¹¦·µ»ØZATI2_SUCCESS

+* ÆäËü˵Ã÷£º Èë²Î°üÌå²»¿É±»Ð޸ģ¬Ç뿽³öºó²Ù×÷                            

+**************************************************************************/ 

+SINT32 zPsi_RegOutputIpPacketCb(OutputIpPacket_CB recvFunc);

+

+/**************************************************************************

+* º¯ÊýÃû³Æ : zAti2_Open

+* ¹¦ÄÜÃèÊö : ´ò¿ªÍ¨µÀ

+* ²ÎÊý˵Ã÷ : (IN)£º

+*            iChnelId     ͨµÀID

+*            (OUT)£ºÎÞ

+* ·µ »Ø Öµ : ³É¹¦·µ»ØZATI2_SUCCESS£»Ê§°Ü·µ»Ø´íÎóÀàÐÍ£»

+* ÆäËü˵Ã÷ : ÈÎÎñ¾ÍÐ÷ºó²ÅÄܽøÐÐͨµÀ²Ù×÷£»

+*            ͬһ¸öͨµÀ£¬²»ÄÜÁ¬Ðø´ò¿ªÁ½´Î

+**************************************************************************/

+SINT32 zAti2_Open(UINT8 iChnelId);

+

+/**************************************************************************

+* º¯ÊýÃû³Æ : zAti2_Close

+* ¹¦ÄÜÃèÊö : ¹Ø±ÕͨµÀ

+* ²ÎÊý˵Ã÷ : (IN)£º

+*            iChnelId     ͨµÀID

+*            (OUT)£ºÎÞ

+* ·µ »Ø Öµ : ³É¹¦·µ»ØZATI2_SUCCESS£»Ê§°Ü·µ»ØZATI2_FAULSE£»

+* ÆäËü˵Ã÷ : ÈÎÎñ¾ÍÐ÷ºó²ÅÄܽøÐÐͨµÀ²Ù×÷£»

+*            ͬһ¸öͨµÀ£¬²»ÄܹرÕÁ½´Î

+**************************************************************************/

+SINT32 zAti2_Close(UINT8 iChnelId);

+/**************************************************************************

+* º¯ÊýÃû³Æ : zAti2_RegRecvCb

+* ¹¦ÄÜÃèÊö : ×¢²á»Øµ÷º¯Êý

+* ²ÎÊý˵Ã÷ : (IN)£º

+*            recvFunc     »Øµ÷º¯Êý

+*            (OUT)£ºÎÞ

+* ·µ »Ø Öµ : ³É¹¦·µ»ØZATI2_SUCCESS£»Ê§°Ü·µ»Ø´íÎóÔ­Òò£»

+* ÆäËü˵Ã÷ : Ìṩ¸øÓû§·½º¯Êý½Ó¿Ú

+*            Èë²ÎÖ¸ÕëÀàÐÍtypedef SINT32 (*T_ZAti2_RecvCb)(UINT8 channelId,

+*            UINT8* pDataPtr, UINT16 iDataLen, UINT8 iFlag);

+**************************************************************************/

+SINT32 zAti2_RegRecvCb(T_ZAti2_AtRecvFunc recvFunc);

+/**************************************************************************

+* º¯ÊýÃû³Æ : zAti2_AtChannelFunc

+* ¹¦ÄÜÃèÊö : ×¢²á»Øµ÷º¯Êý

+* ²ÎÊý˵Ã÷ : (IN)£º

+*            recvFunc     »Øµ÷º¯Êý

+*            (OUT)£ºÎÞ

+* ·µ »Ø Öµ : ³É¹¦·µ»ØZATI2_SUCCESS£»Ê§°Ü·µ»Ø´íÎóÔ­Òò£»

+* ÆäËü˵Ã÷ : Ìṩ¸øÓû§·½º¯Êý½Ó¿Ú

+**************************************************************************/

+SINT32 zAti2_AtChannelFunc(T_zAti_AtChannelFunc pChannelFunc);

+

+/**************************************************************************

+* º¯ÊýÃû³Æ : zAti2_SetAlwaysAtReportChannel

+* ¹¦ÄÜÃèÊö : ʼÖÕÉϱ¨ATÃüÁîµÄͨµÀ×¢²á»Øµ÷º¯Êý£¬»Øµ÷º¯Êý·µ»Ø×¨ÓÃͨµÀºÅ¡£

+*           µ±×¨ÓÃͨµÀºÅÓÐЧʱ£¬Ö÷¶¯Éϱ¨ÃüÁî²»ÊÜÊÇ·ñºÚÆÁ/ÁÁÆÁÓ°Ï죬¶¼ÔÚ´ËͨµÀÉϱ¨¡£

+* ²ÎÊý˵Ã÷ : (IN)£º

+*            pChannelFunc - »Øµ÷º¯Êý£¬»Øµ÷º¯Êý·µ»Ø×¨ÓÃͨµÀºÅ¡£      

+* ·µ »Ø Öµ :

+* ÆäËü˵Ã÷ : Ìṩ¸ø²Î¿¼Éè¼ÆµÄº¯Êý½Ó¿Ú

+**************************************************************************/

+SINT32 zAti2_SetAlwaysAtReportChannel(T_zAti_AtChannelFunc pChannelFunc);

+

+/**************************************************************************

+* º¯ÊýÃû³Æ : zAti2_Send

+* ¹¦ÄÜÃèÊö : ͨ¹ýͨµÀ·¢ËÍATÃüÁ»òÕßÊý¾Ý

+* ²ÎÊý˵Ã÷ : (IN)£º

+*            iChnelId     »Øµ÷º¯Êý

+*            pDataPtr      Êý¾ÝÖ¸Õë

+*            iDataLen      Êý¾Ý³¤¶È

+*            iFlag         

+*            (OUT)£ºÎÞ

+* ·µ »Ø Öµ : ³É¹¦·µ»ØZATI2_SUCCESS£»Ê§°Ü·µ»Ø´íÎóÔ­Òò£»

+* ÆäËü˵Ã÷ : Ìṩ¸øÓû§·½º¯Êý½Ó¿Ú

+**************************************************************************/

+SINT32 zAti2_Send(UINT8 iChnelId, UINT8 *pDataPtr, UINT16 iDataLen, T_zAti2_CtrmChInd iFlag);

+

+/**************************************************************************

+* º¯ÊýÃû³Æ : zAti2_IsAtChReady

+* ¹¦ÄÜÃèÊö : È·ÈÏÖ¸¶¨Í¨µÀ״̬

+* ²ÎÊý˵Ã÷ : (IN)£º

+*            chID     ͨµÀID

+*            (OUT)£ºÎÞ

+* ·µ »Ø Öµ : ͨµÀ¿ÉÓ÷µ»ØOK,·ñÔò·µ»ØFALSE

+* ÆäËü˵Ã÷ : Ìṩ¸øÓû§·½º¯Êý½Ó¿Ú

+**************************************************************************/

+BOOL  zAti2_IsAtChReady(UINT8 chID);

+/**********************************************************************

+*º¯ÊýÃû³Æ:zAti_SmIpPdpActReq

+*¹¦ÄÜÃèÊö:»ñÈ¡CIDµÄµØÖ·ÐÅÏ¢

+*²ÎÊý˵Ã÷:

+*             iChnelId   ͨµÀID

+*             pAddr   (OUT)µØÖ·ÐÅÏ¢

+*********************************************************************/

+BOOL zAti_SmIpPdpActReq(UINT8 iChnelId, T_ZAti_SmIpDnsInfo* pAddr);

+VOID zUsat_RegisterSendMsgFun(ZUSAT_SENDATCMDTOACCESSCHANNEL_FUNC tmpFun);

+void zUsat_SendAtCmd(UINT32 dev_fd, const UINT8 *strAtCmd, UINT16 atCmdLen, UINT32 extData);

+extern BYTE zAti_PppGetCid(BYTE  bChnelId);

+

+/**************************************************************************

+* º¯ÊýÃû³Æ : zAti_GetEMCellInfo

+* ¹¦ÄÜÃèÊö : »ñÈ¡¹¤³ÌÄ£Ê½Ð¡ÇøÐÅÏ¢

+* ²ÎÊý˵Ã÷ : pEmInfo: ½á¹¹ÓÃT_zEM_EmInfo_Ind

+*            bInstanceIdx: ´ý»ú²àʵÀýË÷ÒýºÅ,0±íʾ´ý»ú²à1£»1±íʾ´ý»ú²à2

+*                         µ¥´ý°æ±¾Ìî0£»Ë«´ý°æ±¾¸ù¾Ýʵ¼Ê´ý»ú²àÌîд0»òÕß1

+* ·µ »Ø Öµ : ³É¹¦·µ»ØZATI2_SUCCESS (0)

+* ÆäËü˵Ã÷ : Ìṩ¸øÓû§·½º¯Êý½Ó¿Ú£¬·µ»ØÊ§°Ü˵Ã÷ÔÝʱûÓлñÈ¡µ½

+**************************************************************************/

+SINT32 zAti_GetEMCellInfo(UINT8 *pEmInfo, UINT8 bInstanceIdx);

+#endif

+