VirtualBox

Ignore:
Timestamp:
May 2, 2016 4:12:43 PM (9 years ago)
Author:
vboxsync
Message:

ValidationKit/UsbTestService: Updates, implement the protocol bits for passing extended configuration from the client to the gadget, detect multiple busses from dummy_hcd which creates a separate bus for high-speed and super-speed gadgets, some smaller fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/utils/usb/UsbTestServiceGadgetClassTest.cpp

    r60522 r60793  
    291291            char *pszManufacturer = NULL;
    292292            char *pszProduct = NULL;
     293            bool fSuperSpeed = false;
    293294
    294295            /* Get basic device config. */
     
    304305            if (RT_SUCCESS(rc))
    305306                rc = utsGadgetCfgQueryStringDef(paCfg, "Gadget/Product",      &pszProduct,      UTS_GADGET_TEST_PRODUCT_DEF);
     307            if (RT_SUCCESS(rc))
     308                rc = utsGadgetCfgQueryBoolDef(paCfg,   "Gadget/SuperSpeed",   &fSuperSpeed,     false);
    306309
    307310            if (RT_SUCCESS(rc))
     
    357360                    pClass->pszUdc = NULL;
    358361
    359                     rc = utsPlatformLnxAcquireUDC(&pClass->pszUdc, &pClass->uBusId);
     362                    rc = utsPlatformLnxAcquireUDC(fSuperSpeed, &pClass->pszUdc, &pClass->uBusId);
    360363                    if (RT_SUCCESS(rc))
    361364                        rc = RTLinuxSysFsWriteStrFile(pClass->pszUdc, 0, NULL, "%s/UDC", pClass->pszGadgetPath);
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