VirtualBox

Changeset 44508 in vbox for trunk/src/VBox/VMM


Ignore:
Timestamp:
Feb 1, 2013 12:46:33 PM (12 years ago)
Author:
vboxsync
Message:

Drop the pfnSaveExecR3 and pfnLoadExecR3 interfaces of the PCI buses (never used). Synced pciR3CommonRestoreConfig between the two PCI buses, dropping the constants in the table as they make double checking sizes and offsets harder. Also removing the pfnIOCtl device registration structure member, putting a pfnReserved in it's place.

Location:
trunk/src/VBox/VMM
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR3/PDMDevHlp.cpp

    r44351 r44508  
    14251425        PVM pVM = pDevIns->Internal.s.pVMR3;
    14261426        pdmLock(pVM);
    1427         if (!pBus->pfnRegisterMsiR3)
     1427        if (pBus->pfnRegisterMsiR3)
     1428            rc = pBus->pfnRegisterMsiR3(pBus->pDevInsR3, pPciDev, pMsiReg);
     1429        else
    14281430            rc = VERR_NOT_IMPLEMENTED;
    1429         else
    1430             rc = pBus->pfnRegisterMsiR3(pBus->pDevInsR3, pPciDev, pMsiReg);
    14311431        pdmUnlock(pVM);
    14321432    }
     
    22042204    PVM pVM = pDevIns->Internal.s.pVMR3;
    22052205    VM_ASSERT_EMT(pVM);
    2206     LogFlow(("pdmR3DevHlp_PCIBusRegister: caller='%s'/%d: pPciBusReg=%p:{.u32Version=%#x, .pfnRegisterR3=%p, .pfnIORegionRegisterR3=%p, .pfnSetIrqR3=%p, "
    2207              ".pfnSaveExecR3=%p, .pfnLoadExecR3=%p, .pfnFakePCIBIOSR3=%p, .pszSetIrqRC=%p:{%s}, .pszSetIrqR0=%p:{%s}} ppPciHlpR3=%p\n",
     2206    LogFlow(("pdmR3DevHlp_PCIBusRegister: caller='%s'/%d: pPciBusReg=%p:{.u32Version=%#x, .pfnRegisterR3=%p, .pfnIORegionRegisterR3=%p, "
     2207             ".pfnSetIrqR3=%p, .pfnFakePCIBIOSR3=%p, .pszSetIrqRC=%p:{%s}, .pszSetIrqR0=%p:{%s}} ppPciHlpR3=%p\n",
    22082208             pDevIns->pReg->szName, pDevIns->iInstance, pPciBusReg, pPciBusReg->u32Version, pPciBusReg->pfnRegisterR3,
    2209              pPciBusReg->pfnIORegionRegisterR3, pPciBusReg->pfnSetIrqR3, pPciBusReg->pfnSaveExecR3, pPciBusReg->pfnLoadExecR3,
    2210              pPciBusReg->pfnFakePCIBIOSR3, pPciBusReg->pszSetIrqRC, pPciBusReg->pszSetIrqRC, pPciBusReg->pszSetIrqR0, pPciBusReg->pszSetIrqR0, ppPciHlpR3));
     2209             pPciBusReg->pfnIORegionRegisterR3, pPciBusReg->pfnSetIrqR3, pPciBusReg->pfnFakePCIBIOSR3,
     2210             pPciBusReg->pszSetIrqRC, pPciBusReg->pszSetIrqRC, pPciBusReg->pszSetIrqR0, pPciBusReg->pszSetIrqR0, ppPciHlpR3));
    22112211
    22122212    /*
     
    22222222        ||  !pPciBusReg->pfnIORegionRegisterR3
    22232223        ||  !pPciBusReg->pfnSetIrqR3
    2224         ||  !pPciBusReg->pfnSaveExecR3
    2225         ||  !pPciBusReg->pfnLoadExecR3
    22262224        ||  (!pPciBusReg->pfnFakePCIBIOSR3 && !pVM->pdm.s.aPciBuses[0].pDevInsR3)) /* Only the first bus needs to do the BIOS work. */
    22272225    {
     
    22292227        Assert(pPciBusReg->pfnIORegionRegisterR3);
    22302228        Assert(pPciBusReg->pfnSetIrqR3);
    2231         Assert(pPciBusReg->pfnSaveExecR3);
    2232         Assert(pPciBusReg->pfnLoadExecR3);
    22332229        Assert(pPciBusReg->pfnFakePCIBIOSR3);
    22342230        LogFlow(("pdmR3DevHlp_PCIBusRegister: caller='%s'/%d: returns %Rrc (R3 callbacks)\n", pDevIns->pReg->szName, pDevIns->iInstance, VERR_INVALID_PARAMETER));
     
    23212317    pPciBus->pfnSetConfigCallbacksR3 = pPciBusReg->pfnSetConfigCallbacksR3;
    23222318    pPciBus->pfnSetIrqR3             = pPciBusReg->pfnSetIrqR3;
    2323     pPciBus->pfnSaveExecR3           = pPciBusReg->pfnSaveExecR3;
    2324     pPciBus->pfnLoadExecR3           = pPciBusReg->pfnLoadExecR3;
    23252319    pPciBus->pfnFakePCIBIOSR3        = pPciBusReg->pfnFakePCIBIOSR3;
    23262320
  • trunk/src/VBox/VMM/include/PDMInternal.h

    r44358 r44508  
    619619    DECLR3CALLBACKMEMBER(void,      pfnSetConfigCallbacksR3,(PPDMDEVINS pDevIns, PPCIDEVICE pPciDev, PFNPCICONFIGREAD pfnRead,
    620620                                                             PPFNPCICONFIGREAD ppfnReadOld, PFNPCICONFIGWRITE pfnWrite, PPFNPCICONFIGWRITE ppfnWriteOld));
    621     /** @copydoc PDMPCIBUSREG::pfnSaveExecR3 */
    622     DECLR3CALLBACKMEMBER(int,       pfnSaveExecR3,(PPDMDEVINS pDevIns, PPCIDEVICE pPciDev, PSSMHANDLE pSSMHandle));
    623     /** @copydoc PDMPCIBUSREG::pfnLoadExecR3 */
    624     DECLR3CALLBACKMEMBER(int,       pfnLoadExecR3,(PPDMDEVINS pDevIns, PPCIDEVICE pPciDev, PSSMHANDLE pSSMHandle));
    625621    /** @copydoc PDMPCIBUSREG::pfnFakePCIBIOSR3 */
    626622    DECLR3CALLBACKMEMBER(int,       pfnFakePCIBIOSR3,(PPDMDEVINS pDevIns));
  • trunk/src/VBox/VMM/testcase/tstVMStruct.h

    r44399 r44508  
    406406    GEN_CHECK_OFF_DOT(PDM, aPciBuses[0].pfnRegisterR3);
    407407    GEN_CHECK_OFF_DOT(PDM, aPciBuses[0].pfnIORegionRegisterR3);
    408     GEN_CHECK_OFF_DOT(PDM, aPciBuses[0].pfnSaveExecR3);
    409     GEN_CHECK_OFF_DOT(PDM, aPciBuses[0].pfnLoadExecR3);
    410408    GEN_CHECK_OFF_DOT(PDM, aPciBuses[0].pfnFakePCIBIOSR3);
    411409    GEN_CHECK_OFF_DOT(PDM, aPciBuses[0].pDevInsR0);
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