儲存庫 vbox 的更動 67589
- 時間撮記:
- 2017-6-23 下午04:39:57 (7 年 以前)
- 位置:
- trunk/src/VBox/Devices/USB
- 檔案:
-
- 修改 2 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/Devices/USB/DrvVUSBRootHub.cpp
r67588 r67589 982 982 983 983 /** @interface_method_impl{VUSBIROOTHUBCONNECTOR,pfnGetPeriodicFrameRate} */ 984 static DECLCALLBACK(uint32_t) vusbRhGetP eriodicFrameRate(PVUSBIROOTHUBCONNECTOR pInterface)984 static DECLCALLBACK(uint32_t) vusbRhGetPriodicFrameRate(PVUSBIROOTHUBCONNECTOR pInterface) 985 985 { 986 986 PVUSBROOTHUB pThis = VUSBIROOTHUBCONNECTOR_2_VUSBROOTHUB(pInterface); 987 987 988 988 return pThis->uFrameRate; 989 }990 991 /** @interface_method_impl{VUSBIROOTHUBCONNECTOR,pfnGetPeriodicFrameRate} */992 static DECLCALLBACK(uint32_t) vusbRhUpdateIsocFrameDelta(PVUSBIROOTHUBCONNECTOR pInterface, PVUSBIDEVICE pDevice,993 int EndPt, VUSBDIRECTION enmDir, uint16_t uNewFrame, uint8_t uBits)994 {995 PVUSBROOTHUB pRh = VUSBIROOTHUBCONNECTOR_2_VUSBROOTHUB(pInterface);996 AssertReturn(pRh, 0);997 PVUSBDEV pDev = (PVUSBDEV)pDevice;998 PVUSBPIPE pPipe = &pDev->aPipes[EndPt];999 uint32_t *puLastFrame;1000 int32_t uFrameDelta;1001 uint32_t uMaxVal = 1 << uBits;1002 1003 puLastFrame = enmDir == VUSBDIRECTION_IN ? &pPipe->uLastFrameIn : &pPipe->uLastFrameOut;1004 uFrameDelta = uNewFrame - *puLastFrame;1005 *puLastFrame = uNewFrame;1006 /* Take care of wrap-around. */1007 if (uFrameDelta < 0)1008 uFrameDelta += uMaxVal;1009 1010 return (uint16_t)uFrameDelta;1011 989 } 1012 990 … … 1153 1131 pRh->pDevices = pDev; 1154 1132 RTCritSectLeave(&pRh->CritSectDevices); 1155 LogRel(("VUSB: Attached '%s' to port %d on %s (%sSpeed)\n", pDev->pUsbIns->pszName, 1133 LogRel(("VUSB: Attached '%s' to port %d on %s (%sSpeed)\n", pDev->pUsbIns->pszName, 1156 1134 iPort, pHub->pszName, vusbGetSpeedString(pDev->pUsbIns->enmSpeed))); 1157 1135 } … … 1345 1323 pThis->IRhConnector.pfnDetachDevice = vusbRhDetachDevice; 1346 1324 pThis->IRhConnector.pfnSetPeriodicFrameProcessing = vusbRhSetFrameProcessing; 1347 pThis->IRhConnector.pfnGetPeriodicFrameRate = vusbRhGetPeriodicFrameRate; 1348 pThis->IRhConnector.pfnUpdateIsocFrameDelta = vusbRhUpdateIsocFrameDelta; 1325 pThis->IRhConnector.pfnGetPeriodicFrameRate = vusbRhGetPriodicFrameRate; 1349 1326 pThis->hSniffer = VUSBSNIFFER_NIL; 1350 1327 pThis->cbHci = 0; -
trunk/src/VBox/Devices/USB/VUSBInternal.h
r67588 r67589 158 158 /** Count of active async transfers. */ 159 159 volatile uint32_t async; 160 /** Last scheduled frame - only valid for isochronous IN endpoints. */161 uint32_t uLastFrameIn;162 /** Last scheduled frame - only valid for isochronous OUT endpoints. */163 uint32_t uLastFrameOut;164 160 } VUSBPIPE; 165 161 /** Pointer to a VUSB pipe structure. */
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器