Changeset 63690 in vbox for trunk/src/VBox/Devices/Graphics
- Timestamp:
- Sep 2, 2016 12:15:07 PM (8 years ago)
- Location:
- trunk/src/VBox/Devices/Graphics
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Graphics/DevVGA-SVGA.cpp
r63478 r63690 3773 3773 * @param enmType One of the PCI_ADDRESS_SPACE_* values. 3774 3774 */ 3775 DECLCALLBACK(int) vmsvgaR3IORegionMap(PPCIDEVICE pPciDev, int iRegion, RTGCPHYS GCPhysAddress, uint32_t cb, PCIADDRESSSPACE enmType) 3775 DECLCALLBACK(int) vmsvgaR3IORegionMap(PPCIDEVICE pPciDev, int iRegion, RTGCPHYS GCPhysAddress, RTGCPHYS cb, 3776 PCIADDRESSSPACE enmType) 3776 3777 { 3777 3778 int rc; … … 3779 3780 PVGASTATE pThis = PDMINS_2_DATA(pDevIns, PVGASTATE); 3780 3781 3781 Log(("vgasvgaR3IORegionMap: iRegion=%d GCPhysAddress=%RGp cb=% #xenmType=%d\n", iRegion, GCPhysAddress, cb, enmType));3782 Log(("vgasvgaR3IORegionMap: iRegion=%d GCPhysAddress=%RGp cb=%RGp enmType=%d\n", iRegion, GCPhysAddress, cb, enmType)); 3782 3783 if (enmType == PCI_ADDRESS_SPACE_IO) 3783 3784 { -
trunk/src/VBox/Devices/Graphics/DevVGA-SVGA.h
r62514 r63690 41 41 #define VMSVGA_ACTION_CHANGEMODE RT_BIT(VMSVGA_ACTION_CHANGEMODE_BIT) 42 42 43 DECLCALLBACK(int) vmsvgaR3IORegionMap(PPCIDEVICE pPciDev, int iRegion, RTGCPHYS GCPhysAddress, uint32_tcb, PCIADDRESSSPACE enmType);43 DECLCALLBACK(int) vmsvgaR3IORegionMap(PPCIDEVICE pPciDev, int iRegion, RTGCPHYS GCPhysAddress, RTGCPHYS cb, PCIADDRESSSPACE enmType); 44 44 45 45 DECLCALLBACK(void) vmsvgaPortSetViewport(PPDMIDISPLAYPORT pInterface, uint32_t uScreenId, uint32_t x, uint32_t y, uint32_t cx, uint32_t cy); -
trunk/src/VBox/Devices/Graphics/DevVGA.cpp
r63562 r63690 5408 5408 * @param enmType One of the PCI_ADDRESS_SPACE_* values. 5409 5409 */ 5410 static DECLCALLBACK(int) vgaR3IORegionMap(PPCIDEVICE pPciDev, /*unsigned*/ int iRegion, RTGCPHYS GCPhysAddress, uint32_t cb,5411 PCIADDRESSSPACE enmType)5410 static DECLCALLBACK(int) vgaR3IORegionMap(PPCIDEVICE pPciDev, /*unsigned*/ int iRegion, RTGCPHYS GCPhysAddress, 5411 RTGCPHYS cb, PCIADDRESSSPACE enmType) 5412 5412 { 5413 5413 RT_NOREF1(cb); … … 5415 5415 PPDMDEVINS pDevIns = pPciDev->pDevIns; 5416 5416 PVGASTATE pThis = PDMINS_2_DATA(pDevIns, PVGASTATE); 5417 Log(("vgaR3IORegionMap: iRegion=%d GCPhysAddress=%RGp cb=% #xenmType=%d\n", iRegion, GCPhysAddress, cb, enmType));5417 Log(("vgaR3IORegionMap: iRegion=%d GCPhysAddress=%RGp cb=%RGp enmType=%d\n", iRegion, GCPhysAddress, cb, enmType)); 5418 5418 #ifdef VBOX_WITH_VMSVGA 5419 5419 AssertReturn( (iRegion == ((pThis->fVMSVGAEnabled) ? 1 : 0)) … … 6550 6550 return rc; 6551 6551 /* VMware's MetalKit doesn't like PCI_ADDRESS_SPACE_MEM_PREFETCH */ 6552 rc = PDMDevHlpPCIIORegionRegister(pDevIns, 1 /* iRegion */, pThis->vram_size, PCI_ADDRESS_SPACE_MEM /* PCI_ADDRESS_SPACE_MEM_PREFETCH */, vgaR3IORegionMap); 6552 rc = PDMDevHlpPCIIORegionRegister(pDevIns, 1 /* iRegion */, pThis->vram_size, 6553 PCI_ADDRESS_SPACE_MEM /* PCI_ADDRESS_SPACE_MEM_PREFETCH */, vgaR3IORegionMap); 6553 6554 if (RT_FAILURE(rc)) 6554 6555 return rc; 6555 rc = PDMDevHlpPCIIORegionRegister(pDevIns, 2 /* iRegion */, VMSVGA_FIFO_SIZE, PCI_ADDRESS_SPACE_MEM /* PCI_ADDRESS_SPACE_MEM_PREFETCH */, vmsvgaR3IORegionMap); 6556 rc = PDMDevHlpPCIIORegionRegister(pDevIns, 2 /* iRegion */, VMSVGA_FIFO_SIZE, 6557 PCI_ADDRESS_SPACE_MEM /* PCI_ADDRESS_SPACE_MEM_PREFETCH */, vmsvgaR3IORegionMap); 6556 6558 if (RT_FAILURE(rc)) 6557 6559 return rc; … … 6559 6561 else 6560 6562 #endif /* VBOX_WITH_VMSVGA */ 6561 rc = PDMDevHlpPCIIORegionRegister(pDevIns, iPCIRegionVRAM, pThis->vram_size, PCI_ADDRESS_SPACE_MEM_PREFETCH, vgaR3IORegionMap); 6562 if (RT_FAILURE(rc)) 6563 return rc; 6563 { 6564 rc = PDMDevHlpPCIIORegionRegister(pDevIns, iPCIRegionVRAM, pThis->vram_size, 6565 PCI_ADDRESS_SPACE_MEM_PREFETCH, vgaR3IORegionMap); 6566 if (RT_FAILURE(rc)) 6567 return rc; 6568 } 6564 6569 6565 6570 /*
Note:
See TracChangeset
for help on using the changeset viewer.