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

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

?? usbhubutility.c

?? vxWorks下usb2.0的usbHUB驅動源碼
?? C
?? 第 1 頁 / 共 5 頁
字號:
            /* Free the memory allocated */            OS_FREE (pStatusData);            /* Free the memory allocated */            OS_FREE (pNewHub);             return USBHST_INVALID_PARAMETER;	}/* end of switch(pParseDeviceDesc.......)*/     /* check if Hub is a Multiple TT hub */    if(pNewHub->uHubTTInfo == 2) 	{        Result = usbHstSetInterface (uDeviceHandle,                            0, /* interface number */                            1); /* alternate interface Setting*/                 /* Check the result */        if ( USBHST_SUCCESS != Result)		{            /* Debug Message */            OS_LOG_MESSAGE_HIGH(                HUB,"usbHubConfigure:getStatusOfDevice fail R=0x%x \n",Result,0,0,0);            /* Free the memory allocated */            OS_FREE (pDeviceDescriptor);            /* Free the memory allocated */             OS_FREE (pConfigDescriptor);            /* Free the memory allocated */             OS_FREE (pStatusChangeData);            /* Free the memory allocated */             OS_FREE (pStatusData);            /* Free the memory allocated */            OS_FREE (pNewHub);            return Result;		} /* End of (USBHST_SUCCESS !=Result ) */	}/*end of if(pNewHub->uHubTTInfo ...*/    /*     * Populate the HUB_INFO structure, HUB_INFO::HubDescriptor structure by     * taking the necessary values including parsing the hub descriptor and     * the configuration descriptor.     */    /* the device handle */    pNewHub->uDeviceHandle=uDeviceHandle;    /*The pointer to the status change bit map */    pNewHub->pStatus = pStatusData;    /* store the parent bus */    pNewHub->pBus=pBus;    /*     * how much power can this device provide to each port?      * if this is a self powered config, then we can support 500 mA.     * if this is a bus powered, we can support a max of 100 mA.     */    pNewHub->uPowerPerPort =            (((UINT8)(uStatusOfHub&0xFF))&(0x01))? /* Self powered?*/             250:50 ;                              /* multiply by 2 to get mA */    /* The interrupt endpoint for the Hub */    pNewHub->uInterruptEndpointNumber = pParseEndpointDesc->bEndpointAddress;    /*     * check if the parent of the given hub is NULL or not     * NULL parent implies root hub. set the tier as 1.     */    if (NULL==pParentHub)    {       /* root hub, the tier is 1 */       pNewHub->uCurrentTier = 1;    }    else    {        /* The current Tier is 1 more than the parent hub */        pNewHub->uCurrentTier = pParentHub->uCurrentTier + 1;            }/* End of if (NULL == pParentHub) */    /* Set the Hub state as default no state */    pNewHub->StateOfHub = USB_HUB_NO_STATE;    /* Init the Hub descriptor params */    /* number of ports */    pNewHub->HubDescriptor.bNbrPorts =                                USB_HUB_DESC_bNbrPorts(pHubDescriptor);    /* Hub characteristics */    pNewHub->HubDescriptor.wHubCharacteristics =                                USB_HUB_DESC_wHubCharacteristics(pHubDescriptor);    /* Time for the power to stabilize on power on */    pNewHub->HubDescriptor.bPwrOn2PwrGood =                                USB_HUB_DESC_bPwrOn2PwrGood(pHubDescriptor);    /* hub electronics power requirements */    pNewHub->HubDescriptor.bHubContrCurrent =                                USB_HUB_DESC_bHubContrCurrent(pHubDescriptor);    /* Debug Message */    OS_LOG_MESSAGE_MEDIUM(        HUB,        "usbHubConfigure:pNewHub->uDeviceHandle=%d\n",        pNewHub->uDeviceHandle,        0,        0,        0);    /* Debug Message */    OS_LOG_MESSAGE_MEDIUM(        HUB,        "usbHubConfigure:pNewHub->uPowerPerPort=%d\n",        pNewHub->uPowerPerPort,        0,        0,        0);    /* Debug Message */    OS_LOG_MESSAGE_MEDIUM(        HUB,        "usbHubConfigure:pNewHub->uInterruptEpNumber=%d\n",        pNewHub->uInterruptEndpointNumber,        0,        0,        0);    /* Debug Message */    OS_LOG_MESSAGE_MEDIUM(        HUB,        "usbHubConfigure:pNewHub->uCurrentTier=%d\n",        pNewHub->uCurrentTier,        0,        0,        0);    /* Debug Message */    OS_LOG_MESSAGE_MEDIUM(        HUB,        "usbHubConfigure:pNewHub->StateOfHub=%d\n",        pNewHub->StateOfHub,        0,        0,        0);    /* Debug Message */    OS_LOG_MESSAGE_MEDIUM(        HUB,        "usbHubConfigure:pNewHub->bNbrPorts=%d\n",        pNewHub->HubDescriptor.bNbrPorts,        0,        0,        0);    /* Debug Message */    OS_LOG_MESSAGE_MEDIUM(        HUB,        "usbHubConfigure:pNewHub->wHubCharac=0x%x\n",        pNewHub->HubDescriptor.wHubCharacteristics,        0,        0,        0);    /* Debug Message */    OS_LOG_MESSAGE_MEDIUM(        HUB,        "usbHubConfigure:pNewHub->bPwrOn2PwrGood=0x%x\n",        pNewHub->HubDescriptor.bPwrOn2PwrGood,        0,        0,        0);    /* Debug Message */    OS_LOG_MESSAGE_MEDIUM(        HUB,        "usbHubConfigure:pNewHub->bHubContrCurrent=0x%x\n",        pNewHub->HubDescriptor.bHubContrCurrent,        0,        0,        0);    /* POWER ON PORTS (BEGIN) */    /* for all ports that are enabled,     * i. Call HUB_PowerOnPort() with pHub and port count to re enable the     *    port. If the call fails, then free memory and return failure result.     */    for (uPortCount = 0;         uPortCount < pNewHub->HubDescriptor.bNbrPorts;         uPortCount++)    {        /* power on the port */        Result = usbHubPowerOnPort(pNewHub,uPortCount);        if (USBHST_SUCCESS !=Result)        {            /* Debug Message */            OS_LOG_MESSAGE_HIGH(                HUB,                "usbHubEventHandler:power on port %d failed\n",                uPortCount,                0,                0,                0);            /* Call OS_FREE() to free the configuration buffer.*/            OS_FREE (pDeviceDescriptor);            OS_FREE(pConfigDescriptor);            /* Free the memory allocated */            OS_FREE (pStatusChangeData);            /* Free the memory allocated */            OS_FREE (pStatusData);            /* Free the memory allocated */            OS_FREE(pNewHub);            /* Reset the return value */            *pHub=NULL;            /* return failure result */            return Result;        }/* End of if (USBHST_SUCCESS !=Result) */    } /* End of for (uPortCount.... */    /* POWER ON PORTS (END) */    /*     * Call the USBHST_FILL_INT_URB() to populate the     * HUB_INFO::StatusChangeURB.     * Set the HUB_INFO::StatusChangeURB::pfCallBack as     * HUB_InterruptRequestCallback function.     */     USBHST_FILL_INTERRUPT_URB(                          (&(pNewHub->StatusChangeURB)),/* pointer to URB     */                          uDeviceHandle,                /* Device Handle      */                          pNewHub->uInterruptEndpointNumber,        /* EP no: */                          pStatusChangeData,            /* transfer buffer    */                          uLength,                      /* uTransferBufferLen */                          USBHST_SHORT_TRANSFER_OK,     /* TransferFlags      */                          usbHubInterruptRequestCallback, /* pfCallback         */                          pNewHub,                      /* pContext           */                          USBHST_FAILURE                /* uStatus            */                          );    /* Call OS_FREE() to free the  buffer.*/    OS_FREE (pDeviceDescriptor);    OS_FREE(pConfigDescriptor);    /* Set pHub as HUB_INFO structure.*/    *pHub=pNewHub;    /*     * Set the URB Submitted flag as true - This is being done here coz the     * callback can be called when the SubmitURB is called.     */    pNewHub->bURBSubmitted = TRUE;    /*     * Call USBHSTSubmitURB() to submit the URB. If this fails     * i.    Call OS_FREE() to free the status change buffer.     * ii.   Return USBHST_INSUFFICIENT_MEMORY.     */    Result = usbHstURBSubmit(&(pNewHub->StatusChangeURB));    /* Check the result */    if ( USBHST_SUCCESS != Result)    {        /* Debug Message */        OS_LOG_MESSAGE_MEDIUM(            HUB,            "usbHubConfigure:SubmitURB IN failed 0x%x\n",            Result,            0,            0,            0);        /* Free the memory allocated */        OS_FREE (pStatusChangeData);        /* Free the memory allocated */        OS_FREE (pStatusData);        /* Free the memory allocated */        OS_FREE(pNewHub);        /* Reset the return value */        *pHub=NULL;        return USBHST_FAILURE;    }/* End of if ( USBHST_SUCCESS != Result) */		/* WindView Instrumentation */		USB_HUB_LOG_EVENT(			USB_HUB_WV_DEVICE,			"Exiting usbHubconfigure() Function",			USB_HUB_WV_FILTER);    /* Debug Message */    OS_LOG_MESSAGE_LOW(        HUB,        "usbHubConfigure:Done uDevHndl:0x%x pPHub=0x%x,pBus0x%x\n",        uDeviceHandle,        (UINT32)pParentHub,        (UINT32)pBus,        0);    /* Return  USBHST_SUCCESS.*/    return USBHST_SUCCESS;    }/* End of HUB_ConfigureHub() *//***************************************************************************** usbHubHandleDeviceConnection - Handles the device connection.** This routine handles the device connection.** RETURNS: USBHST_SUCCESS, USBHST_INVALID_PARAMETERS If there are errors in* parameters passed.** ERRNO: None** \NOMANUAL*/LOCAL USBHST_STATUS usbHubHandleDeviceConnection     (    pUSB_HUB_INFO pHub,    UINT8 uPortIndex    )    {    /* Storage for the port information */    pUSB_HUB_PORT_INFO pPort=NULL;    /* Storage for the result of the requests */    USBHST_STATUS Result;		/* WindView Instrumentation */		USB_HUB_LOG_EVENT(			USB_HUB_WV_DEVICE,			"Entering usbHubHandleDeviceConnection() Function",			USB_HUB_WV_FILTER);    /* Debug Message */    OS_LOG_MESSAGE_LOW(        HUB,        "usbHubHandleDeviceConnection:Called pHub=0x%x,port=%d\n",        (UINT32)pHub,        uPortIndex,        0,        0);            /* If pHub is NULL return USBHST_INVALID_PARAMETER*/    if (NULL==pHub)    {        /* Debug Message */        OS_LOG_MESSAGE_MEDIUM(            HUB,"usbHubHandleDeviceConnection:pHub is NULL\n",0,0,0,0);                    return USBHST_INVALID_PARAMETER;            }/* End of if (NULL ==pHub) */    /*     * If the uPortIndex greater than pHub::HubDescriptor::bNbrPorts then     * return USBHST_INVALID_PARAMETER.     * Note: the actual port number is the port index + 1     */    if (uPortIndex >= pHub->HubDescriptor.bNbrPorts)    {        /* Debug Message */        OS_LOG_MESSAGE_MEDIUM(            HUB,            "usbHubHandleDeviceConnection:port=%d>%d\n",            uPortIndex,            pHub->HubDescriptor.bNbrPorts,            0,            0);        return USBHST_INVALID_PARAMETER;            }/* End of if (uPortIndex >= pHub->HubDescriptor.bNbrPorts) */    /*     * Retrieve the HUB_PORT_INFO structure from pHub::pPortList for     * the uPortIndex.     */    pPort=pHub->pPortList[uPortIndex];    OS_ASSERT(NULL != pPort);                                       /* verify */    /* If pHub::pBus is NULL then return USBHST_INVALID_PARAMETER.*/    if (NULL == pHub->pBus)    {        /* Debug Message */        OS_LOG_MESSAGE_MEDIUM(            HUB,            "usbHubHandleDeviceConnection:pBus is NULL\n",            0,            0,            0,            0);        return USBHST_INVALID_PARAMETER;            }/* End of if (NULL ==... */    /* Update the HUB_PORT_INFO::StateOfPort as HUB_RESET_PENDING.*/    pPort->StateOfPort=USB_HUB_RESET_PENDING;    /*     * If pHub:pBus::bDeviceBeingConfigured is TRUE, then return     *  USBHST_SUCCESS.     */    if (TRUE== pHub->pBus->bDeviceBeingConfigured)    {        /* Debug Message */        OS_LOG_MESSAGE_LOW(            HUB,            "usbHubHandleDeviceConnection:other dev being confd\n",            0,            0,            0,            0);        return USBHST_SUCCESS;            }/* End of if (TRUE... */    /* Update the HUB_PORT_INFO::StateOfPort as HUB_RESET_COMPLETION_PENDING.*/    pPort->StateOfPort=USB_HUB_RESET_COMPLETION_PENDING;    /*     * Call HUB_ResetPort() with pHub, uPortIndex. If the call fails,     * return the result.     */    Result=usbHubResetPort(pHub,uPortIndex);    if (USBHST_SUCCESS != Result)    {        /* Debug Message */        OS_LOG_MESSAGE_HIGH(            HUB,            "usbHubHandleDeviceConnecti

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
一区二区三区在线视频免费| 一区二区三区精品在线观看| 91.成人天堂一区| 93久久精品日日躁夜夜躁欧美| 成人黄色在线网站| 成人免费看黄yyy456| av激情成人网| 91在线播放网址| 欧美少妇xxx| 91精品国产手机| 欧美一级电影网站| 2022国产精品视频| 中文字幕精品在线不卡| 国产精品久久久久精k8| 一区二区三区四区高清精品免费观看| 亚洲精品综合在线| 视频一区国产视频| 国产精品456露脸| 成人av动漫在线| 91福利视频在线| 欧美一区二区三区男人的天堂| 精品久久国产老人久久综合| 日本一区二区三级电影在线观看| 亚洲欧美在线高清| 亚洲va韩国va欧美va精品| 免费欧美高清视频| 成人免费三级在线| 欧美日韩国产综合草草| 精品国产乱码久久久久久久久| 国产欧美中文在线| 一区二区在线免费观看| 免费成人结看片| 99久久婷婷国产精品综合| 欧美精品一卡两卡| 国产精品天天看| 视频在线观看91| 成人黄色电影在线| 91精品婷婷国产综合久久| 亚洲国产激情av| 丝袜亚洲另类丝袜在线| 成人性视频网站| 日韩欧美色电影| 亚洲精品伦理在线| 国产福利一区二区| 欧美一区二区精品久久911| 国产精品国产三级国产普通话三级| 日日摸夜夜添夜夜添国产精品| 丁香桃色午夜亚洲一区二区三区| 精品视频在线看| 国产精品热久久久久夜色精品三区| 天天综合色天天| av中文字幕在线不卡| 欧美变态口味重另类| 一区二区三区.www| 成人高清免费在线播放| 精品国产乱码久久久久久影片| 亚洲国产一区二区视频| 99精品久久免费看蜜臀剧情介绍| 亚洲精品一区二区三区在线观看 | 久久久精品综合| 午夜精品久久久久久久99水蜜桃| 成人av集中营| 国产色综合一区| 国产精品一区二区三区网站| 日韩午夜小视频| 日精品一区二区三区| 欧美色偷偷大香| 夜夜精品浪潮av一区二区三区| 99久久99久久综合| 国产精品丝袜91| 大尺度一区二区| 中文字幕乱码一区二区免费| 国产v综合v亚洲欧| 欧美经典一区二区三区| 国产成人av电影| 欧美韩日一区二区三区| 国产不卡视频在线播放| 中文字幕电影一区| 成人av网在线| 亚洲欧美偷拍卡通变态| 欧洲一区二区三区免费视频| 亚洲国产精品人人做人人爽| 欧美在线视频日韩| 五月婷婷激情综合| 欧美日韩精品一区二区三区蜜桃| 日韩精品每日更新| 亚洲精品一区二区三区蜜桃下载| 九九视频精品免费| 中文字幕第一区综合| 色综合久久天天综合网| 夜夜嗨av一区二区三区| 欧美男人的天堂一二区| 老汉av免费一区二区三区| 久久久久久久久久久电影| 成人激情免费电影网址| 亚洲激情自拍偷拍| 日韩午夜小视频| 国产sm精品调教视频网站| 亚洲少妇30p| 91精品国产欧美一区二区成人| 国产在线观看免费一区| 国产精品成人一区二区艾草 | 欧美一级片免费看| 国产毛片精品一区| 亚洲免费观看高清完整| 日韩一级高清毛片| 懂色av中文字幕一区二区三区 | 欧美一区二区黄| 国产精品18久久久久久久久久久久| 中文字幕五月欧美| 欧美乱妇15p| 国产成人日日夜夜| 亚洲国产aⅴ成人精品无吗| 日韩免费看的电影| 色综合天天综合狠狠| 免费看欧美美女黄的网站| 日本一区二区高清| 91麻豆精品国产综合久久久久久| 国产精品资源在线| 亚洲国产乱码最新视频| 亚洲国产精品99久久久久久久久| 欧美日韩久久久| 福利一区福利二区| 青青草国产成人av片免费| 中文字幕一区二区三区精华液| 日韩一区二区三区四区| 91丨国产丨九色丨pron| 久久成人免费日本黄色| 亚洲国产一区二区三区青草影视 | 亚洲精品高清视频在线观看| 日韩精品专区在线影院重磅| 欧洲视频一区二区| 成人短视频下载| 久久国产婷婷国产香蕉| 天天操天天综合网| 亚洲免费av在线| 国产精品乱码人人做人人爱| 精品久久国产字幕高潮| 欧美一区2区视频在线观看| 色综合色狠狠天天综合色| 丰满亚洲少妇av| 黄色小说综合网站| 日韩1区2区3区| 亚洲小少妇裸体bbw| 亚洲精品成a人| 中文字幕综合网| 中文字幕日韩av资源站| 国产欧美精品区一区二区三区| 日韩欧美美女一区二区三区| 欧美日韩国产综合一区二区三区 | 欧美大白屁股肥臀xxxxxx| 欧美日韩在线三区| 色香色香欲天天天影视综合网| www.爱久久.com| 成人av电影在线网| 成人高清免费在线播放| www.66久久| 99麻豆久久久国产精品免费| 成人午夜精品在线| av激情综合网| 在线一区二区三区四区| 日本韩国欧美一区二区三区| 色综合天天综合网天天狠天天| 色综合网色综合| 欧美在线观看视频一区二区三区| 欧美天堂一区二区三区| 欧美日韩专区在线| 日韩免费福利电影在线观看| 欧美一级久久久久久久大片| 欧美大片在线观看| 久久精品一区二区三区四区| 国产欧美日韩不卡免费| 亚洲视频小说图片| 亚洲超碰精品一区二区| 欧美96一区二区免费视频| 国产一区二区三区美女| 大陆成人av片| 欧美日韩亚洲综合在线 欧美亚洲特黄一级| 欧美色老头old∨ideo| 欧美不卡在线视频| 中文字幕一区二区三区四区| 一区二区三区免费看视频| 免费精品视频在线| 成人黄色小视频在线观看| 91成人免费电影| 精品久久久久久亚洲综合网| 国产精品色哟哟网站| 亚洲一区二三区| 国产一区二区三区免费看| 色综合天天综合网天天看片| 日韩一区二区三区精品视频 | 一区二区三区免费| 久久av中文字幕片| 色伊人久久综合中文字幕| 日韩免费电影一区| 一区二区三区四区在线免费观看| 久久精品国产免费| 欧美午夜电影网| 国产精品免费视频观看| 午夜久久久久久久久久一区二区|