Changeset 53977 in vbox
- Timestamp:
- Jan 27, 2015 6:14:27 PM (10 years ago)
- svn:sync-xref-src-repo-rev:
- 97879
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/vusb.h
r53210 r53977 70 70 #define VUSB_DT_INTERFACE_MIN_LEN 9 71 71 #define VUSB_DT_ENDPOINT_MIN_LEN 7 72 #define VUSB_DT_SSEP_COMPANION_MIN_LEN 6 72 73 /** @} */ 73 74 … … 399 400 /** Pointer to additional descriptor bytes following what's covered by VUSBDESCENDPOINT. */ 400 401 const void *pvMore; 401 /** Pointer to additional class- or vendor-specific interfacedescriptors. */402 /** Pointer to additional class- or vendor-specific endpoint descriptors. */ 402 403 const void *pvClass; 403 404 /** Size of class- or vendor-specific descriptors. */ 404 405 uint16_t cbClass; 406 /** Pointer to SuperSpeed endpoint companion descriptor (SS endpoints only). */ 407 const void *pvSsepc; 408 /** Size of SuperSpeed endpoint companion descriptor. 409 * @remark Must be non-zero for SuperSpeed endpoints. */ 410 uint16_t cbSsepc; 405 411 } VUSBDESCENDPOINTEX; 406 412 /** Pointer to a parsed USB endpoint descriptor. */ -
trunk/src/VBox/Devices/Storage/UsbMsd.cpp
r53210 r53977 291 291 /* .pvMore = */ NULL, 292 292 /* .pvClass = */ NULL, 293 /* .cbClass = */ 0 293 /* .cbClass = */ 0, 294 /* .pvSsepc = */ NULL, 295 /* .cbSsepc = */ 0 294 296 }, 295 297 { … … 304 306 /* .pvMore = */ NULL, 305 307 /* .pvClass = */ NULL, 306 /* .cbClass = */ 0 308 /* .cbClass = */ 0, 309 /* .pvSsepc = */ NULL, 310 /* .cbSsepc = */ 0 307 311 } 308 312 }; … … 321 325 /* .pvMore = */ NULL, 322 326 /* .pvClass = */ NULL, 323 /* .cbClass = */ 0 327 /* .cbClass = */ 0, 328 /* .pvSsepc = */ NULL, 329 /* .cbSsepc = */ 0 324 330 }, 325 331 { … … 334 340 /* .pvMore = */ NULL, 335 341 /* .pvClass = */ NULL, 336 /* .cbClass = */ 0 342 /* .cbClass = */ 0, 343 /* .pvSsepc = */ NULL, 344 /* .cbSsepc = */ 0 337 345 } 338 346 }; … … 359 367 }, 360 368 /* .pvMore = */ NULL, 361 /* .pvClass = */ &g_aUsbMsdEpCompanionSS, 362 /* .cbClass = */ sizeof(g_aUsbMsdEpCompanionSS) 369 /* .pvClass = */ NULL, 370 /* .cbClass = */ 0, 371 /* .pvSsepc = */ &g_aUsbMsdEpCompanionSS, 372 /* .cbSsepc = */ sizeof(g_aUsbMsdEpCompanionSS) 363 373 }, 364 374 { … … 372 382 }, 373 383 /* .pvMore = */ NULL, 374 /* .pvClass = */ &g_aUsbMsdEpCompanionSS, 375 /* .cbClass = */ sizeof(g_aUsbMsdEpCompanionSS) 384 /* .pvClass = */ NULL, 385 /* .cbClass = */ 0, 386 /* .pvSsepc = */ &g_aUsbMsdEpCompanionSS, 387 /* .cbSsepc = */ sizeof(g_aUsbMsdEpCompanionSS) 376 388 } 377 389 }; -
trunk/src/VBox/Devices/USB/VUSBDevice.cpp
r53633 r53977 738 738 { 739 739 cbTotal += pIf->paSettings[j].paEndpoints[k].Core.bLength; 740 cbTotal += pIf->paSettings[j].paEndpoints[k].cbSsepc; 740 741 cbTotal += pIf->paSettings[j].paEndpoints[k].cbClass; 741 742 } … … 776 777 COPY_DATA(pbBuf, cbLeft, &EndPtDesc, VUSB_DT_ENDPOINT_MIN_LEN); 777 778 COPY_DATA(pbBuf, cbLeft, pIfDesc->paEndpoints[k].pvMore, EndPtDesc.bLength - VUSB_DT_ENDPOINT_MIN_LEN); 779 COPY_DATA(pbBuf, cbLeft, pIfDesc->paEndpoints[k].pvSsepc, pIfDesc->paEndpoints[k].cbSsepc); 778 780 COPY_DATA(pbBuf, cbLeft, pIfDesc->paEndpoints[k].pvClass, pIfDesc->paEndpoints[k].cbClass); 779 781 }
Note:
See TracChangeset
for help on using the changeset viewer.