Changeset 26032 in vbox for trunk/src/VBox/Additions
- Timestamp:
- Jan 25, 2010 7:44:19 PM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 56928
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/x11/vboxvideo/vboxutils.c
r22445 r26032 345 345 } 346 346 #else 347 PCITAG pciTag ;348 ADDRESS pciAddr ess;347 PCITAG pciTagDev; 348 ADDRESS pciAddrDev; 349 349 350 350 TRACE_ENTRY(); 351 351 /* Locate the device. It should already have been enabled by 352 352 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) 356 356 { 357 357 xf86DrvMsg(scrnIndex, X_ERROR, … … 360 360 } 361 361 /* Read the address and size of the second I/O region. */ 362 pciAddr ess = pciReadLong(pciTag, PCI_MAP_REG_START + 4);363 if (pciAddr ess == 0 || pciAddress== (CARD32) ~0)362 pciAddrDev = pciReadLong(pciTagDev, PCI_MAP_REG_START + 4); 363 if (pciAddrDev == 0 || pciAddrDev == (CARD32) ~0) 364 364 RETERROR(scrnIndex, FALSE, 365 365 "The VirtualBox base device contains an invalid memory address.\n"); 366 if (PCI_MAP_IS64BITMEM(pciAddr ess))366 if (PCI_MAP_IS64BITMEM(pciAddrDev)) 367 367 RETERROR(scrnIndex, FALSE, 368 368 "The VirtualBox base device has a 64bit mapping address. " … … 370 370 /* Map it. We hardcode the size as X does not export the 371 371 function needed to determine it. */ 372 pVBox->pVMMDevMemory = xf86MapPciMem(scrnIndex, 0, pciTag , pciAddress,372 pVBox->pVMMDevMemory = xf86MapPciMem(scrnIndex, 0, pciTagDev, pciAddrDev, 373 373 sizeof(VMMDevMemory)); 374 374 #endif
Note:
See TracChangeset
for help on using the changeset viewer.