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

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

?? usbehcdtransfermanagement.c

?? vxWorks下USB2.0中的EHCI的HCD源碼,極具有參考價值
?? C
?? 第 1 頁 / 共 5 頁
字號:
                 }                        /* Release the exclusive access */            OS_RELEASE_EVENT(pHCDData->RequestSynchEventID);            /* Exclusively access the bandwidth resource */            OS_WAIT_FOR_EVENT(pHCDData->BandwidthEventID,OS_WAIT_INFINITE);            /* This loop will remove the bandwidth             * allocated in each of the frames             */            for (uFrameIndex = pHCDPipe->uListIndex;                USB_EHCD_MAX_FRAMELIST_SIZE > uFrameIndex;                uFrameIndex += pHCDPipe->uStepValue)                {                /* This loop will update the frame list bandwidth                 * for every microframe                 */                for (uUFrameIndex = 0;                    USB_EHCD_MAX_MICROFRAME_NUMBER > uUFrameIndex;                    uUFrameIndex++)                    {                    /* Check if bandwidth is to be updated for this                     * microframe and update the bandwidth                     */                    if (0 !=                        ((pHCDPipe->uUFrameMaskValue >> uUFrameIndex) & 0x01))                        {                        pHCDData->FrameListData[uFrameIndex].                        uBandwidth[uUFrameIndex] -= pHCDPipe->uBandwidth;                        pHCDData->FrameBandwidth[uFrameIndex][uUFrameIndex] -=                        pHCDPipe->uBandwidth;                        }                    }                }            /* Release the bandwidth exclusive access */            OS_RELEASE_EVENT(pHCDData->BandwidthEventID);            /* Update the bandwidth */            bStatus = usbEhcdUpdateBandwidth(pHCDData);            /* Check if bandwidth updation is successful */            if (FALSE == bStatus)                {                OS_ASSERT(FALSE);                }            }/* End of isochronous endpoint removal request handling */        /* Create a synchronisation  event*/        if (NULL == (pHCDPipe->DeleteSynchEventID = OS_CREATE_EVENT(OS_EVENT_NON_SIGNALED)))            {            OS_ASSERT(FALSE);            }        /* Add to the reclamation list */        USB_EHCD_ADD_TO_PERIODIC_RECLAMATION_LIST(pHCDData,                                                  pHCDPipe);        /* Enable the interrupt to be generated on a frame list rollover */        USB_EHCD_SET_BIT_USBINTR_INT_ON_FRAME_LIST_ROLLOVER(pHCDData);        /* Wait for event handler task to free the resources */        OS_WAIT_FOR_EVENT(pHCDPipe->DeleteSynchEventID, OS_WAIT_INFINITE);        /* Delete the event created */        OS_DESTROY_EVENT(pHCDPipe->DeleteSynchEventID);        /* Free the PIPE */        OS_FREE(pHCDPipe);        }/* End of else */    OS_LOG_MESSAGE_LOW(EHCD,"usbEhcdDeletePipe - Exit\n",0,0,0,0);    /* Return the success status */    return USBHST_SUCCESS;    }/* End of function usbEhcdDeletePipe() *//***************************************************************************** usbEhcdModifyDefaultPipe - modifies the default pipe characteristics.** This function is used to modify the properties (device speed and maximum * packet size) of the default pipe (address 0, endpoint 0). <uBusIndex> * specifies the host controller bus index. <uDefaultPipeHandle> holds the* pipe handle of the default pipe. <uDeviceSpeed> is the speed of the * device which needs to be modified. <uMaxPacketSize> is the maximum packet* size of the default pipe which needs to be modified. <uHighSpeedHubInfo>* specifies the nearest high speed hub and the port number information. This* information will be used to handle a split transfer to the full / low speed* device. The high byte will hold the high speed hub address. The low byte* will hold the port number to which the USB 1.1 device is connected.*** RETURNS: *   USBHST_SUCCESS - Returned if the deafult pipe properties were modified*       successfully.*   USBHST_INVALID_PARAMETER - Returned if the parameters are not valid.** ERRNO:*   None.** \NOMANUAL*/USBHST_STATUS usbEhcdModifyDefaultPipe    (    UINT8   uBusIndex,          /* Host controller bus index               */    UINT32  uDefaultPipeHandle, /* Handle to the default pipe              */    UINT8   uDeviceSpeed,       /* Speed of the device in default state    */    UINT8   uMaxPacketSize,     /* Maximum packet size of the default pipe */    UINT16   uHighSpeedHubInfo  /* High speed hub info for USB 1.1 device  */    )    {    /* To hold the pointer to the EHCD maintained pipe data structure */    pUSB_EHCD_PIPE pHCDPipe = NULL;    /* Pointer to the HCD specific data structure */    pUSB_EHCD_DATA  pHCDData = NULL;	/* WindView Instrumentation */	USB_HCD_LOG_EVENT(		USB_EHCI_WV_TRANSFER,		"usbEhcdModifyDefaultPipe() starts",		USB_EHCD_WV_FILTER);    OS_LOG_MESSAGE_LOW(EHCD,"usbEhcdModifyDefaultPipe - Entry\n",0,0,0,0);    /* Check the validity of the parameters */    if ((g_EHCDControllerCount <= uBusIndex) ||        (0 == uDefaultPipeHandle) ||        (USBHST_HIGH_SPEED != uDeviceSpeed &&         USBHST_FULL_SPEED != uDeviceSpeed &&         USBHST_LOW_SPEED != uDeviceSpeed))        {        OS_LOG_MESSAGE_HIGH(EHCD,"usbEhcdModifyDefaultPipe - parameters not valid\n",0,0,0,0);        return USBHST_INVALID_PARAMETER;        }    /* Extract the global data structure */    pHCDData = g_pEHCDData[uBusIndex];    /* Assert if the global pointer is not valid */    OS_ASSERT(NULL != pHCDData);    /* Check if this request is for the Root hub */    if (0 == pHCDData->RHData.uDeviceAddress)        {        return USBHST_SUCCESS;        }    /* WARNING : This function will change on split support */    /* Extract the default pipe handle */    pHCDPipe = (pUSB_EHCD_PIPE)uDefaultPipeHandle;    /* Flush the contents of the QH to RAM */    CACHE_DMA_INVALIDATE (pHCDPipe->pQH, sizeof(USB_EHCD_QH));    /* Modify the default pipe contents */    USB_EHCD_SET_BITFIELD(QH,                          pHCDPipe->pQH->uEndPointCharacteristics,                          uDeviceSpeed,                          ENDPOINT_CHARACTERISTICS_ENDPT_SPEED );                             /*pHCDPipe->pQH->dword2.mult = 1;*/   USB_EHCD_SET_BITFIELD(QH,                         pHCDPipe->pQH->uEndPointCapabilities,                         1,                         ENDPOINT_CAPABILITIES_MULT  );    /* Update the hub address and port number for the USB 1.1 device */    if (uDeviceSpeed != USBHST_HIGH_SPEED)        {        USB_EHCD_SET_BITFIELD(QH,                              pHCDPipe->pQH->uEndPointCapabilities,                              ((uHighSpeedHubInfo &                                    USB_EHCD_PARENT_HUB_ADDRESS_MASK)>> 8),                              ENDPOINT_CAPABILITIES_HUB_ADDR );        USB_EHCD_SET_BITFIELD(QH,                              pHCDPipe->pQH->uEndPointCapabilities,                              (uHighSpeedHubInfo &                                        USB_EHCD_HUB_PORT_NUMBER_MASK),                               ENDPOINT_CAPABILITIES_PORT_NUMBER);        }    else        {        USB_EHCD_SET_BITFIELD(QH,                              pHCDPipe->pQH->uEndPointCapabilities,                              0,                              ENDPOINT_CAPABILITIES_HUB_ADDR );        USB_EHCD_SET_BITFIELD(QH,                              pHCDPipe->pQH->uEndPointCapabilities,                              0,                              ENDPOINT_CAPABILITIES_PORT_NUMBER);        }    /*     * This field is to be set if it is not a high speed device and the     * endpoint is a control endpoint     */    if (USBHST_HIGH_SPEED != uDeviceSpeed)        {        USB_EHCD_SET_BITFIELD(QH,                              pHCDPipe->pQH->uEndPointCharacteristics,                              1 ,                              ENDPOINT_CHARACTERISTICS_CONTROL_ENDPOINT_FLAG);        USB_EHCD_SET_BITFIELD(QH,                              pHCDPipe->pQH->uEndPointCharacteristics,                              0,                              ENDPOINT_CHARACTERISTICS_RL);        }    else        {        USB_EHCD_SET_BITFIELD(QH,                              pHCDPipe->pQH->uEndPointCharacteristics,                              USB_EHCD_MAX_NAK_RATE,                              ENDPOINT_CHARACTERISTICS_RL);        }    /* Modify the maximum packet size */    USB_EHCD_SET_BITFIELD(QH,                          pHCDPipe->pQH->uEndPointCharacteristics,                          uMaxPacketSize,                          ENDPOINT_CHARACTERISTICS_MAXIMUM_PACKET_LENGTH);    /* Flush the contents of the QH to RAM */    CACHE_DMA_FLUSH (pHCDPipe->pQH, sizeof(USB_EHCD_QH));    /* Invalidate the cache */    CACHE_DMA_INVALIDATE (pHCDPipe->pQH, sizeof(USB_EHCD_QH));    OS_LOG_MESSAGE_LOW(EHCD,"usbEhcdModifyDefaultPipe - Exit\n",0,0,0,0);    return USBHST_SUCCESS;    }/* End of usbEhcdModifyDefaultPipe() *//***************************************************************************** usbEhcdIsBandwidthAvailable - checks the bandwidth availability** This function is used to check whether there is enough* bandwidth to support the new configuration or an alternate interface setting* of an interface.* <uBusIndex> specifies the host controller bus index.* <uDeviceAddress> specifies the device address. <uDeviceSpeed> is the speed* of the device which needs to be modified. <pCurrentDescriptor> is the pointer* to the current configuration or interface descriptor. If the pNewDescriptor* corresponds to a USB configuration descriptor, this parameter is ignored* (i.e. this parameter can be NULL). <pNewDescriptor> is the pointer to the new* configuration or interface descriptor.** RETURNS: *   USBHST_SUCCESS - Returned if the new configuration or*       new alternate interface can be supported (ALWAYS)*   USBHST_INVALID_PARAMETER - Returned if the parameters are*       not valid.*   USBHST_INSUFFICIENT_BANDWIDTH - Returned if bandwidth is*       not available.** ERRNO:*   None.** \NOMANUAL*/USBHST_STATUS usbEhcdIsBandwidthAvailable    (    UINT8   uBusIndex,            /* Host controller bus index */    UINT8   uDeviceAddress,       /* Handle to the device addr */    UINT8   uDeviceSpeed,         /* Speed of the device in default state */    UCHAR * pCurrentDescriptor,   /* Ptr to current configuration */    UCHAR * pNewDescriptor        /* Ptr to new configuration */    )    {	/* WindView Instrumentation */    USB_HCD_LOG_EVENT(		USB_EHCI_WV_TRANSFER,		"usbEhcdIsBandwidthAvailable() starts",		USB_EHCD_WV_FILTER);#if 0    /* To hold the pointer to the descriptor header */    pUSBHST_DESCRIPTOR_HEADER   pDescHeader = NULL;    /* To hold the status of the request */    USBHST_STATUS   Status = USBHST_FAILURE;    /* To hold the bandwidth availability status */    BOOLEAN bIsBwAvailable = FALSE;    /* Pointer to the HCD specific data structure */    pEHCD_DATA  pHCDData = NULL;    OS_LOG_MESSAGE_LOW(EHCD,"usbEhcdIsBandwidthAvailable - Entry\n",0,0,0,0);    /* Check the validity of the parameters */    if (g_EHCDControllerCount <= uBusIndex ||        0 == uDeviceAddress ||        NULL == pNewDescriptor)        {        OS_LOG_MESSAGE_HIGH(EHCD,"Parameters are not valid\n",0,0,0,0);        return USBHST_INVALID_PARAMETER;        }    /* Extract the global data structure */    pHCDData = g_pEHCDData[uBusIndex];    /* Assert if the global pointer is not valid */    OS_ASSERT(NULL != pHCDData);    /* If this request is for the Root hub, return success */    if (uDeviceAddress == pHCDData->RHData.uDeviceAddress)        {        return USBHST_SUCCESS;        }    /* Extract the descriptor header of the new descriptor */    pDescHeader = (pUSBHST_DESCRIPTOR_HEADER)pNewDescriptor;    /* Check if it is an interface descriptor */    if (USBHST_INTERFACE_DESC == pDescHeader->uDescriptorType)        {        /* To hold the pointer to the current interface descriptor */        pUSBHST_INTERFACE_DESCRIPTOR pCurrentInterfaceDesc = NULL;        /* To hold the pointer to the new interface descriptor */        pUSBHST_INTERFACE_DESCRIPTOR pNewInterfaceDesc = NULL;        /* Get the current interface descriptor */        pCurrentInterfaceDesc =        (pUSBHST_INTERFACE_DESCRIPTOR)pCurrentDescriptor;        /* Get the new interface descriptor */        pNewInterfaceDesc =        (pUSBHST_INTERFACE_DESCRIPTOR)pNewDescriptor;        /*         * Call the function to check whether the bandwidth can         * be accomodated.         */        bIsBwAvailable = USB_EHCD_CheckBandwidthInterface(pHCDData,                                                          uDeviceAddress);        }    /* Check if it is a configuration descriptor */    else if (USBHST_CONFIG_DESC == pDescHeader->uDescriptorType)        {        /* To hold the pointer to the current configuration descriptor */        pUSBHST_CONFIG_DESCRIPTOR pCurrentConfigDesc = NULL;        /* To hold the pointer to the new configuration descriptor */        pUSBHST_CONFIG_DESCRIPTOR pNewConfigDesc = NULL;        /* Check if the current descriptor is NULL */        if (NULL != pCurrentDescriptor)

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
蜜臀91精品一区二区三区| 久久精品免费观看| 欧美成人a视频| 91视视频在线观看入口直接观看www | 欧美日韩久久一区| 国产成人免费视频网站| 午夜精品久久久久久不卡8050| 国产欧美精品一区二区色综合 | 在线观看日产精品| 国产精品一区二区不卡| 日韩国产在线观看| 亚洲欧洲日本在线| 久久蜜桃av一区精品变态类天堂| 欧美性猛交xxxxxx富婆| 9久草视频在线视频精品| 精品一区二区三区影院在线午夜| 亚洲国产欧美在线人成| 国产精品每日更新| www日韩大片| 91麻豆精品国产91久久久使用方法 | 一区二区三区中文字幕精品精品| 久久久99精品久久| 日韩一区二区在线播放| 欧美吞精做爰啪啪高潮| 9l国产精品久久久久麻豆| 国产精品综合网| 久久丁香综合五月国产三级网站| 日韩激情视频网站| 一区二区三区不卡视频| 亚洲色图欧美偷拍| 国产色一区二区| 国产亚洲欧美日韩在线一区| 精品免费日韩av| 精品日韩99亚洲| 久久伊人蜜桃av一区二区| 日韩欧美美女一区二区三区| 欧美一区二区三区四区久久| 欧美一级理论片| 91精品国产91久久久久久最新毛片| 欧美日韩中文精品| 欧美视频日韩视频在线观看| 欧美在线短视频| 欧美亚一区二区| 欧美日韩国产bt| 日韩丝袜情趣美女图片| 欧美一区二区观看视频| 欧美大片国产精品| 精品国精品国产尤物美女| 日韩欧美123| 久久亚洲精华国产精华液| 久久久精品免费网站| 中文字幕乱码日本亚洲一区二区| 国产欧美综合色| 日韩美女精品在线| 亚洲午夜精品网| 日本特黄久久久高潮| 久久成人免费网| 国产精品 欧美精品| 成人污视频在线观看| 91在线观看地址| 欧日韩精品视频| 日韩一级视频免费观看在线| 精品奇米国产一区二区三区| 国产精品天美传媒沈樵| 亚洲精品视频一区二区| 五月天激情综合网| 国产一区二区三区高清播放| 风间由美一区二区三区在线观看 | 欧美日韩美少妇| 精品国产乱码久久久久久牛牛 | 一区二区三区在线视频观看58| 性做久久久久久免费观看欧美| 免费欧美在线视频| 国产99一区视频免费| 91极品视觉盛宴| 精品国产制服丝袜高跟| 中文字幕一区二区视频| 三级久久三级久久久| 国产福利精品一区二区| 色综合久久久网| 精品久久一二三区| 亚洲精品国产无套在线观| 久久不见久久见免费视频7| 99这里只有精品| 日韩一区二区免费视频| 国产精品久久久久久久第一福利| 日韩精品电影一区亚洲| 成人高清视频免费观看| 日韩一区二区三区av| 亚洲色图19p| 国产一区在线观看视频| 欧美mv日韩mv国产| 亚洲欧美怡红院| 激情综合五月婷婷| 欧美在线观看视频一区二区| 国产亚洲成年网址在线观看| 亚洲国产色一区| 成人99免费视频| 亚洲精品一区二区三区影院| 亚洲综合在线电影| 国产精品69毛片高清亚洲| 欧美日韩在线综合| 国产精品欧美久久久久一区二区| 日本特黄久久久高潮| 日本高清免费不卡视频| 中文无字幕一区二区三区| 日本欧美一区二区三区乱码 | 91视视频在线观看入口直接观看www| 日韩精品一区二区三区蜜臀| 一区二区三区在线免费视频| 国产精品亚洲人在线观看| 欧美精品日韩一区| 亚洲激情第一区| 成人动漫一区二区在线| 精品sm捆绑视频| 男女激情视频一区| 欧美中文字幕一区二区三区亚洲 | ...av二区三区久久精品| 国内精品伊人久久久久av影院 | 日韩免费观看高清完整版在线观看 | 国产精品区一区二区三| 九九精品一区二区| 日韩欧美在线网站| 免费成人在线观看| 欧美日韩大陆一区二区| 亚洲一区二区三区视频在线播放| 97精品久久久久中文字幕| 国产精品毛片久久久久久久| 岛国av在线一区| 国产日韩精品一区二区浪潮av| 国产一区欧美二区| 精品国产免费视频| 国精品**一区二区三区在线蜜桃| 日韩精品自拍偷拍| 美女一区二区久久| 欧美电影免费提供在线观看| 蜜桃av一区二区在线观看| 91精品国产综合久久福利 | 91美女视频网站| 一区二区三区在线视频免费 | 婷婷国产在线综合| 欧美喷潮久久久xxxxx| 五月天丁香久久| 91精品国产综合久久蜜臀| 日韩高清在线不卡| 日韩欧美在线网站| 国产一区二三区好的| 久久久综合精品| 99久久精品一区二区| 亚洲精品视频一区二区| 欧美日韩精品三区| 久久精品国产99国产| 久久久久久久久久久久久久久99| 国产成人亚洲精品狼色在线 | 麻豆免费精品视频| 26uuu另类欧美| 不卡影院免费观看| 亚洲精品乱码久久久久久| 欧美日韩在线综合| 久久疯狂做爰流白浆xx| 国产欧美日韩不卡| 91国产福利在线| 日韩和欧美的一区| 久久你懂得1024| 91久久免费观看| 日韩av中文字幕一区二区| 日韩精品一区二区三区视频 | 99re在线视频这里只有精品| 亚洲电影一区二区| 欧美mv日韩mv| 色综合色狠狠综合色| 日韩精品久久理论片| 国产婷婷色一区二区三区四区| 91精彩视频在线| 激情欧美一区二区| 亚洲天天做日日做天天谢日日欢| 欧美日韩国产区一| 国产精品主播直播| 亚洲制服丝袜在线| xnxx国产精品| 日本精品一区二区三区高清| 久久不见久久见免费视频7| 日韩理论片一区二区| 欧美一区二区三区不卡| 成人一道本在线| 日韩高清不卡在线| 国产精品女上位| 91精品国产高清一区二区三区 | 国产精品一区二区你懂的| 成人欧美一区二区三区小说| 在线综合亚洲欧美在线视频| 丁香婷婷综合色啪| 日韩一区精品视频| 中文字幕中文字幕一区| 制服丝袜亚洲色图| 91麻豆免费看| 国产夫妻精品视频| 日韩 欧美一区二区三区| 亚洲老司机在线| 国产精品网站导航|