VirtualBox

Changeset 53031 in vbox for trunk


Ignore:
Timestamp:
Oct 10, 2014 3:39:49 PM (10 years ago)
Author:
vboxsync
Message:

USB: Connecting the dots.

Location:
trunk/src/VBox
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/ConsoleImpl.cpp

    r52934 r53031  
    83598359    }
    83608360
    8361     USHORT portVersion = 1;
     8361    USHORT portVersion = 0;
    83628362    hrc = aHostDevice->COMGETTER(PortVersion)(&portVersion);
    83638363    AssertComRCReturnRC(hrc);
    8364     Assert(portVersion == 1 || portVersion == 2);
     8364    Assert(portVersion == 1 || portVersion == 2 || portVersion == 3);
    83658365
    83668366    int vrc = VMR3ReqCallWaitU(ptrVM.rawUVM(), 0 /* idDstCpu (saved state, see #6232) */,
     
    84278427
    84288428    int vrc = PDMR3UsbCreateProxyDevice(pUVM, aUuid, aRemote, aAddress, pvRemoteBackend,
    8429                                         aPortVersion == 1 ? VUSB_STDVER_11 : VUSB_STDVER_20, aMaskedIfs);
     8429                                        aPortVersion == 3 ? VUSB_STDVER_30 :
     8430                                        aPortVersion == 2 ? VUSB_STDVER_11 : VUSB_STDVER_20,
     8431                                        aMaskedIfs);
    84308432    LogFlowFunc(("vrc=%Rrc\n", vrc));
    84318433    LogFlowFuncLeave();
  • trunk/src/VBox/Main/src-server/linux/USBGetDevices.cpp

    r51093 r53031  
    364364    else if (!strncmp(pszValue, RT_STR_TUPLE("480")))
    365365        *pSpd = USBDEVICESPEED_HIGH;
     366    else if (!strncmp(pszValue, RT_STR_TUPLE("5000")))
     367        *pSpd = USBDEVICESPEED_SUPER;
    366368    else
    367369        *pSpd = USBDEVICESPEED_UNKNOWN;
     
    11781180          : pDev->enmSpeed == USBDEVICESPEED_FULL     ? "12 MBit/s"
    11791181          : pDev->enmSpeed == USBDEVICESPEED_HIGH     ? "480 MBit/s"
     1182          : pDev->enmSpeed == USBDEVICESPEED_SUPER    ? "5.0 GBit/s"
    11801183          : pDev->enmSpeed == USBDEVICESPEED_VARIABLE ? "variable"
    11811184          :                                             "invalid"));
     
    12641267        Dev->enmState = USBDEVICESTATE_UNSUPPORTED;
    12651268    else
    1266         Dev->enmSpeed =   !strcmp(szBuf, "1.5") ? USBDEVICESPEED_LOW
    1267                         : !strcmp(szBuf, "12")  ? USBDEVICESPEED_FULL
    1268                         : !strcmp(szBuf, "480") ? USBDEVICESPEED_HIGH
     1269        Dev->enmSpeed =   !strcmp(szBuf, "1.5")  ? USBDEVICESPEED_LOW
     1270                        : !strcmp(szBuf, "12")   ? USBDEVICESPEED_FULL
     1271                        : !strcmp(szBuf, "480")  ? USBDEVICESPEED_HIGH
     1272                        : !strcmp(szBuf, "5000") ? USBDEVICESPEED_SUPER
    12691273                        : USBDEVICESPEED_UNKNOWN;
    12701274
  • trunk/src/VBox/VMM/VMMR3/PDMUsb.cpp

    r51290 r53031  
    121121        return VERR_INVALID_PARAMETER;
    122122    }
    123     AssertMsgReturn(!(fVersions & ~(VUSB_STDVER_11 | VUSB_STDVER_20)), ("%#x\n", fVersions), VERR_INVALID_PARAMETER);
     123    AssertMsgReturn(!(fVersions & ~(VUSB_STDVER_11 | VUSB_STDVER_20 | VUSB_STDVER_30)), ("%#x\n", fVersions), VERR_INVALID_PARAMETER);
    124124    AssertPtrReturn(ppUsbHubHlp, VERR_INVALID_POINTER);
    125125    AssertPtrReturn(pUsbHubReg, VERR_INVALID_POINTER);
     
    963963    AssertPtrReturn(pUuid, VERR_INVALID_POINTER);
    964964    AssertPtrReturn(pszAddress, VERR_INVALID_POINTER);
    965     AssertReturn(    iUsbVersion == VUSB_STDVER_20
     965    AssertReturn(    iUsbVersion == VUSB_STDVER_30
     966                 ||  iUsbVersion == VUSB_STDVER_20
    966967                 ||  iUsbVersion == VUSB_STDVER_11, VERR_INVALID_PARAMETER);
    967968
Note: See TracChangeset for help on using the changeset viewer.

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