VirtualBox

Ignore:
Timestamp:
Apr 11, 2017 10:15:57 AM (8 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
114507
Message:

bugref:8524: Additions/linux: play nicely with distribution-installed Additions
Rename VBoxVideoCmnPort* macros to VBVO_PORT_* to fit in with our naming conventions and improve aesthetics.

Location:
trunk/src/VBox/Additions/WINNT/Graphics/Video/mp
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/wddm/VBoxMPMisc.cpp

    r65381 r66507  
    18251825                if (offCmd != HGSMIOFFSET_VOID)
    18261826                {
    1827                     VBoxVideoCmnPortWriteUlong(VBoxCommonFromDeviceExt(pDevExt)->guestCtx.port, offCmd);
     1827                    VBVO_PORT_WRITE_U32(VBoxCommonFromDeviceExt(pDevExt)->guestCtx.port, offCmd);
    18281828                    /* Make the compiler aware that the host has changed memory. */
    18291829                    ASMCompilerBarrier();
  • trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/wddm/VBoxMPVbva.cpp

    r63943 r66507  
    116116static int vboxCmdVbvaSubmitHgsmi(PHGSMIGUESTCOMMANDCONTEXT pHGSMICtx, HGSMIOFFSET offDr)
    117117{
    118     VBoxVideoCmnPortWriteUlong(pHGSMICtx->port, offDr);
     118    VBVO_PORT_WRITE_U32(pHGSMICtx->port, offDr);
    119119    /* Make the compiler aware that the host has changed memory. */
    120120    ASMCompilerBarrier();
  • trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/wddm/VBoxMPVdma.cpp

    r63566 r66507  
    15171517{
    15181518    RT_NOREF(pInfo);
    1519     VBoxVideoCmnPortWriteUlong(VBoxCommonFromDeviceExt(pDevExt)->guestCtx.port, offDr);
     1519    VBVO_PORT_WRITE_U32(VBoxCommonFromDeviceExt(pDevExt)->guestCtx.port, offDr);
    15201520    /* Make the compiler aware that the host has changed memory. */
    15211521    ASMCompilerBarrier();
  • trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/wddm/VBoxMPWddm.cpp

    r65467 r66507  
    739739    pHwResources->cbVRAM = VBE_DISPI_TOTAL_VIDEO_MEMORY_BYTES;
    740740
    741     VBoxVideoCmnPortWriteUshort(VBE_DISPI_IOPORT_INDEX, VBE_DISPI_INDEX_ID);
    742     VBoxVideoCmnPortWriteUshort(VBE_DISPI_IOPORT_DATA, VBE_DISPI_ID2);
    743     DispiId = VBoxVideoCmnPortReadUshort(VBE_DISPI_IOPORT_DATA);
     741    VBVO_PORT_WRITE_U16(VBE_DISPI_IOPORT_INDEX, VBE_DISPI_INDEX_ID);
     742    VBVO_PORT_WRITE_U16(VBE_DISPI_IOPORT_DATA, VBE_DISPI_ID2);
     743    DispiId = VBVO_PORT_READ_U16(VBE_DISPI_IOPORT_DATA);
    744744    if (DispiId == VBE_DISPI_ID2)
    745745    {
     
    754754        * an ULONG from the data port without setting an index before.
    755755        */
    756        pHwResources->cbVRAM = VBoxVideoCmnPortReadUlong(VBE_DISPI_IOPORT_DATA);
     756       pHwResources->cbVRAM = VBVO_PORT_READ_U32(VBE_DISPI_IOPORT_DATA);
    757757       if (VBoxHGSMIIsSupported ())
    758758       {
     
    15381538        {
    15391539            /* read the command offset */
    1540             HGSMIOFFSET offCmd = VBoxVideoCmnPortReadUlong(VBoxCommonFromDeviceExt(pDevExt)->guestCtx.port);
     1540            HGSMIOFFSET offCmd = VBVO_PORT_READ_U32(VBoxCommonFromDeviceExt(pDevExt)->guestCtx.port);
    15411541            if (offCmd == HGSMIOFFSET_VOID)
    15421542            {
     
    16741674            {
    16751675                /* read the command offset */
    1676                 HGSMIOFFSET offCmd = VBoxVideoCmnPortReadUlong(VBoxCommonFromDeviceExt(pDevExt)->guestCtx.port);
     1676                HGSMIOFFSET offCmd = VBVO_PORT_READ_U32(VBoxCommonFromDeviceExt(pDevExt)->guestCtx.port);
    16771677                Assert(offCmd != HGSMIOFFSET_VOID);
    16781678                if (offCmd != HGSMIOFFSET_VOID)
  • trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/xpdm/VBoxMPIOCTL.cpp

    r65381 r66507  
    292292    for (entry=pClut->FirstEntry; entry<pClut->FirstEntry+pClut->NumEntries; ++entry)
    293293    {
    294       VBoxVideoCmnPortWriteUchar(VBE_DISPI_IOPORT_DAC_WRITE_INDEX, (UCHAR)entry);
    295       VBoxVideoCmnPortWriteUchar(VBE_DISPI_IOPORT_DAC_DATA, pClut->LookupTable[entry].RgbArray.Red);
    296       VBoxVideoCmnPortWriteUchar(VBE_DISPI_IOPORT_DAC_DATA, pClut->LookupTable[entry].RgbArray.Green);
    297       VBoxVideoCmnPortWriteUchar(VBE_DISPI_IOPORT_DAC_DATA, pClut->LookupTable[entry].RgbArray.Blue);
     294      VBVO_PORT_WRITE_U8(VBE_DISPI_IOPORT_DAC_WRITE_INDEX, (UCHAR)entry);
     295      VBVO_PORT_WRITE_U8(VBE_DISPI_IOPORT_DAC_DATA, pClut->LookupTable[entry].RgbArray.Red);
     296      VBVO_PORT_WRITE_U8(VBE_DISPI_IOPORT_DAC_DATA, pClut->LookupTable[entry].RgbArray.Green);
     297      VBVO_PORT_WRITE_U8(VBE_DISPI_IOPORT_DAC_DATA, pClut->LookupTable[entry].RgbArray.Blue);
    298298    }
    299299
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette