VirtualBox

Changeset 91871 in vbox


Ignore:
Timestamp:
Oct 20, 2021 9:06:26 AM (3 years ago)
Author:
vboxsync
Message:

Devices/USB: Change the USB roothub driver to access the CFGM API through the driver helper callback table only, bugref:10074

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/USB/DrvVUSBRootHub.cpp

    r83617 r91871  
    12701270    RT_NOREF(fFlags);
    12711271    PDMDRV_CHECK_VERSIONS_RETURN(pDrvIns);
     1272    PVUSBROOTHUB    pThis = PDMINS_2_DATA(pDrvIns, PVUSBROOTHUB);
     1273    PCPDMDRVHLPR3   pHlp  = pDrvIns->pHlpR3;
     1274
    12721275    LogFlow(("vusbRhConstruct: Instance %d\n", pDrvIns->iInstance));
    1273     PVUSBROOTHUB pThis = PDMINS_2_DATA(pDrvIns, PVUSBROOTHUB);
    12741276
    12751277    /*
    12761278     * Validate configuration.
    12771279     */
    1278     if (!CFGMR3AreValuesValid(pCfg, "CaptureFilename\0"))
    1279         return VERR_PDM_DRVINS_UNKNOWN_CFG_VALUES;
     1280    PDMDRV_VALIDATE_CONFIG_RETURN(pDrvIns, "CaptureFilename", "");
    12801281
    12811282    /*
     
    12941295
    12951296    char *pszCaptureFilename = NULL;
    1296     rc = CFGMR3QueryStringAlloc(pCfg, "CaptureFilename", &pszCaptureFilename);
     1297    rc = pHlp->pfnCFGMQueryStringAlloc(pCfg, "CaptureFilename", &pszCaptureFilename);
    12971298    if (   RT_FAILURE(rc)
    12981299        && rc != VERR_CFGM_VALUE_NOT_FOUND)
     
    13831384     * The current implementation uses the VUSBIRHCONFIG interface for communication.
    13841385     */
    1385     PCPDMUSBHUBHLP pHlp; /* not used currently */
    1386     rc = PDMDrvHlpUSBRegisterHub(pDrvIns, pThis->fHcVersions, pThis->Hub.cPorts, &g_vusbHubReg, &pHlp);
     1386    PCPDMUSBHUBHLP pHlpUsb; /* not used currently */
     1387    rc = PDMDrvHlpUSBRegisterHub(pDrvIns, pThis->fHcVersions, pThis->Hub.cPorts, &g_vusbHubReg, &pHlpUsb);
    13871388    if (RT_FAILURE(rc))
    13881389        return rc;
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