VirtualBox

Changeset 26033 in vbox


Ignore:
Timestamp:
Jan 25, 2010 7:47:02 PM (15 years ago)
Author:
vboxsync
Message:

warnings

File:
1 edited

Legend:

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

    r23422 r26033  
    333333vboxInitVbva(int scrnIndex, ScreenPtr pScreen, VBOXPtr pVBox)
    334334{
    335     PCITAG pciTag;
    336     ADDRESS pciAddress;
     335    PCITAG pciTagDev;
     336    ADDRESS pciAddrDev;
    337337    int rc;
    338338
    339339    /* Locate the device.  It should already have been enabled by
    340340       the kernel driver. */
    341     pciTag = pciFindFirst((unsigned) VMMDEV_DEVICEID << 16 | VMMDEV_VENDORID,
    342                           (CARD32) ~0);
    343     if (pciTag == PCI_NOT_FOUND)
     341    pciTagDev = pciFindFirst((unsigned) VMMDEV_DEVICEID << 16 | VMMDEV_VENDORID,
     342                             (CARD32) ~0);
     343    if (pciTagDev == PCI_NOT_FOUND)
    344344    {
    345345        xf86DrvMsg(scrnIndex, X_ERROR,
     
    348348    }
    349349    /* Read the address and size of the second I/O region. */
    350     pciAddress = pciReadLong(pciTag, PCI_MAP_REG_START + 4);
    351     if (pciAddress == 0 || pciAddress == (CARD32) ~0)
     350    pciAddrDev = pciReadLong(pciTagDev, PCI_MAP_REG_START + 4);
     351    if (pciAddrDev == 0 || pciAddrDev == (CARD32) ~0)
    352352        RETERROR(scrnIndex, FALSE,
    353353                 "The VirtualBox base device contains an invalid memory address.\n");
    354     if (PCI_MAP_IS64BITMEM(pciAddress))
     354    if (PCI_MAP_IS64BITMEM(pciAddrDev))
    355355        RETERROR(scrnIndex, FALSE,
    356356                 "The VirtualBox base device has a 64bit mapping address.  "
     
    358358    /* Map it.  We hardcode the size as X does not export the
    359359       function needed to determine it. */
    360     pVBox->pVMMDevMemory = xf86MapPciMem(scrnIndex, 0, pciTag, pciAddress,
     360    pVBox->pVMMDevMemory = xf86MapPciMem(scrnIndex, 0, pciTagDev, pciAddrDev,
    361361                                         sizeof(VMMDevMemory));
    362362    if (pVBox->pVMMDevMemory == NULL)
     
    960960 */
    961961Bool
    962 vboxGetDisplayChangeRequest(ScrnInfoPtr pScrn, uint32_t *px, uint32_t *py,
    963                             uint32_t *pbpp, uint32_t *display)
     962vboxGetDisplayChangeRequest(ScrnInfoPtr pScrn, uint32_t *pX, uint32_t *pY,
     963                            uint32_t *pBpp, uint32_t *pDisplay)
    964964{
    965965    int rc, scrnIndex = pScrn->scrnIndex;
     
    971971    if (RT_SUCCESS(rc))
    972972    {
    973         *px = Req.xres;
    974         *py = Req.yres;
    975         *pbpp = Req.bpp;
    976         *display = Req.display;
     973        *pX = Req.xres;
     974        *pY = Req.yres;
     975        *pBpp = Req.bpp;
     976        *pDisplay = Req.display;
    977977        return TRUE;
    978978    }
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