- Timestamp:
- Oct 10, 2014 3:39:49 PM (10 years ago)
- Location:
- trunk/src/VBox
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-client/ConsoleImpl.cpp
r52934 r53031 8359 8359 } 8360 8360 8361 USHORT portVersion = 1;8361 USHORT portVersion = 0; 8362 8362 hrc = aHostDevice->COMGETTER(PortVersion)(&portVersion); 8363 8363 AssertComRCReturnRC(hrc); 8364 Assert(portVersion == 1 || portVersion == 2 );8364 Assert(portVersion == 1 || portVersion == 2 || portVersion == 3); 8365 8365 8366 8366 int vrc = VMR3ReqCallWaitU(ptrVM.rawUVM(), 0 /* idDstCpu (saved state, see #6232) */, … … 8427 8427 8428 8428 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); 8430 8432 LogFlowFunc(("vrc=%Rrc\n", vrc)); 8431 8433 LogFlowFuncLeave(); -
trunk/src/VBox/Main/src-server/linux/USBGetDevices.cpp
r51093 r53031 364 364 else if (!strncmp(pszValue, RT_STR_TUPLE("480"))) 365 365 *pSpd = USBDEVICESPEED_HIGH; 366 else if (!strncmp(pszValue, RT_STR_TUPLE("5000"))) 367 *pSpd = USBDEVICESPEED_SUPER; 366 368 else 367 369 *pSpd = USBDEVICESPEED_UNKNOWN; … … 1178 1180 : pDev->enmSpeed == USBDEVICESPEED_FULL ? "12 MBit/s" 1179 1181 : pDev->enmSpeed == USBDEVICESPEED_HIGH ? "480 MBit/s" 1182 : pDev->enmSpeed == USBDEVICESPEED_SUPER ? "5.0 GBit/s" 1180 1183 : pDev->enmSpeed == USBDEVICESPEED_VARIABLE ? "variable" 1181 1184 : "invalid")); … … 1264 1267 Dev->enmState = USBDEVICESTATE_UNSUPPORTED; 1265 1268 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 1269 1273 : USBDEVICESPEED_UNKNOWN; 1270 1274 -
trunk/src/VBox/VMM/VMMR3/PDMUsb.cpp
r51290 r53031 121 121 return VERR_INVALID_PARAMETER; 122 122 } 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); 124 124 AssertPtrReturn(ppUsbHubHlp, VERR_INVALID_POINTER); 125 125 AssertPtrReturn(pUsbHubReg, VERR_INVALID_POINTER); … … 963 963 AssertPtrReturn(pUuid, VERR_INVALID_POINTER); 964 964 AssertPtrReturn(pszAddress, VERR_INVALID_POINTER); 965 AssertReturn( iUsbVersion == VUSB_STDVER_20 965 AssertReturn( iUsbVersion == VUSB_STDVER_30 966 || iUsbVersion == VUSB_STDVER_20 966 967 || iUsbVersion == VUSB_STDVER_11, VERR_INVALID_PARAMETER); 967 968
Note:
See TracChangeset
for help on using the changeset viewer.