Changeset 26033 in vbox
- Timestamp:
- Jan 25, 2010 7:47:02 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/x11/vboxvideo/vboxutils_68.c
r23422 r26033 333 333 vboxInitVbva(int scrnIndex, ScreenPtr pScreen, VBOXPtr pVBox) 334 334 { 335 PCITAG pciTag ;336 ADDRESS pciAddr ess;335 PCITAG pciTagDev; 336 ADDRESS pciAddrDev; 337 337 int rc; 338 338 339 339 /* Locate the device. It should already have been enabled by 340 340 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) 344 344 { 345 345 xf86DrvMsg(scrnIndex, X_ERROR, … … 348 348 } 349 349 /* Read the address and size of the second I/O region. */ 350 pciAddr ess = pciReadLong(pciTag, PCI_MAP_REG_START + 4);351 if (pciAddr ess == 0 || pciAddress== (CARD32) ~0)350 pciAddrDev = pciReadLong(pciTagDev, PCI_MAP_REG_START + 4); 351 if (pciAddrDev == 0 || pciAddrDev == (CARD32) ~0) 352 352 RETERROR(scrnIndex, FALSE, 353 353 "The VirtualBox base device contains an invalid memory address.\n"); 354 if (PCI_MAP_IS64BITMEM(pciAddr ess))354 if (PCI_MAP_IS64BITMEM(pciAddrDev)) 355 355 RETERROR(scrnIndex, FALSE, 356 356 "The VirtualBox base device has a 64bit mapping address. " … … 358 358 /* Map it. We hardcode the size as X does not export the 359 359 function needed to determine it. */ 360 pVBox->pVMMDevMemory = xf86MapPciMem(scrnIndex, 0, pciTag , pciAddress,360 pVBox->pVMMDevMemory = xf86MapPciMem(scrnIndex, 0, pciTagDev, pciAddrDev, 361 361 sizeof(VMMDevMemory)); 362 362 if (pVBox->pVMMDevMemory == NULL) … … 960 960 */ 961 961 Bool 962 vboxGetDisplayChangeRequest(ScrnInfoPtr pScrn, uint32_t *p x, uint32_t *py,963 uint32_t *p bpp, uint32_t *display)962 vboxGetDisplayChangeRequest(ScrnInfoPtr pScrn, uint32_t *pX, uint32_t *pY, 963 uint32_t *pBpp, uint32_t *pDisplay) 964 964 { 965 965 int rc, scrnIndex = pScrn->scrnIndex; … … 971 971 if (RT_SUCCESS(rc)) 972 972 { 973 *p x= Req.xres;974 *p y= Req.yres;975 *p bpp = Req.bpp;976 * display = Req.display;973 *pX = Req.xres; 974 *pY = Req.yres; 975 *pBpp = Req.bpp; 976 *pDisplay = Req.display; 977 977 return TRUE; 978 978 }
Note:
See TracChangeset
for help on using the changeset viewer.