- 時間撮記:
- 2016-8-4 上午07:54:03 (8 年 以前)
- 檔案:
-
- 修改 1 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/Devices/USB/DrvVUSBRootHub.cpp
r62956 r62958 287 287 static DECLCALLBACK(int) vusbPDMHubDetachDevice(PPDMDRVINS pDrvIns, PPDMUSBINS pUsbIns, uint32_t iPort) 288 288 { 289 RT_NOREF(pDrvIns, iPort); 289 290 PVUSBDEV pDev = (PVUSBDEV)pUsbIns->pvVUsbDev2; 290 291 Assert(pDev); … … 392 393 VUSBDIRECTION enmDir, uint32_t cbData, uint32_t cTds, const char *pszTag) 393 394 { 395 RT_NOREF(pszTag); 394 396 PVUSBURBPOOL pUrbPool = &pRh->Hub.Dev.UrbPool; 395 397 … … 564 566 static DECLCALLBACK(int) vusbRhR3PeriodFrameWorker(PPDMDRVINS pDrvIns, PPDMTHREAD pThread) 565 567 { 568 RT_NOREF(pDrvIns); 566 569 int rc = VINF_SUCCESS; 567 570 PVUSBROOTHUB pThis = (PVUSBROOTHUB)pThread->pvUser; … … 619 622 static DECLCALLBACK(int) vusbRhR3PeriodFrameWorkerWakeup(PPDMDRVINS pDrvIns, PPDMTHREAD pThread) 620 623 { 624 RT_NOREF(pThread); 621 625 PVUSBROOTHUB pThis = PDMINS_2_DATA(pDrvIns, PVUSBROOTHUB); 622 626 return RTSemEventMultiSignal(pThis->hSemEventPeriodFrame); … … 648 652 static DECLCALLBACK(int) vusbRhConnFreeUrb(PVUSBIROOTHUBCONNECTOR pInterface, PVUSBURB pUrb) 649 653 { 650 PVUSBROOTHUB pRh = VUSBIROOTHUBCONNECTOR_2_VUSBROOTHUB(pInterface); 651 654 RT_NOREF(pInterface); 652 655 pUrb->pVUsb->pfnFree(pUrb); 653 656 return VINF_SUCCESS; … … 768 771 static DECLCALLBACK(void) vusbRhReapAsyncUrbs(PVUSBIROOTHUBCONNECTOR pInterface, PVUSBIDEVICE pDevice, RTMSINTERVAL cMillies) 769 772 { 770 PVUSBROOTHUB pRh = VUSBIROOTHUBCONNECTOR_2_VUSBROOTHUB(pInterface); 773 PVUSBROOTHUB pRh = VUSBIROOTHUBCONNECTOR_2_VUSBROOTHUB(pInterface); NOREF(pRh); 771 774 PVUSBDEV pDev = (PVUSBDEV)pDevice; 772 775 … … 994 997 * @interface_method_impl{VUSBIDEVICE,pfnReset} 995 998 */ 996 static DECLCALLBACK(int) vusbRhDevReset(PVUSBIDEVICE pInterface, bool fResetOnLinux, PFNVUSBRESETDONE pfnDone, void *pvUser, PVM pVM) 997 { 999 static DECLCALLBACK(int) vusbRhDevReset(PVUSBIDEVICE pInterface, bool fResetOnLinux, 1000 PFNVUSBRESETDONE pfnDone, void *pvUser, PVM pVM) 1001 { 1002 RT_NOREF(pfnDone, pvUser, pVM); 998 1003 PVUSBROOTHUB pRh = RT_FROM_MEMBER(pInterface, VUSBROOTHUB, Hub.Dev.IDevice); 999 1004 Assert(!pfnDone); … … 1223 1228 static DECLCALLBACK(int) vusbRhConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfg, uint32_t fFlags) 1224 1229 { 1230 RT_NOREF(fFlags); 1231 PDMDRV_CHECK_VERSIONS_RETURN(pDrvIns); 1225 1232 LogFlow(("vusbRhConstruct: Instance %d\n", pDrvIns->iInstance)); 1226 1233 PVUSBROOTHUB pThis = PDMINS_2_DATA(pDrvIns, PVUSBROOTHUB); 1227 PDMDRV_CHECK_VERSIONS_RETURN(pDrvIns);1228 1234 1229 1235 /*
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器