VirtualBox

Changeset 26032 in vbox for trunk/src/VBox/Additions


Ignore:
Timestamp:
Jan 25, 2010 7:44:19 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
56928
Message:

warning

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/x11/vboxvideo/vboxutils.c

    r22445 r26032  
    345345    }
    346346#else
    347     PCITAG pciTag;
    348     ADDRESS pciAddress;
     347    PCITAG pciTagDev;
     348    ADDRESS pciAddrDev;
    349349
    350350    TRACE_ENTRY();
    351351    /* Locate the device.  It should already have been enabled by
    352352       the kernel driver. */
    353     pciTag = pciFindFirst((unsigned) VMMDEV_DEVICEID << 16 | VMMDEV_VENDORID,
    354                           (CARD32) ~0);
    355     if (pciTag == PCI_NOT_FOUND)
     353    pciTagDev = pciFindFirst((unsigned) VMMDEV_DEVICEID << 16 | VMMDEV_VENDORID,
     354                             (CARD32) ~0);
     355    if (pciTagDev == PCI_NOT_FOUND)
    356356    {
    357357        xf86DrvMsg(scrnIndex, X_ERROR,
     
    360360    }
    361361    /* Read the address and size of the second I/O region. */
    362     pciAddress = pciReadLong(pciTag, PCI_MAP_REG_START + 4);
    363     if (pciAddress == 0 || pciAddress == (CARD32) ~0)
     362    pciAddrDev = pciReadLong(pciTagDev, PCI_MAP_REG_START + 4);
     363    if (pciAddrDev == 0 || pciAddrDev == (CARD32) ~0)
    364364        RETERROR(scrnIndex, FALSE,
    365365                 "The VirtualBox base device contains an invalid memory address.\n");
    366     if (PCI_MAP_IS64BITMEM(pciAddress))
     366    if (PCI_MAP_IS64BITMEM(pciAddrDev))
    367367        RETERROR(scrnIndex, FALSE,
    368368                 "The VirtualBox base device has a 64bit mapping address.  "
     
    370370    /* Map it.  We hardcode the size as X does not export the
    371371       function needed to determine it. */
    372     pVBox->pVMMDevMemory = xf86MapPciMem(scrnIndex, 0, pciTag, pciAddress,
     372    pVBox->pVMMDevMemory = xf86MapPciMem(scrnIndex, 0, pciTagDev, pciAddrDev,
    373373                                         sizeof(VMMDevMemory));
    374374#endif
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