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

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

?? usbhubclassinterface.c

?? vxWorks下usb2.0的usbHUB驅動源碼
?? C
?? 第 1 頁 / 共 4 頁
字號:
            } /* End of (uPortIndex > (pParentHub->.... */    /*     * Retrieve HUB_INFO structure from     * parentHub::pPortList[uPortIndex]::pHub.     */    pPort = pParentHub->pPortList[uPortIndex];    /* update the hub information */    OS_ASSERT( NULL != pPort->pHub);                                /* Verify */    pHub=pPort->pHub;    /* If the HUB_INFO structure is NULL then return. */    if (NULL == pHub)    {        /* Debug Message */        OS_LOG_MESSAGE_HIGH(            HUB,"usbHubSuspend: pHub is NULL \n",0,0,0,0);        return;    } /* End of if (NULL== pHub) */    /* Call the USBHST_CancelURB function to cancel the URB for the hub. */    usbHstURBCancel(&(pHub->StatusChangeURB));    /*     * for all the ports in the pHub::pPortList  which are enabled,     * i.    Call the g_USBHSTFunctionList::USBHST_SuspendDevice() function     *       for the pHub::pPortList[uPortCount]::DeviceHandle.     */    for (uPortCount = 0;          uPortCount < pHub->HubDescriptor.bNbrPorts;          uPortCount++)    {        /* Retrieve the HUB_PORT_INFO structure */        pUSB_HUB_PORT_INFO pPort = pHub->pPortList[uPortCount];        /* Check if the port is enabled */        if (NULL != pPort)        {            /* Debug Message */            OS_LOG_MESSAGE_LOW(                HUB,                "usbHubSuspend : suspending device %d\n",                uPortCount,                0,                0,                0);            /* Call function to suspend the device */            g_usbHstFunctionList.UsbdToHubFunctionList.suspendDevice                (                pPort->uDeviceHandle                );        } /* End of If (NULL != pPort) */    } /* End of for (uPortCount.... */		/* WindView Instrumentation */		USB_HUB_LOG_EVENT(			USB_HUB_WV_DEVICE,			"Exiting usbHubSuspend() Function",			USB_HUB_WV_FILTER);    /* Debug Message */    OS_LOG_MESSAGE_LOW(        HUB,        "usbHubSuspend : Done devH=0x%x pCon=0x%x\n",        uDeviceHandle,        (UINT32)pContext,        0,        0);            /* Return */    return;} /* End of function HUB_SuspendHub() *//***************************************************************************** usbHubResume - called by the USB Host Software Stack  for resuming a hub.** This routine is called by the USB Host Software Stack  for resuming a hub.** RETURNS: N/A** ERRNO: None** \NOMANUAL*/LOCAL void usbHubResume     (    UINT32 uDeviceHandle,    void * pContext    )    {    /* The pointer to the parent hub */    pUSB_HUB_INFO pParentHub       = NULL;    /* port number of the device */    UINT8 uPortIndex          = 0;    /* port count for the hub  */    UINT8 uPortCount           = 0;    /* Storage for the hub structure */    pUSB_HUB_INFO pHub             = NULL;    /* The port Information */    pUSB_HUB_PORT_INFO pPort       = NULL;    /* Result storage */    USBHST_STATUS Result;    /* WindView Instrumentation */    USB_HUB_LOG_EVENT(			USB_HUB_WV_DEVICE,			"Entering usbHubResume() Function",			USB_HUB_WV_FILTER);    /* Debug Message */    OS_LOG_MESSAGE_LOW(        HUB,        "usbHubResume : Called devH=0x%x pCon=0x%x\n",        uDeviceHandle,        (UINT32)pContext,        0,        0);    /* If pContext is NULL then return. */    if (NULL==pContext)    {        /* Debug Message */        OS_LOG_MESSAGE_MEDIUM(            HUB,"usbHubResume : pContext is NULL\n",0,0,0,0);        return;    } /* End of if (NULL==pContext..*/    /* Get the parent hub pointer from the pContext. */    pParentHub= (pUSB_HUB_INFO) pContext;    /* get the port number */    uPortIndex = usbHubFindPortNumber(pParentHub,uDeviceHandle);    /* Check  if the port is found */    if (USB_PORT_NUMBER_NOT_FOUND == uPortIndex)    {        /* Debug Message */        OS_LOG_MESSAGE_HIGH(            HUB,"usbHubResume : port num not found\n",0,0,0,0);        return;    } /* End of if (PORT_NUM.. */    /* Check if the port number is within limits */    if (uPortIndex > (pParentHub->HubDescriptor.bNbrPorts))    {        /* Debug Message */        OS_LOG_MESSAGE_HIGH(            HUB,            "usbHubResume : port %d > %d\n",            uPortIndex,            pParentHub->HubDescriptor.bNbrPorts,            0,            0);        return;    } /* End of (uPortIndex > (pParentHub->.... */    /*     * Retrieve HUB_INFO structure from     * parentHub::pPortList[uPortIndex]::pHub.     */    pPort = pParentHub->pPortList[uPortIndex];    /* update the hub information */    OS_ASSERT( NULL != pPort->pHub);                                /* Verify */    pHub=pPort->pHub;    /* If the HUB_INFO structure is NULL then return. */    if (NULL == pHub)    {        /* Debug Message */        OS_LOG_MESSAGE_HIGH(            HUB,"usbHubResume : pHub is NULL\n",0,0,0,0);        return;    } /* End of if (NULL== pHub) */    /*     * Call the HUB_SubmitInterruptRequest() function to submit the URB for the     * hub.     */    Result = usbHubSubmitInterruptRequest(pHub);    /* If the SubmitInterruptRequest fails then,     *  i.    Call the HUB_SubmitFeature() to disable the port.     * ii.    Call the HUB_RemoveDevice() function to     *        delete the device.     * iii.   Return.     */    if (USBHST_SUCCESS != Result)    {        /* Debug Message */        OS_LOG_MESSAGE_HIGH(            HUB,            "usbHubResume :INRequest submission failed 0x%x\n",            Result,            0,            0,            0);        /* Disable the port */        Result = USB_HUB_CLEAR_PORT_FEATURE(pParentHub,uPortIndex,USB_PORT_ENABLE);        /* 9/5/2k3:NM: Changed here to centralise the effect*/        usbHubRemoveDevice(pParentHub,uPortIndex);        /* return */        return;    }/* End of if (USBHST_SUCCESS != Result ) */    /*     * for all the ports in the pHub::pPortList  which are enabled,     * i.    Call the g_USBHSTFunctionList::USBHST_ResumeDevice() function     *       for the pHub::pPortList[uPortCount]::DeviceHandle.     */    for (uPortCount = 0;         uPortCount < pHub->HubDescriptor.bNbrPorts;         uPortCount++)    {        /* Retrieve the HUB_PORT_INFO structure */        pUSB_HUB_PORT_INFO pPort = pHub->pPortList[uPortCount];        /* Check if the port is enabled */        if (NULL != pPort)        {            /* Debug Message */            OS_LOG_MESSAGE_HIGH(                HUB,                "usbHubResume : waking up port %d \n",                uPortCount,                0,                0,                0);            /* Call function to resume the device */            g_usbHstFunctionList.UsbdToHubFunctionList.resumeDevice                (                pPort->uDeviceHandle                );        } /* End of If (NULL != pPort) */    } /* End of for (uPortCount.... */		/* WindView Instrumentation */		USB_HUB_LOG_EVENT(			USB_HUB_WV_DEVICE,			"Exiting usbHubResume() Function",			USB_HUB_WV_FILTER);    /* Debug Message */    OS_LOG_MESSAGE_LOW(        HUB,        "usbHubResume : Done devH=0x%x pCon=0x%x\n",        uDeviceHandle,        (UINT32)pContext,        0,        0);    /* Return */    return;} /* End of function HUB_ResumeHub() *//***************************************************************************** usbHubSelectiveSuspendDevice -selectively suspending a device.** Called by the USB Host Software Stack for selectively suspending a device.* In this process, it selectively suspends  the port of the parent hub where* the device is connected.** RETURNS: N/A** ERRNO: None** \NOMANUAL*/LOCAL USBHST_STATUS usbHubSelectiveSuspendDevice     (    UINT32 uDeviceHandle    )    {    /* The pointer to the parent hub */    pUSB_HUB_INFO pParentHub       = NULL;    /* port number of the device */    UINT8 uPortIndex          = 0;    /* The port Information */    pUSB_HUB_PORT_INFO pPort       = NULL;    /* Storage for the result */    USBHST_STATUS  Result;    /* WindView Instrumentation */    USB_HUB_LOG_EVENT(			USB_HUB_WV_DEVICE,			"Entering usbHubSelectiveSuspendDevice() Function",			USB_HUB_WV_FILTER);    /* Debug Message */    OS_LOG_MESSAGE_LOW(        HUB,        "usbHubSelectiveSuspendDevice: Called devH=0x%x\n",        uDeviceHandle,        0,        0,        0);    /*     * Call HUB_FindParentHubInBuses() to find the parent hub and If this     * is not found, then return USBHST_INVALID_PARAMETER.     */    pParentHub = usbHubFindParentHubInBuses(uDeviceHandle);    /* if not found return USBHST_INVALID_PARAMETER */    if (NULL == pParentHub)    {        /* Debug Message */        OS_LOG_MESSAGE_MEDIUM(            HUB,            "usbHubSelectiveSuspendDevice: parent hub not found\n",            0,            0,            0,            0);                    return USBHST_INVALID_PARAMETER;            }/* End of if (NULL == pParentHub ) */    /*     * HUB_FindPortNumber() to find the port number for this device handle.     * If this is not found, then return USBHST_INVALID_PARAMETER.     */    uPortIndex = usbHubFindPortNumber(pParentHub,uDeviceHandle);    /* Check  if the port is found */    if (USB_PORT_NUMBER_NOT_FOUND == uPortIndex)    {        /* Debug Message */        OS_LOG_MESSAGE_MEDIUM(            HUB,            "usbHubSelectiveSuspendDevice: port num not found\n",            0,            0,            0,            0);                    return USBHST_INVALID_PARAMETER;            } /* End of if (PORT_NUM.. */    /* Check if the port number is within limits */    if (uPortIndex > (pParentHub->HubDescriptor.bNbrPorts))    {        /* Debug Message */        OS_LOG_MESSAGE_MEDIUM(            HUB,            "usbHubSelectiveSuspendDevice: port=%d > %d\n",            uPortIndex,            pParentHub->HubDescriptor.bNbrPorts,            0,            0);                    return USBHST_INVALID_PARAMETER;            } /* End of (uPortIndex > (pParentHub->.... */    /*     * Retrieve HUB_INFO structure from     * parentHub::pPortList[uPortIndex]::pHub.     */    pPort = pParentHub->pPortList[uPortIndex];    OS_ASSERT( NULL == pPort->pHub);                                /* Verify */    /*     * Call the HUB_SubmitFeature() function to submit a selective suspend to     * the parent hub on the port number.     * Note: The actual port number is 1 more than the port index     */    Result = USB_HUB_SET_PORT_FEATURE(pParentHub,uPortIndex,USB_PORT_SUSPEND);		/* WindView Instrumentation */		USB_HUB_LOG_EVENT(			USB_HUB_WV_DEVICE,			"Exiting usbHubSelectiveSuspendDevice() Function",			USB_HUB_WV_FILTER);    /* Debug Message */    OS_LOG_MESSAGE_LOW(        HUB,         "usbHubSelectiveSuspendDevice: Done devH=0x%x result =0x%x\n",        uDeviceHandle,        Result,        0,        0);    /* Return the result of the submission.*/    return Result;} /* End of function HUB_SelectiveSuspendDevice() *//***************************************************************************** usbHubSelectiveResumeDevice - selectively resuming a device.** Called by the USB Host Software Stack for selectively resuming a device.* In this process it selectively resumes the port of the parent hub where the* device is connected.*** RETURNS: USBHST_STATUS** ERRNO: None** \NOMANUAL*/LOCAL USBHST_STATUS usbHubSelectiveResumeDevice     (    UINT32 uDeviceHandle    )    {   /* The pointer to the parent hub */    pUSB_HUB_INFO pParentHub       = NULL;    /* port number of the device */    UINT8 uPortIndex          = 0;    /* The port Information */    pUSB_HUB_PORT_INFO pPort       = NULL;    /* The Result Storage */    USBHST_STATUS Result      = USBHST_FAILURE;    /* WindView Instrumentation */    USB_HUB_LOG_EVENT(			USB_HUB_WV_DEVICE,			"Entering usbHubSelectiveResumeDevice() Function",			USB_HUB_WV_FILTER);    /* Debug Message */    OS_LOG_MESSAGE_LOW(        HUB,        "usbHubSelectiveResumeDevice: Called devH=0x%x\n",        uDeviceHandle,        0,        0,        0);    /*     * Call HUB_FindParentHubInBuses() to find the parent hub and If this     * is not found, then return USBHST_INVALID_PARAMETER.     */    pParentHub = usbHubFindParentHubInBuses(uDeviceHandle);    /* if not found return USBHST_INVALID_PARAMETER */    if (NULL == pParentHub)    {        /* Debug Message */        OS_LOG_MESSAGE_MEDIUM(            HUB, "usbHubSelectiveResumeDevice: parent hub not found\n",0,0,0,0);        return USBHST_INVALID_PARAMETER;

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩三级免费观看| 久草在线在线精品观看| 欧美精品一区二区三区在线| 欧美日韩一区二区在线视频| 精品视频在线免费看| 精品久久国产老人久久综合| 精品日韩欧美在线| 夜夜亚洲天天久久| 婷婷丁香久久五月婷婷| 日韩成人午夜精品| 国产专区欧美精品| 波多野洁衣一区| 色美美综合视频| 91网址在线看| 欧美日韩国产乱码电影| 91精品国产综合久久久久久| 日韩精品综合一本久道在线视频| 国产视频一区二区在线观看| 亚洲图片另类小说| 奇米888四色在线精品| 国产福利一区二区三区视频在线 | 亚洲国产aⅴ成人精品无吗| 午夜精品久久久久久久| 成人免费观看av| 欧美日韩二区三区| 亚洲最新视频在线观看| 99精品视频免费在线观看| 在线电影一区二区三区| 久久先锋影音av| 国产精品国产a| 午夜精品久久久久久久99樱桃| 色综合天天综合网天天狠天天| 欧美浪妇xxxx高跟鞋交| 亚洲一区二区视频在线观看| 国产一级精品在线| 欧美日韩的一区二区| 亚洲已满18点击进入久久| 日本道精品一区二区三区| 亚洲精品欧美二区三区中文字幕| 精品一区二区三区免费毛片爱| 日韩免费看的电影| 久久99国产精品尤物| 26uuu精品一区二区在线观看| 国内一区二区视频| 国产精品日产欧美久久久久| 免费观看30秒视频久久| 精品三级在线观看| 国产精品一区二区三区99| 欧美日韩一级大片网址| 天天av天天翘天天综合网| 国产自产高清不卡| 日本一区二区三区四区| 极品少妇一区二区三区精品视频| 26uuu另类欧美亚洲曰本| 国产成人av网站| 日韩精品一区二区三区四区视频| 麻豆国产一区二区| 欧美一区二区三区视频免费| 亚洲一二三区视频在线观看| 91精品福利在线一区二区三区| 国产在线不卡一卡二卡三卡四卡| 中文字幕欧美日韩一区| 风间由美一区二区三区在线观看 | 亚洲精品国产品国语在线app| 在线观看一区不卡| 亚洲欧美一区二区三区极速播放| 国产成人在线视频网站| 亚洲欧美成人一区二区三区| 欧美一区二区在线看| 岛国一区二区三区| 午夜精品一区二区三区电影天堂| 久久久影院官网| 国产综合久久久久久久久久久久| 亚洲欧洲精品一区二区精品久久久 | 欧洲国内综合视频| 精品一二线国产| 亚洲视频电影在线| 久久亚洲综合色一区二区三区 | 亚洲久草在线视频| 欧美变态口味重另类| 色哟哟一区二区三区| 狠狠色综合色综合网络| 一区二区三区小说| 国产亚洲欧美一区在线观看| 7777精品伊人久久久大香线蕉超级流畅 | 精品一区二区三区av| 亚洲国产综合91精品麻豆| 国产欧美一区二区精品性色| 91精品国产欧美一区二区18 | 粉嫩13p一区二区三区| 日本欧美在线观看| 亚洲一区二区三区国产| 国产精品嫩草影院av蜜臀| 欧美成人伊人久久综合网| 欧洲色大大久久| 成人黄色网址在线观看| 一级女性全黄久久生活片免费| 久久综合九色综合欧美就去吻| 精品视频在线看| 91一区二区在线| 成人性生交大片免费看视频在线| 另类小说综合欧美亚洲| 国产精品高潮呻吟久久| 精品毛片乱码1区2区3区| 欧美日韩精品免费观看视频| 一本久道中文字幕精品亚洲嫩| 粉嫩绯色av一区二区在线观看| 国内成人免费视频| 久久99久久久久久久久久久| 亚洲成人免费在线| 日本一区二区综合亚洲| 精品国产麻豆免费人成网站| 欧美不卡一区二区三区| 日韩欧美国产一二三区| 日韩一区二区三区在线| 日韩欧美成人激情| 日韩视频中午一区| 久久人人97超碰com| 久久精品一区蜜桃臀影院| 国产欧美日韩另类一区| 国产欧美综合在线观看第十页 | 国产白丝精品91爽爽久久 | 久久综合国产精品| 久久久精品国产免费观看同学| 久久久久久麻豆| 国产欧美一区视频| 亚洲欧美电影一区二区| 亚洲成人免费看| 老司机午夜精品| 国产成人精品网址| 91视频xxxx| 制服丝袜成人动漫| 精品精品欲导航| 久久久青草青青国产亚洲免观| 国产精品美女视频| 一区二区高清视频在线观看| 免费欧美高清视频| 国产91在线观看| 91麻豆国产在线观看| 欧美高清www午色夜在线视频| 日韩欧美国产一二三区| 欧美激情一区二区| 亚洲一区二区美女| 激情综合色综合久久| 99久久久精品免费观看国产蜜| 在线观看欧美精品| 欧美成人精品1314www| 亚洲国产精品精华液ab| 亚洲sss视频在线视频| 精品无人区卡一卡二卡三乱码免费卡| 国产白丝网站精品污在线入口| 欧美私人免费视频| 欧洲av在线精品| 欧美mv日韩mv| 亚洲美女视频在线| 久久国产精品露脸对白| 91一区在线观看| 日韩一区二区免费电影| 亚洲天堂免费在线观看视频| 亚洲不卡在线观看| 成人午夜免费视频| 欧美一级免费观看| 亚洲伦在线观看| 狠狠色丁香婷婷综合久久片| 欧美亚一区二区| 日本一区二区三区在线不卡| 青青国产91久久久久久| 91麻豆福利精品推荐| 久久久久久久综合日本| 日韩精品亚洲专区| 99国产精品久久久| 国产日产亚洲精品系列| 青娱乐精品在线视频| 日本大香伊一区二区三区| 国产欧美综合在线观看第十页 | 欧美刺激午夜性久久久久久久| 亚洲精选免费视频| 国产真实乱偷精品视频免| 欧美日韩电影一区| 一区二区三区中文字幕电影| 成人av网站在线| 26uuu另类欧美| 久久99精品久久久久久国产越南 | 99久久国产免费看| 久久女同精品一区二区| 蜜臀av亚洲一区中文字幕| 精品视频免费在线| 亚洲综合色丁香婷婷六月图片| 99国产一区二区三精品乱码| 国产欧美精品一区| 丁香桃色午夜亚洲一区二区三区| ww久久中文字幕| 国产一二精品视频| 久久久精品免费免费| 国产精品888| 国产亚洲精品久| 成人性生交大片免费看在线播放 | 亚洲午夜久久久| 91福利在线播放| 一区二区三区在线视频播放|