VirtualBox

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


Ignore:
Timestamp:
Apr 15, 2011 9:24:13 AM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
71177
Message:

PCI: cleanups, R3 mapping work

File:
1 edited

Legend:

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

    r36663 r36678  
    958958    pRegion->map_func    = pfnCallback;
    959959
    960     /* Set type in the config space. */
    961     uint32_t u32Address = ich9pciGetRegionReg(iRegion);
    962     uint32_t u32Value   =
    963           (((enmType & PCI_ADDRESS_SPACE_MEM_PREFETCH) != 0) ? (1 << 3) : 0)
    964         | (((enmType & PCI_ADDRESS_SPACE_IO) != 0)  ? 1 : 0);
    965     PCIDevSetDWord(pPciDev, u32Address, u32Value);
     960    /* Set type in the PCI config space. */
     961    uint32_t u32Value   = ((uint32_t)enmType) & (PCI_ADDRESS_SPACE_IO | PCI_ADDRESS_SPACE_BAR64 | PCI_ADDRESS_SPACE_MEM_PREFETCH);
     962    PCIDevSetDWord(pPciDev, ich9pciGetRegionReg(iRegion), u32Value);
    966963
    967964    return VINF_SUCCESS;
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