VirtualBox

Changeset 36153 in vbox for trunk/src/VBox/HostDrivers


Ignore:
Timestamp:
Mar 3, 2011 4:14:59 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
70338
Message:

PCI: more raw and 64-bit BARs coding

Location:
trunk/src/VBox/HostDrivers/VBoxPci
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/VBoxPci/VBoxPci.c

    r36138 r36153  
    139139                                    RTHCPHYS       RegionStart,
    140140                                    uint64_t       u64RegionSize,
     141                                    int32_t        fFlags,
    141142                                    RTR0PTR        *pRegionBase)
    142143{
    143144    PVBOXRAWPCIINS pThis = DEVPORT_2_VBOXRAWPCIINS(pPort);
    144145
    145     int rc = vboxPciOsDevMapRegion(pThis, iRegion, RegionStart, u64RegionSize, pRegionBase);
     146    int rc = vboxPciOsDevMapRegion(pThis, iRegion, RegionStart, u64RegionSize, fFlags, pRegionBase);
    146147
    147148    return rc;
     
    152153 */
    153154DECLHIDDEN(int) vboxPciDevUnmapRegion(PRAWPCIDEVPORT pPort,
     155                                      int32_t        iRegion,
    154156                                      RTHCPHYS       RegionStart,
    155157                                      uint64_t       u64RegionSize,
     
    158160    PVBOXRAWPCIINS pThis = DEVPORT_2_VBOXRAWPCIINS(pPort);
    159161
    160     int rc = vboxPciOsDevUnmapRegion(pThis, RegionStart, u64RegionSize, RegionBase);
     162    int rc = vboxPciOsDevUnmapRegion(pThis, iRegion, RegionStart, u64RegionSize, RegionBase);
    161163
    162164    return rc;
     
    170172    PVBOXRAWPCIINS pThis = DEVPORT_2_VBOXRAWPCIINS(pPort);
    171173
    172     int rc = vboxPciOsDevPciCfgRead(pThis, Register, pValue);
     174    int rc;
     175
     176    rc = vboxPciOsDevPciCfgRead(pThis, Register, pValue);
    173177
    174178    return rc;
  • trunk/src/VBox/HostDrivers/VBoxPci/VBoxPciInternal.h

    r36138 r36153  
    113113                                       RTHCPHYS       pRegionStart,
    114114                                       uint64_t       u64RegionSize,
     115                                       uint32_t       fFlags,
    115116                                       RTR0PTR        *pRegionBase);
    116117DECLHIDDEN(int)  vboxPciOsDevUnmapRegion(PVBOXRAWPCIINS pIns,
     118                                         int32_t        iRegion,
    117119                                         RTHCPHYS       RegionStart,
    118120                                         uint64_t       u64RegionSize,
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