VirtualBox

Changeset 81803 in vbox for trunk/src/VBox/Devices/Storage


Ignore:
Timestamp:
Nov 12, 2019 2:34:35 PM (5 years ago)
Author:
vboxsync
Message:

DevBusLogic.cpp: Converting it to the new PDM device style... bugref:9218

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Storage/DevBusLogic.cpp

    r81800 r81803  
    479479    volatile bool                   fBiosReqPending;
    480480
    481     /** The support driver session handle. */
    482     R3R0PTRTYPE(PSUPDRVSESSION)     pSupDrvSession;
    483481    /** Worker thread. */
    484482    R3PTRTYPE(PPDMTHREAD)           pThreadWrk;
     
    34503448    PBUSLOGIC pThis = PDMDEVINS_2_DATA(pDevIns, PBUSLOGIC);
    34513449
    3452     int rc = SUPSemEventSignal(pThis->pSupDrvSession, pThis->hEvtProcess);
     3450    int rc = PDMDevHlpSUPSemEventSignal(pDevIns, pThis->hEvtProcess);
    34533451    AssertRC(rc);
    34543452
     
    37833781        {
    37843782            Assert(ASMAtomicReadBool(&pThis->fWrkThreadSleeping));
    3785             rc = SUPSemEventWaitNoResume(pThis->pSupDrvSession, pThis->hEvtProcess, RT_INDEFINITE_WAIT);
     3783            rc = PDMDevHlpSUPSemEventWaitNoResume(pDevIns, pThis->hEvtProcess, RT_INDEFINITE_WAIT);
    37863784            AssertLogRelMsgReturn(RT_SUCCESS(rc) || rc == VERR_INTERRUPTED, ("%Rrc\n", rc), rc);
    37873785            if (RT_UNLIKELY(pThread->enmState != PDMTHREADSTATE_RUNNING))
     
    38283826    RT_NOREF(pThread);
    38293827    PBUSLOGIC pThis = PDMDEVINS_2_DATA(pDevIns, PBUSLOGIC);
    3830     return SUPSemEventSignal(pThis->pSupDrvSession, pThis->hEvtProcess);
     3828    return PDMDevHlpSUPSemEventSignal(pDevIns, pThis->hEvtProcess);
    38313829}
    38323830
     
    42014199    if (pThis->hEvtProcess != NIL_SUPSEMEVENT)
    42024200    {
    4203         SUPSemEventClose(pThis->pSupDrvSession, pThis->hEvtProcess);
     4201        PDMDevHlpSUPSemEventClose(pDevIns, pThis->hEvtProcess);
    42044202        pThis->hEvtProcess = NIL_SUPSEMEVENT;
    42054203    }
     
    42164214    PBUSLOGIC       pThis = PDMDEVINS_2_DATA(pDevIns, PBUSLOGIC);
    42174215    PCPDMDEVHLPR3   pHlp = pDevIns->pHlpR3;
    4218     int             rc = VINF_SUCCESS;
    4219     char            szCfgStr[16];
    42204216
    42214217    /*
     
    42544250
    42554251    bool fBootable = true;
    4256     rc = pHlp->pfnCFGMQueryBoolDef(pCfg, "Bootable", &fBootable, true);
     4252    int rc = pHlp->pfnCFGMQueryBoolDef(pCfg, "Bootable", &fBootable, true);
    42574253    if (RT_FAILURE(rc))
    42584254        return PDMDEV_SET_ERROR(pDevIns, rc, N_("BusLogic configuration error: failed to read Bootable as boolean"));
     
    42604256
    42614257    /* Figure out the emulated device type. */
     4258    char szCfgStr[16];
    42624259    rc = pHlp->pfnCFGMQueryStringDef(pCfg, "AdapterType", szCfgStr, sizeof(szCfgStr), "BT-958D");
    42634260    if (RT_FAILURE(rc))
     
    43544351     * Create event semaphore and worker thread.
    43554352     */
    4356     rc = SUPSemEventCreate(pThis->pSupDrvSession, &pThis->hEvtProcess);
     4353    rc = PDMDevHlpSUPSemEventCreate(pDevIns, &pThis->hEvtProcess);
    43574354    if (RT_FAILURE(rc))
    43584355        return PDMDevHlpVMSetError(pDevIns, rc, RT_SRC_POS,
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