VirtualBox

Changeset 63690 in vbox for trunk/src/VBox/Devices/Graphics


Ignore:
Timestamp:
Sep 2, 2016 12:15:07 PM (8 years ago)
Author:
vboxsync
Message:

PCI,Devices: Changed range size in FNPCIIOREGIONMAP from uint32_t to RTGCPHYS.

Location:
trunk/src/VBox/Devices/Graphics
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Graphics/DevVGA-SVGA.cpp

    r63478 r63690  
    37733773 * @param   enmType         One of the PCI_ADDRESS_SPACE_* values.
    37743774 */
    3775 DECLCALLBACK(int) vmsvgaR3IORegionMap(PPCIDEVICE pPciDev, int iRegion, RTGCPHYS GCPhysAddress, uint32_t cb, PCIADDRESSSPACE enmType)
     3775DECLCALLBACK(int) vmsvgaR3IORegionMap(PPCIDEVICE pPciDev, int iRegion, RTGCPHYS GCPhysAddress, RTGCPHYS cb,
     3776                                      PCIADDRESSSPACE enmType)
    37763777{
    37773778    int         rc;
     
    37793780    PVGASTATE   pThis = PDMINS_2_DATA(pDevIns, PVGASTATE);
    37803781
    3781     Log(("vgasvgaR3IORegionMap: iRegion=%d GCPhysAddress=%RGp cb=%#x enmType=%d\n", iRegion, GCPhysAddress, cb, enmType));
     3782    Log(("vgasvgaR3IORegionMap: iRegion=%d GCPhysAddress=%RGp cb=%RGp enmType=%d\n", iRegion, GCPhysAddress, cb, enmType));
    37823783    if (enmType == PCI_ADDRESS_SPACE_IO)
    37833784    {
  • trunk/src/VBox/Devices/Graphics/DevVGA-SVGA.h

    r62514 r63690  
    4141#define VMSVGA_ACTION_CHANGEMODE        RT_BIT(VMSVGA_ACTION_CHANGEMODE_BIT)
    4242
    43 DECLCALLBACK(int) vmsvgaR3IORegionMap(PPCIDEVICE pPciDev, int iRegion, RTGCPHYS GCPhysAddress, uint32_t cb, PCIADDRESSSPACE enmType);
     43DECLCALLBACK(int) vmsvgaR3IORegionMap(PPCIDEVICE pPciDev, int iRegion, RTGCPHYS GCPhysAddress, RTGCPHYS cb, PCIADDRESSSPACE enmType);
    4444
    4545DECLCALLBACK(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  
    54085408 * @param   enmType         One of the PCI_ADDRESS_SPACE_* values.
    54095409 */
    5410 static DECLCALLBACK(int) vgaR3IORegionMap(PPCIDEVICE pPciDev, /*unsigned*/ int iRegion, RTGCPHYS GCPhysAddress, uint32_t cb,
    5411                                           PCIADDRESSSPACE enmType)
     5410static DECLCALLBACK(int) vgaR3IORegionMap(PPCIDEVICE pPciDev, /*unsigned*/ int iRegion, RTGCPHYS GCPhysAddress,
     5411                                          RTGCPHYS cb, PCIADDRESSSPACE enmType)
    54125412{
    54135413    RT_NOREF1(cb);
     
    54155415    PPDMDEVINS  pDevIns = pPciDev->pDevIns;
    54165416    PVGASTATE   pThis = PDMINS_2_DATA(pDevIns, PVGASTATE);
    5417     Log(("vgaR3IORegionMap: iRegion=%d GCPhysAddress=%RGp cb=%#x enmType=%d\n", iRegion, GCPhysAddress, cb, enmType));
     5417    Log(("vgaR3IORegionMap: iRegion=%d GCPhysAddress=%RGp cb=%RGp enmType=%d\n", iRegion, GCPhysAddress, cb, enmType));
    54185418#ifdef VBOX_WITH_VMSVGA
    54195419    AssertReturn(   (iRegion == ((pThis->fVMSVGAEnabled) ? 1 : 0))
     
    65506550            return rc;
    65516551        /* 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);
    65536554        if (RT_FAILURE(rc))
    65546555            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);
    65566558        if (RT_FAILURE(rc))
    65576559            return rc;
     
    65596561    else
    65606562#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    }
    65646569
    65656570    /*
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