VirtualBox

Ignore:
Timestamp:
Oct 23, 2016 7:03:39 PM (8 years ago)
Author:
vboxsync
Message:

PDM,Devices: Support for multiple PCI devices/function in a single PDM device.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/GIMDev/GIMDev.cpp

    r64357 r64373  
    285285        {
    286286            Assert(!pCur->fRegistered);
    287             rc = PDMDevHlpMMIO2Register(pDevIns, pCur->iRegion, pCur->cbRegion, 0 /* fFlags */, &pCur->pvPageR3,
    288                                             pCur->szDescription);
     287            rc = PDMDevHlpMMIO2Register(pDevIns, NULL, pCur->iRegion, pCur->cbRegion, 0 /* fFlags */, &pCur->pvPageR3,
     288                                        pCur->szDescription);
    289289            if (RT_FAILURE(rc))
    290290                return rc;
     
    294294#if defined(VBOX_WITH_2X_4GB_ADDR_SPACE)
    295295            RTR0PTR pR0Mapping = 0;
    296             rc = PDMDevHlpMMIO2MapKernel(pDevIns, pCur->iRegion, 0 /* off */, pCur->cbRegion, pCur->szDescription,
     296            rc = PDMDevHlpMMIO2MapKernel(pDevIns, NULL, pCur->iRegion, 0 /* off */, pCur->cbRegion, pCur->szDescription,
    297297                                         &pR0Mapping);
    298298            AssertLogRelMsgRCReturn(rc, ("PDMDevHlpMapMMIO2IntoR0(%#x,) -> %Rrc\n", pCur->cbRegion, rc), rc);
     
    308308            {
    309309                RTRCPTR pRCMapping = 0;
    310                 rc = PDMDevHlpMMHyperMapMMIO2(pDevIns, pCur->iRegion, 0 /* off */, pCur->cbRegion, pCur->szDescription,
     310                rc = PDMDevHlpMMHyperMapMMIO2(pDevIns, NULL, pCur->iRegion, 0 /* off */, pCur->cbRegion, pCur->szDescription,
    311311                                              &pRCMapping);
    312312                AssertLogRelMsgRCReturn(rc, ("PDMDevHlpMMHyperMapMMIO2(%#x,) -> %Rrc\n", pCur->cbRegion, rc), rc);
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