亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? usbtcdnet2280interrupt.c

?? This the compressed USB driver source code for vxworks5.6. It has device controller driver and other
?? C
?? 第 1 頁 / 共 4 頁
字號:
        {        if (pTarget->setupIntPending)            {    	    /* Setup Interrupt Pending */            USB_NET2280_DEBUG ("usbTcdNET2280FncInterruptStatusClear: Clearing \             Setup Interrupt bit\n", 0,0,0,0,0,0);            NET2280_CFG_WRITE (pTarget, NET2280_IRQSTAT0_REG,                               NET2280_IRQENB0_SETUP);            }        if ((pTarget->endptIntPending) != 0)            {            /*             * Endpoint related event is pending on some endpoint. Clear all             * endpoint interrupt on which endpoint related events are pending             */            }        }    USB_NET2280_DEBUG ("usbTcdNET2280FncInterruptStatusClear: Exiting...\n",                        0,0,0,0,0,0);    return OK;    }/********************************************************************************* usbTcdNET2280FncEndpointIntStatusGet - implements TCD_FNC_ENDPOINT_INTERRUPT_STATUS_GET** This function returns the interrupt status on an endpoint.** RETURNS: OK or ERROR, if not able to get the endpoint interrupt status.** ERRNO:* \is* \i S_usbTcdLib_BAD_PARAM.* Bad parameter is passed.* \ie** \NOMANUAL*/LOCAL STATUS usbTcdNET2280FncEndpointIntStatusGet    (    pTRB_ENDPOINT_INTERRUPT_STATUS_GET pTrb		/* TRB to be executed */    )    {    pTRB_HEADER	pHeader = (pTRB_HEADER) pTrb;		/* TRB_HEADER */    pUSB_TCD_NET2280_TARGET	pTarget = NULL;	    /* USB_TCD_NET2280_TARGET */    pUSB_TCD_NET2280_ENDPOINT	pEndpointInfo = NULL;/*USB_TCD_NET2280_ENDPOINT*/    UINT8	endpointIndex = 0;			/* endpoint index */    UINT8	direction = 0;				/* direction */    UINT32      data32 = 0;    /* WindView Instrumentation */    USB_TCD_LOG_EVENT(USB_TCD_NET2280_INTERRUPT,    "usbTcdNET2280FncEndpointIntStatusGet entered.", USB_TCD_NET2280_WV_FILTER);    USB_NET2280_DEBUG ("usbTcdNET2280FncEndpointIntStatusGet: Entered...\n",    0,0,0,0,0,0);    /* Validate Parameters */    if ((pHeader == NULL) || (pHeader->trbLength < sizeof (TRB_HEADER)) ||        (pHeader->handle == NULL) || (pTrb->pipeHandle == 0))        {        /* WindView Instrumentation */        USB_TCD_LOG_EVENT(USB_TCD_NET2280_INTERRUPT,        "usbTcdNET2280FncEndpointIntStatusGet exiting:Bad Parameter Received.",        USB_TCD_NET2280_WV_FILTER);        USB_NET2280_ERROR ("usbTcdNET2280FncEndpointIntStatusGet: \        Bad Parameters...\n",0,0,0,0,0,0);        return ossStatus (S_usbTcdLib_BAD_PARAM);        }    pTarget =  (pUSB_TCD_NET2280_TARGET) pHeader->handle;    pEndpointInfo = (pUSB_TCD_NET2280_ENDPOINT)pTrb->pipeHandle;    /* Determine the endpoint index and direction */    endpointIndex = pEndpointInfo->endpointIndex;    direction = pEndpointInfo->direction;    /* update TRB :: uEndptInterruptStatus to 0 */    pTrb->uEndptInterruptStatus = 0;    if ((endpointIndex == NET2280_ENDPT_0_OUT) &&         (pTarget->setupIntPending))        {        /* setup interrupt */        /* Set bits 0 and bit 1 of TRB :: uEndptInterruptStatus ot 1 */        pTrb->uEndptInterruptStatus |=  USBTCD_ENDPOINT_INTERRUPT_PENDING_MASK |                                        USBTCD_ENDPOINT_SETUP_PID_MASK;        return OK;        }#ifdef NET2280_DMA_SUPPORTED    /* Check if an interrupt has occured for dma endpoints A, B, C or D  */     if ((endpointIndex == NET2280_ENDPT_A) ||         (endpointIndex == NET2280_ENDPT_B) ||         (endpointIndex == NET2280_ENDPT_C) ||         (endpointIndex == NET2280_ENDPT_D))        {        /* Check if there is a dma eot interrupt for this endpoint */        if ((pTarget->dmaEot & (1 << endpointIndex)) != 0)            {            /* read the direction bit of DMACNT register */            if ((NET2280_CFG_READ (pTarget,                                    NET2280_DMACOUNT_OFFSET (endpointIndex))                                   & NET2280_DMACOUNT_DIR) != 0)                {                /*                 * DMA Transfer occured on IN endpoint, update                 * TRB :: uEndptInterruptStatus accordingly                 */                pTrb->uEndptInterruptStatus |=                                        USBTCD_ENDPOINT_INTERRUPT_PENDING_MASK |                                        USBTCD_ENDPOINT_IN_PID_MASK;                }            else                {                 /*                  * DMA Transfer occured on OUT endpoint, update                  * TRB :: uEndptInterruptStatus accordingly                  */                 pTrb->uEndptInterruptStatus |=                                            USBTCD_ENDPOINT_INTERRUPT_PENDING_MASK |                                            USBTCD_ENDPOINT_OUT_PID_MASK;                }            return OK;            }        /*          * This condition will be successful in the following cases         * DMA OUT : short packet is received.         * DMA IN : Dma transfer completed before USB data transfer.         */        else if (((pTarget->endptIntPending & (1 << endpointIndex)) != 0) &&                  pEndpointInfo->dmaInUse)            {            if (direction == USB_TCD_ENDPT_OUT)                {                pTrb->uEndptInterruptStatus =                 USBTCD_ENDPOINT_INTERRUPT_PENDING_MASK |                USBTCD_ENDPOINT_OUT_PID_MASK |                USBTCD_ENDPOINT_DATA_UNDERRUN;                pTarget->dmaEot |= (1 << endpointIndex);                 pTarget->endptIntPending &= ~(1 << endpointIndex);                 /* Read the endpoint interrupt status */                data32 = NET2280_CFG_READ (pTarget,                               NET2280_EP_STAT_OFFSET(endpointIndex));                  /* Short packet will be cleared in copydatafrom() */                 data32 &= ~NET2280_EP_STAT_NAKOUT;                /* Clear all the interrupts */                NET2280_CFG_WRITE (pTarget, NET2280_EP_STAT_OFFSET(endpointIndex),                                        data32);                  }            else /* Endpoint direction is IN */                {                pTrb->uEndptInterruptStatus =                     USBTCD_ENDPOINT_INTERRUPT_PENDING_MASK |                    USBTCD_ENDPOINT_IN_PID_MASK;                pTarget->dmaEot |= (1 << endpointIndex);                 pTarget->endptIntPending &= ~(1 << endpointIndex);                 }            return OK;            }       }#endif    if ((pTarget->endptIntPending & (1 << endpointIndex)) != 0)        {        /*          * Check for direction and update TRB :: uEndptInterruptStatus with         * proper mask          */        if (direction == USB_TCD_ENDPT_IN)            {            /* IN INTERRUPT on the endpoint */            pTrb->uEndptInterruptStatus |=                                       USBTCD_ENDPOINT_INTERRUPT_PENDING_MASK |                                       USBTCD_ENDPOINT_IN_PID_MASK;            /* Clear the endptIntPending bit */            pTarget->endptIntPending &= ~(1 << endpointIndex);             /*             * Endpoint 0 IN and OUT use the same register.              * So update the index to be used for register access.             */                           if (endpointIndex == NET2280_ENDPT_0_IN)                endpointIndex = 0;                  /*             * Read the contents of the EP_STAT register.             * Some specific short packet handling is required for OUT endpoints.             * This is the reason for reading this register contents here.             */                     data32 = NET2280_CFG_READ (pTarget, NET2280_EP_STAT_OFFSET(endpointIndex));            /* Clear the data packet received and transmitted interrupts */            data32 &= ~(NET2280_EP_STAT_DPT | NET2280_EP_STAT_DPR);            /* Clear all the interrupts */            NET2280_CFG_WRITE (pTarget, NET2280_EP_STAT_OFFSET(endpointIndex), data32);              }                      else if (direction == USB_TCD_ENDPT_OUT)            {            /* To store temporarily some register values */            UINT32 dataTemp = 0;            /* OUT INTERRUPT of the endpoint */            pTrb->uEndptInterruptStatus |=                                        USBTCD_ENDPOINT_INTERRUPT_PENDING_MASK |                                        USBTCD_ENDPOINT_OUT_PID_MASK;            /* Clear the endptIntPending bit */            pTarget->endptIntPending &= ~(1 << endpointIndex);             /*             * Read the contents of the EP_STAT register.             * Some specific short packet handling is required for OUT endpoints.             * This is the reason for reading this register contents here.             */             data32 = NET2280_CFG_READ (pTarget, NET2280_EP_STAT_OFFSET(endpointIndex));            /*             * Clear the interrupts other than data packet received             * and transmitted interrupts             */            data32 &= ~(NET2280_EP_STAT_DPT | NET2280_EP_STAT_DPR);#ifdef NET2280_DMA_SUPPORTED            /* Clear all the interrupts other than short packet interrupt */            NET2280_CFG_WRITE (pTarget, NET2280_EP_STAT_OFFSET(endpointIndex),                                (data32 & ~NET2280_EP_STAT_NAKOUT));  #else            /* Clear all the interrupts */            NET2280_CFG_WRITE (pTarget, NET2280_EP_STAT_OFFSET(endpointIndex), data32);  #endif            /* Read EP_AVAIL register */            dataTemp = NET2280_CFG_READ (pTarget,                                   NET2280_EP_AVAIL_OFFSET (endpointIndex));            /*             * Copy the data in the FIFO which is to be copied             * to the HAL buffer             */            pEndpointInfo->dataLength = dataTemp;            /*              * There are high chances that between the duration of reading             * the EP_STAT register and EP_AVAIL register, there is a short             * packet detected. If we do not do the following handling,              * there is a chance that we have copied the             * entire data, but the HAL does not know that it is the end of             * transfer. The following piece of code handles this case.             */            /*              * We need not indicate to HAL a short packet, if the             * data available is less than max packetsize.             */             if (pEndpointInfo->dataLength > pEndpointInfo->maxPacketSize)                {                /*                 * Check if a short packet is already detected. ie, the EP_STAT                 * value read earlier indicates a short packet.                 * Note:NET2280_EP_STAT_NAKOUT mask indicates a short packet                 * occurance. Once this bit is set, the target controller                 * cannot accept more data. Only if this bit is cleared by                 * TCD, it can accept more data. If this bit is set here,                  * we have already read the complete data length.                 * If it is not set, read the EP_STAT register again to check if                 * there is any short packet.                  */                if ((data32 & NET2280_EP_STAT_NAKOUT) == 0)                    {                    dataTemp = NET2280_CFG_READ (pTarget,                                NET2280_EP_STAT_OFFSET(endpointIndex));                    /*                      * If the NAKOUT bit is set, then we need to copy the                     * complete size of data for the transfer.                     */                    if ((dataTemp & NET2280_EP_STAT_NAKOUT)!= 0)                        {                        pEndpointInfo->dataLength = NET2280_CFG_READ (pTarget,                                   NET2280_EP_AVAIL_OFFSET (endpointIndex));                        }                    /*                      * Clear the interrupts other than data packet transmitted                      * and received interrupts.                     */                                  dataTemp &= ~(NET2280_EP_STAT_DPT | NET2280_EP_STAT_DPR);#ifdef NET2280_DMA_SUPPORTED                    /* Clear the contents other than short packet */                    NET2280_CFG_WRITE (pTarget,                     NET2280_EP_STAT_OFFSET(endpointIndex),                     (dataTemp & ~NET2280_EP_STAT_NAKOUT)); #else                    /* Clear the contents of the EP_STAT register */                    NET2280_CFG_WRITE (pTarget,                     NET2280_EP_STAT_OFFSET(endpointIndex), dataTemp); #endif                    /*                      * As data32 will be used further down the line,                     * update the data32 value

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产美女精品人人做人人爽| 99国产精品视频免费观看| 国产不卡在线一区| 欧洲av一区二区嗯嗯嗯啊| 国产亚洲欧美一区在线观看| 午夜成人在线视频| 97精品超碰一区二区三区| 26uuu久久天堂性欧美| 亚洲最色的网站| 大陆成人av片| 久久久久久影视| 美国十次综合导航| 欧美日韩一区二区三区四区| 成人免费在线播放视频| 国产高清视频一区| 久久综合狠狠综合久久综合88| 亚洲一线二线三线久久久| 波波电影院一区二区三区| 久久婷婷国产综合精品青草| 三级不卡在线观看| 在线播放中文一区| 亚洲成av人片在线| 欧美伦理电影网| 亚洲成人在线网站| 欧美精品在欧美一区二区少妇| 亚洲欧美日韩国产另类专区| 波多野结衣在线aⅴ中文字幕不卡| 久久婷婷色综合| 国产激情一区二区三区| 久久精品男人天堂av| 国产一区二区调教| 久久午夜色播影院免费高清| 国产一区二区三区久久久| 久久久美女艺术照精彩视频福利播放| 精品亚洲成av人在线观看| 日韩欧美区一区二| 国模无码大尺度一区二区三区| 精品欧美乱码久久久久久1区2区| 麻豆久久久久久| 久久美女高清视频| 国产精品1区2区3区| 国产欧美日韩精品a在线观看| 国产成人在线色| 国产精品理伦片| 91国偷自产一区二区三区观看| 亚洲综合一二三区| 91麻豆精品国产91久久久久久久久 | 久久久噜噜噜久久人人看 | 日韩一级精品视频在线观看| 蜜臀av一区二区三区| www久久久久| 成人精品gif动图一区| 1000部国产精品成人观看| 色综合视频在线观看| 亚洲一区在线观看视频| 欧美一区三区二区| 国产另类ts人妖一区二区| 国产精品色一区二区三区| 色视频一区二区| 日本大胆欧美人术艺术动态| 久久精品日韩一区二区三区| 色婷婷久久久亚洲一区二区三区| 午夜精品久久久久久久99樱桃| 精品免费视频一区二区| 99精品国产视频| 久久99精品国产.久久久久久| 国产精品美女一区二区在线观看| 欧美午夜影院一区| 国产精品小仙女| 亚洲午夜免费电影| 国产午夜一区二区三区| 欧美在线影院一区二区| 国内精品嫩模私拍在线| 亚洲一区在线视频| 国产目拍亚洲精品99久久精品| 欧美在线制服丝袜| 国产成人免费在线观看| 午夜激情久久久| 国产精品理论在线观看| 精品理论电影在线观看| 精品视频1区2区3区| 国产91精品露脸国语对白| 日韩精品91亚洲二区在线观看| 国产精品乱码一区二区三区软件| 91精品久久久久久久久99蜜臂| 成人爱爱电影网址| 不卡在线视频中文字幕| 毛片不卡一区二区| 洋洋av久久久久久久一区| 蜜臀av一区二区在线观看| 在线观看av不卡| 午夜av电影一区| 不卡视频免费播放| 国产精品色在线观看| 国产精品88av| 日韩一区中文字幕| 欧美日韩国产在线播放网站| 亚洲香肠在线观看| 精品欧美一区二区久久| 亚洲一区在线观看网站| 日本一区二区高清| 亚洲日本护士毛茸茸| 久久先锋影音av| 精品91自产拍在线观看一区| 欧美剧在线免费观看网站 | 色偷偷成人一区二区三区91| 国产精品乡下勾搭老头1| 免费日韩伦理电影| 日韩不卡在线观看日韩不卡视频| 一区二区成人在线观看| 亚洲免费在线观看视频| 亚洲男人的天堂在线aⅴ视频| 国产精品麻豆一区二区| 国产精品第13页| 亚洲欧美激情小说另类| 亚洲欧美欧美一区二区三区| 亚洲欧美经典视频| 亚洲最大成人综合| 亚洲午夜激情av| 香蕉久久夜色精品国产使用方法| 亚洲高清免费观看| 午夜国产不卡在线观看视频| 日本在线播放一区二区三区| 热久久久久久久| 国产美女精品一区二区三区| 高清在线观看日韩| 色综合久久九月婷婷色综合| 在线精品视频一区二区| 欧美三级电影一区| 欧美变态tickle挠乳网站| 亚洲精品在线三区| 日本一区二区三区久久久久久久久不| 国产日韩精品一区| 亚洲欧美日韩电影| 视频一区二区三区入口| 国内精品伊人久久久久av一坑| 高清国产午夜精品久久久久久| 99久久99久久精品免费看蜜桃| 色88888久久久久久影院野外 | 日韩欧美电影一区| 久久色.com| 日韩一区中文字幕| 日本成人中文字幕| 国产精品一区二区在线播放| caoporen国产精品视频| 欧美视频一区二区三区四区| 日韩美一区二区三区| 国产精品另类一区| 丝袜脚交一区二区| 国产福利91精品一区| 91官网在线免费观看| 精品捆绑美女sm三区| 亚洲另类在线一区| 精品伊人久久久久7777人| 91亚洲国产成人精品一区二区三| 欧美高清性hdvideosex| 中文字幕乱码亚洲精品一区| 午夜精品视频一区| 成人久久视频在线观看| 91精品啪在线观看国产60岁| 中文字幕一区二区在线观看| 日韩高清一区二区| thepron国产精品| 欧美大片在线观看一区| 亚洲乱码国产乱码精品精可以看| 捆绑调教一区二区三区| 色婷婷国产精品久久包臀| 26uuu国产日韩综合| 亚洲成人av在线电影| 成人免费高清在线观看| 日韩欧美亚洲国产另类| 一区二区三区.www| 成人午夜又粗又硬又大| 精品三级在线观看| 偷拍日韩校园综合在线| 色综合欧美在线视频区| 国产亚洲欧美日韩俺去了| 美女视频免费一区| 欧美乱妇一区二区三区不卡视频| 亚洲人成小说网站色在线 | 精品系列免费在线观看| 欧美日韩一区在线观看| 亚洲免费电影在线| 成人18精品视频| 青娱乐精品在线视频| 91久久久免费一区二区| 中文字幕一区在线| 成人h版在线观看| 久久色在线观看| 国产一区二区三区在线观看免费 | 免费成人性网站| 91精品国产全国免费观看| 亚洲成人先锋电影| 欧美婷婷六月丁香综合色| 亚洲精品国产精华液| 色综合天天综合色综合av| 亚洲丝袜精品丝袜在线| 99re热视频这里只精品| 亚洲人成7777| 色94色欧美sute亚洲13|