VirtualBox

Changeset 39135 in vbox for trunk/src/VBox/Devices/Bus


Ignore:
Timestamp:
Oct 28, 2011 9:47:55 AM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
74586
Message:

Changed PDMDevHlpMMIORegister to take flags and drop pfnFill. Added PDMDevHlpMMIORegisterEx for the one user of pfnFill.

Location:
trunk/src/VBox/Devices/Bus
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Bus/DevPciIch9.cpp

    r39091 r39135  
    112112    uint8_t             uBus;
    113113#endif
    114     /* Physical address of PCI config space MMIO region */
     114    /** Physical address of PCI config space MMIO region. */
    115115    uint64_t            u64PciConfigMMioAddress;
    116     /* Length of PCI config space MMIO region */
     116    /** Length of PCI config space MMIO region. */
    117117    uint64_t            u64PciConfigMMioLength;
    118118
     
    25142514    if (pGlobals->u64PciConfigMMioAddress != 0)
    25152515    {
    2516         rc = PDMDevHlpMMIORegister(pDevIns,
    2517                                    pGlobals->u64PciConfigMMioAddress,
    2518                                    pGlobals->u64PciConfigMMioLength,
    2519                                    0,
    2520                                    ich9pciMcfgMMIOWrite,
    2521                                    ich9pciMcfgMMIORead,
    2522                                    NULL /* fill */,
    2523                                    "MCFG ranges");
    2524         if (RT_FAILURE(rc))
    2525         {
    2526             AssertMsgRC(rc, ("Cannot register MCFG MMIO: %Rrc\n", rc));
    2527             return rc;
    2528         }
     2516        rc = PDMDevHlpMMIORegister(pDevIns, pGlobals->u64PciConfigMMioAddress, pGlobals->u64PciConfigMMioLength, NULL /*pvUser*/,
     2517                                   IOMMMIO_FLAGS_READ_PASSTHRU | IOMMMIO_FLAGS_WRITE_PASSTHRU,
     2518                                   ich9pciMcfgMMIOWrite, ich9pciMcfgMMIORead, "MCFG ranges");
     2519        AssertMsgRCReturn(rc, ("rc=%Rrc %#llx/%#llx\n", rc,  pGlobals->u64PciConfigMMioAddress, pGlobals->u64PciConfigMMioLength), rc);
    25292520
    25302521        if (fGCEnabled)
  • trunk/src/VBox/Devices/Bus/MsixCommon.cpp

    r39091 r39135  
    157157
    158158    int rc = PDMDevHlpMMIORegister(pPciDev->pDevIns, GCPhysAddress, cb, pPciDev,
    159                                    msixMMIOWrite, msixMMIORead, NULL, "MSI-X tables");
     159                                   IOMMMIO_FLAGS_READ_PASSTHRU | IOMMMIO_FLAGS_WRITE_PASSTHRU,
     160                                   msixMMIOWrite, msixMMIORead, "MSI-X tables");
    160161
    161162    if (RT_FAILURE(rc))
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette