VirtualBox

儲存庫 vbox 的更動 67589


忽略:
時間撮記:
2017-6-23 下午04:39:57 (7 年 以前)
作者:
vboxsync
訊息:

Undoing bad commit.

位置:
trunk/src/VBox/Devices/USB
檔案:
修改 2 筆資料

圖例:

未更動
新增
刪除
  • trunk/src/VBox/Devices/USB/DrvVUSBRootHub.cpp

    r67588 r67589  
    982982
    983983/** @interface_method_impl{VUSBIROOTHUBCONNECTOR,pfnGetPeriodicFrameRate} */
    984 static DECLCALLBACK(uint32_t) vusbRhGetPeriodicFrameRate(PVUSBIROOTHUBCONNECTOR pInterface)
     984static DECLCALLBACK(uint32_t) vusbRhGetPriodicFrameRate(PVUSBIROOTHUBCONNECTOR pInterface)
    985985{
    986986    PVUSBROOTHUB pThis = VUSBIROOTHUBCONNECTOR_2_VUSBROOTHUB(pInterface);
    987987
    988988    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;
    1011989}
    1012990
     
    11531131        pRh->pDevices = pDev;
    11541132        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, 
    11561134                iPort, pHub->pszName, vusbGetSpeedString(pDev->pUsbIns->enmSpeed)));
    11571135    }
     
    13451323    pThis->IRhConnector.pfnDetachDevice               = vusbRhDetachDevice;
    13461324    pThis->IRhConnector.pfnSetPeriodicFrameProcessing = vusbRhSetFrameProcessing;
    1347     pThis->IRhConnector.pfnGetPeriodicFrameRate       = vusbRhGetPeriodicFrameRate;
    1348     pThis->IRhConnector.pfnUpdateIsocFrameDelta       = vusbRhUpdateIsocFrameDelta;
     1325    pThis->IRhConnector.pfnGetPeriodicFrameRate       = vusbRhGetPriodicFrameRate;
    13491326    pThis->hSniffer                                   = VUSBSNIFFER_NIL;
    13501327    pThis->cbHci                                      = 0;
  • trunk/src/VBox/Devices/USB/VUSBInternal.h

    r67588 r67589  
    158158    /** Count of active async transfers. */
    159159    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;
    164160} VUSBPIPE;
    165161/** Pointer to a VUSB pipe structure. */
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette