Changeset 32495 in vbox
- Timestamp:
- Sep 14, 2010 10:14:42 PM (14 years ago)
- Location:
- trunk/src/VBox/Additions/x11/vboxvideo
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/x11/vboxvideo/vboxvideo.h
r28800 r32495 185 185 typedef struct _VBOXRec 186 186 { 187 vbeInfoPtr pVbe; 187 vbeInfoPtr pVbe; /** @todo do the VBE bits ourselves? */ 188 188 EntityInfoPtr pEnt; 189 VbeInfoBlock *vbeInfo;190 189 #ifdef PCIACCESS 191 190 struct pci_device *pciInfo; … … 195 194 PCITAG pciTag; 196 195 #endif 197 CARD16 maxBytesPerScanline; 198 unsigned long mapPhys, mapOff, mapSize; /* video memory */ 199 void *base, *VGAbase; 196 unsigned long mapSize; /* video memory */ 197 void *base; 200 198 CARD8 *state, *pstate; /* SVGA state */ 201 199 int statePage, stateSize, stateMode; … … 209 207 Bool accessEnabled; 210 208 OptionInfoPtr Options; 211 IOADDRESS ioBase; 212 /** The width of the last resolution set, used to avoid resetting modes */ 213 int cLastWidth; 214 /** The height of the last resolution set */ 215 int cLastHeight; 216 VMMDevReqMousePointer *reqp; 217 xf86CursorInfoPtr pCurs; 209 VMMDevReqMousePointer *reqp; /** @todo get rid of this */ 218 210 size_t pointerHeaderSize; 219 211 size_t pointerSize; 212 xf86CursorInfoPtr pCurs; 220 213 Bool useDevice; 221 214 Bool forceSWCursor; -
trunk/src/VBox/Additions/x11/vboxvideo/vboxvideo_13.c
r32404 r32495 866 866 unsigned flags; 867 867 868 if (p VBox->mapPhys== 0) {868 if (pScrn->memPhysBase == 0) { 869 869 #ifdef PCIACCESS 870 p VBox->mapPhys= pVBox->pciInfo->regions[0].base_addr;870 pScrn->memPhysBase = pVBox->pciInfo->regions[0].base_addr; 871 871 #else 872 p VBox->mapPhys= pVBox->pciInfo->memBase[0];872 pScrn->memPhysBase = pVBox->pciInfo->memBase[0]; 873 873 #endif 874 874 /* pVBox->mapSize = 1 << pVBox->pciInfo->size[0]; */ … … 876 876 non-powers-of-two sized video RAM configurations */ 877 877 pVBox->mapSize = inl(VBE_DISPI_IOPORT_DATA); 878 p VBox->mapOff= 0;878 pScrn->fbOffset = 0; 879 879 } 880 880 … … 1253 1253 if (!pVBox->base) 1254 1254 { 1255 pScrn->memPhysBase = pVBox->mapPhys;1256 pScrn->fbOffset = pVBox->mapOff;1257 1258 1255 #ifdef PCIACCESS 1259 1256 (void) pci_device_map_range(pVBox->pciInfo, … … 1265 1262 pVBox->base = xf86MapPciMem(pScrn->scrnIndex, 1266 1263 VIDMEM_FRAMEBUFFER, 1267 pVBox->pciTag, p VBox->mapPhys,1264 pVBox->pciTag, pScrn->memPhysBase, 1268 1265 (unsigned) pVBox->mapSize); 1269 1266 #endif -
trunk/src/VBox/Additions/x11/vboxvideo/vboxvideo_70.c
r30173 r32495 333 333 { 334 334 VBOXPtr pVBox = VBOXGetRec(pScrn); 335 #if 0336 xfree(pVBox->vbeInfo);337 #endif338 335 xfree(pVBox->savedPal); 339 336 xfree(pVBox->fonts); … … 672 669 return (FALSE); 673 670 674 if (p VBox->mapPhys== 0) {671 if (pScrn->memPhysBase == 0) { 675 672 #ifdef PCIACCESS 676 p VBox->mapPhys= pVBox->pciInfo->regions[0].base_addr;673 pScrn->memPhysBase = pVBox->pciInfo->regions[0].base_addr; 677 674 #else 678 p VBox->mapPhys= pVBox->pciInfo->memBase[0];675 pScrn->memPhysBase = pVBox->pciInfo->memBase[0]; 679 676 #endif 680 677 /* pVBox->mapSize = 1 << pVBox->pciInfo->size[0]; */ … … 682 679 non-powers-of-two sized video RAM configurations */ 683 680 pVBox->mapSize = inl(VBE_DISPI_IOPORT_DATA); 684 p VBox->mapOff= 0;681 pScrn->fbOffset = 0; 685 682 } 686 683 … … 952 949 outw(VBE_DISPI_IOPORT_INDEX, VBE_DISPI_INDEX_VIRT_WIDTH); 953 950 outw(VBE_DISPI_IOPORT_DATA, pMode->HDisplay); 954 pVBox->cLastWidth = pMode->HDisplay;955 pVBox->cLastHeight = pMode->VDisplay;956 951 vboxEnableGraphicsCap(pVBox); 957 952 TRACE_EXIT(); … … 1016 1011 return (TRUE); 1017 1012 1018 pScrn->memPhysBase = pVBox->mapPhys;1019 pScrn->fbOffset = pVBox->mapOff;1020 1021 1013 #ifdef PCIACCESS 1022 1014 (void) pci_device_map_range(pVBox->pciInfo, … … 1028 1020 pVBox->base = xf86MapPciMem(pScrn->scrnIndex, 1029 1021 VIDMEM_FRAMEBUFFER, 1030 pVBox->pciTag, p VBox->mapPhys,1022 pVBox->pciTag, pScrn->memPhysBase, 1031 1023 (unsigned) pVBox->mapSize); 1032 1024 #endif -
trunk/src/VBox/Additions/x11/vboxvideo/vboxvideo_dri.c
r32168 r32495 255 255 pDRIInfo->ddxDrawableTableEntry = VBOX_MAX_DRAWABLES; 256 256 pDRIInfo->maxDrawableTableEntry = VBOX_MAX_DRAWABLES; 257 pDRIInfo->frameBufferPhysicalAddress = (pointer)p VBox->mapPhys;257 pDRIInfo->frameBufferPhysicalAddress = (pointer)pScrn->memPhysBase; 258 258 pDRIInfo->frameBufferSize = pVBox->mapSize; 259 259 pDRIInfo->frameBufferStride = pScrn->displayWidth
Note:
See TracChangeset
for help on using the changeset viewer.