VirtualBox

Ignore:
Timestamp:
Oct 30, 2019 2:14:10 PM (5 years ago)
Author:
vboxsync
Message:

Devices: Use PDMDEVINS_2_DATA and PDMDEVINS_2_DATA. bugref:9218

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Audio/DevSB16.cpp

    r80704 r81591  
    16771677    RT_NOREF(pDevIns);
    16781678    PSB16STATE pThis = (PSB16STATE)pvUser;
    1679     Assert(pThis == PDMINS_2_DATA(pDevIns, PSB16STATE));
     1679    Assert(pThis == PDMDEVINS_2_DATA(pDevIns, PSB16STATE));
    16801680    AssertPtr(pThis);
    16811681
     
    17501750{
    17511751    RT_NOREF(uPass);
    1752     PSB16STATE pThis = PDMINS_2_DATA(pDevIns, PSB16STATE);
     1752    PSB16STATE pThis = PDMDEVINS_2_DATA(pDevIns, PSB16STATE);
    17531753
    17541754    SSMR3PutS32(pSSM, pThis->irqCfg);
     
    18211821static DECLCALLBACK(int) sb16SaveExec(PPDMDEVINS pDevIns, PSSMHANDLE pSSM)
    18221822{
    1823     PSB16STATE pThis = PDMINS_2_DATA(pDevIns, PSB16STATE);
     1823    PSB16STATE pThis = PDMDEVINS_2_DATA(pDevIns, PSB16STATE);
    18241824
    18251825    sb16LiveExec(pDevIns, pSSM, 0);
     
    19041904static DECLCALLBACK(int) sb16LoadExec(PPDMDEVINS pDevIns, PSSMHANDLE pSSM, uint32_t uVersion, uint32_t uPass)
    19051905{
    1906     PSB16STATE pThis = PDMINS_2_DATA(pDevIns, PSB16STATE);
     1906    PSB16STATE pThis = PDMDEVINS_2_DATA(pDevIns, PSB16STATE);
    19071907
    19081908    AssertMsgReturn(    uVersion == SB16_SAVE_STATE_VERSION
     
    22182218static DECLCALLBACK(int) sb16Attach(PPDMDEVINS pDevIns, unsigned uLUN, uint32_t fFlags)
    22192219{
    2220     PSB16STATE pThis = PDMINS_2_DATA(pDevIns, PSB16STATE);
     2220    PSB16STATE pThis = PDMDEVINS_2_DATA(pDevIns, PSB16STATE);
    22212221
    22222222    LogFunc(("uLUN=%u, fFlags=0x%x\n", uLUN, fFlags));
     
    22352235static DECLCALLBACK(void) sb16Detach(PPDMDEVINS pDevIns, unsigned uLUN, uint32_t fFlags)
    22362236{
    2237     PSB16STATE pThis = PDMINS_2_DATA(pDevIns, PSB16STATE);
     2237    PSB16STATE pThis = PDMDEVINS_2_DATA(pDevIns, PSB16STATE);
    22382238
    22392239    LogFunc(("uLUN=%u, fFlags=0x%x\n", uLUN, fFlags));
     
    23342334static DECLCALLBACK(void) sb16DevReset(PPDMDEVINS pDevIns)
    23352335{
    2336     PSB16STATE pThis = PDMINS_2_DATA(pDevIns, PSB16STATE);
     2336    PSB16STATE pThis = PDMDEVINS_2_DATA(pDevIns, PSB16STATE);
    23372337
    23382338    /* Bring back the device to initial state, and especially make
     
    23692369static DECLCALLBACK(void) sb16PowerOff(PPDMDEVINS pDevIns)
    23702370{
    2371     PSB16STATE pThis = PDMINS_2_DATA(pDevIns, PSB16STATE);
     2371    PSB16STATE pThis = PDMDEVINS_2_DATA(pDevIns, PSB16STATE);
    23722372
    23732373    LogRel2(("SB16: Powering off ...\n"));
     
    23842384{
    23852385    PDMDEV_CHECK_VERSIONS_RETURN_QUIET(pDevIns); /* this shall come first */
    2386     PSB16STATE pThis = PDMINS_2_DATA(pDevIns, PSB16STATE);
     2386    PSB16STATE pThis = PDMDEVINS_2_DATA(pDevIns, PSB16STATE);
    23872387
    23882388    LogFlowFuncEnter();
     
    24042404    RT_NOREF(iInstance);
    24052405    PDMDEV_CHECK_VERSIONS_RETURN(pDevIns); /* this shall come first */
    2406     PSB16STATE pThis = PDMINS_2_DATA(pDevIns, PSB16STATE);
     2406    PSB16STATE pThis = PDMDEVINS_2_DATA(pDevIns, PSB16STATE);
    24072407
    24082408    /*
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