[T106][ZXW-22]7520V3SCV2.01.01.02P42U09_VEC_V0.8_AP_VEC origin source commit
Change-Id: Ic6e05d89ecd62fc34f82b23dcf306c93764aec4b
diff --git a/cp/ps/driver/inc/misc/drvs_usbPoll.h b/cp/ps/driver/inc/misc/drvs_usbPoll.h
new file mode 100644
index 0000000..01e0847
--- /dev/null
+++ b/cp/ps/driver/inc/misc/drvs_usbPoll.h
@@ -0,0 +1,170 @@
+/*******************************************************************************
+ * Copyright (C) 2007, ZTE Corporation.
+ *
+ * File Name:
+ * File Mark:
+ * Description:
+ * Others:
+ * Version: 1.0
+ * Author: weizhgiang
+ * Date: 2010-5-18
+ * History 1:
+ * Date:
+ * Version:
+ * Author:
+ * Modification:
+ * History 2:
+ ********************************************************************************/
+
+#ifndef _DRVS_USBPOLL_H
+#define _DRVS_USBPOLL_H
+
+
+/****************************************************************************
+* Include files
+****************************************************************************/
+
+
+/****************************************************************************
+* Macros
+****************************************************************************/
+
+
+/****************************************************************************
+* Types
+****************************************************************************/
+
+/****************************************************************************
+* Constants
+****************************************************************************/
+
+/****************************************************************************
+* Global Variables
+****************************************************************************/
+
+/****************************************************************************
+* Function Prototypes
+****************************************************************************/
+
+/*******************************************************************************
+ * Function: zDrvUsbPoll_Init
+ * Description:
+ 1¡¢¶Ï¿ªÓëPC²àµÄµ±Ç°Á¬½Ó
+ 2¡¢³õʼ»¯USBÄÚ²¿µÄÊý¾Ý½á¹¹
+ 3¡¢ÖØÐÂÆô¶¯Á¬½Ó£¨Æô¶¯Á¬½Óºó£¬ÒªÇózDrvUsbPoll_IsrÁ¢¼´»ñµÃ²éѯ£©
+ * Parameters:
+ * Input:
+ *
+ * Output:
+ *
+ * Returns:
+ *
+ *
+ * Others:
+ ********************************************************************************/
+SINT32 zDrvUsbPoll_Init(VOID);
+
+
+
+/*******************************************************************************
+ * Function: zDrvUsbPoll_isConnect
+ * Description:
+ 1¡¢ÅжÏö¾ÙÊÇ·ñÍê³É
+ * Parameters:
+ * Input:
+ *
+ * Output:
+ *
+ * Returns:
+ *
+ *
+ * Others:
+ ********************************************************************************/
+BOOL zDrvUsbPoll_isConnect(VOID);
+
+
+
+/*******************************************************************************
+ * Function: zDrvUsbPoll_Isr
+ * Description:
+ 1¡¢USBÖжϴ¦Àíº¯Êý£¬ÐèÒª²»¶Ï²éѯ
+ * Parameters:
+ * Input:
+ *
+ * Output:
+ *
+ * Returns:
+ *
+ *
+ * Others:
+ ********************************************************************************/
+SINT32 zDrvUsbPoll_Isr(VOID);
+
+
+/*******************************************************************************
+ * Function: zDrvUsbPoll_Read
+ * Description:
+ USB¶Áº¯Êý£¬Òì²½·½Ê½¡£¼´Èç¹ûûÓжÁµ½Êý¾Ý£¬Á¢¿Ì·µ»Ø0
+ * Parameters:
+ * Input:
+ *
+ * Output:
+ *
+ * Returns:
+ *
+ *
+ * Others:
+ ********************************************************************************/
+SINT32 zDrvUsbPoll_Read(UINT8* pBuf,UINT32 length);
+
+
+/*******************************************************************************
+ * Function: zDrvUsbPoll_Write
+ * Description:
+ USBдº¯Êý£¬Òì²½·½Ê½¡£¼´Èç¹ûûÓжÁµ½Êý¾Ý£¬Á¢¿Ì·µ»Ø0
+ * Parameters:
+ * Input:
+ *
+ * Output:
+ *
+ * Returns:
+ *
+ *
+ * Others:
+ ********************************************************************************/
+SINT32 zDrvUsbPoll_Write(UINT8* pBuf,UINT32 length);
+
+/*******************************************************************************
+ * Function: usbPoll_Delay_us
+ * Description:
+ delay function
+ * Parameters:
+ * Input:
+ *
+ * Output:
+ *
+ * Returns:
+ *
+ *
+ * Others:
+ ********************************************************************************/
+VOID usbPoll_Delay_us(UINT32 us);
+
+/*******************************************************************************
+ * Function: usbPoll_Delay_us
+ * Description:
+ delay function
+ * Parameters:
+ * Input:
+ *
+ * Output:
+ *
+ * Returns:
+ *
+ *
+ * Others:
+ ********************************************************************************/
+VOID usbPoll_Delay_ms(UINT32 ms);
+
+#endif/*_DRVS_USBPOLL_H*/
+