VirtualBox

Changeset 82073 in vbox for trunk/src/VBox/Devices


Ignore:
Timestamp:
Nov 21, 2019 10:57:54 AM (5 years ago)
Author:
vboxsync
Message:

DevPCI: Added a special return code to FNPCIIOREGIONMAP for telling the bus that the callback did the mapping and it should not use the registered handle to do so again. Needed for VGA (alternative was to reorder the callout order). bugref:9218

File:
1 edited

Legend:

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

    r81765 r82073  
    27382738                {
    27392739                    /* The callout is optional with new style devices: */
    2740                     if (pRegion->pfnMap)
     2740                    if (!pRegion->pfnMap)
     2741                        rc = VINF_SUCCESS;
     2742                    else
    27412743                    {
    27422744                        rc = pRegion->pfnMap(pPciDev->Int.s.pDevInsR3, pPciDev, iRegion,
     
    27462748
    27472749                    /* We do the mapping for new-style devices: */
    2748                     if (pRegion->hHandle != UINT64_MAX)
     2750                    if (pRegion->hHandle != UINT64_MAX && rc != VINF_PCI_MAPPING_DONE)
    27492751                    {
    27502752                        switch (pRegion->fFlags & PDMPCIDEV_IORGN_F_HANDLE_MASK)
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