Changeset 66507 in vbox for trunk/src/VBox/Additions/WINNT/Graphics/Video/mp
- Timestamp:
- Apr 11, 2017 10:15:57 AM (8 years ago)
- svn:sync-xref-src-repo-rev:
- 114507
- 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 1825 1825 if (offCmd != HGSMIOFFSET_VOID) 1826 1826 { 1827 VB oxVideoCmnPortWriteUlong(VBoxCommonFromDeviceExt(pDevExt)->guestCtx.port, offCmd);1827 VBVO_PORT_WRITE_U32(VBoxCommonFromDeviceExt(pDevExt)->guestCtx.port, offCmd); 1828 1828 /* Make the compiler aware that the host has changed memory. */ 1829 1829 ASMCompilerBarrier(); -
trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/wddm/VBoxMPVbva.cpp
r63943 r66507 116 116 static int vboxCmdVbvaSubmitHgsmi(PHGSMIGUESTCOMMANDCONTEXT pHGSMICtx, HGSMIOFFSET offDr) 117 117 { 118 VB oxVideoCmnPortWriteUlong(pHGSMICtx->port, offDr);118 VBVO_PORT_WRITE_U32(pHGSMICtx->port, offDr); 119 119 /* Make the compiler aware that the host has changed memory. */ 120 120 ASMCompilerBarrier(); -
trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/wddm/VBoxMPVdma.cpp
r63566 r66507 1517 1517 { 1518 1518 RT_NOREF(pInfo); 1519 VB oxVideoCmnPortWriteUlong(VBoxCommonFromDeviceExt(pDevExt)->guestCtx.port, offDr);1519 VBVO_PORT_WRITE_U32(VBoxCommonFromDeviceExt(pDevExt)->guestCtx.port, offDr); 1520 1520 /* Make the compiler aware that the host has changed memory. */ 1521 1521 ASMCompilerBarrier(); -
trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/wddm/VBoxMPWddm.cpp
r65467 r66507 739 739 pHwResources->cbVRAM = VBE_DISPI_TOTAL_VIDEO_MEMORY_BYTES; 740 740 741 VB oxVideoCmnPortWriteUshort(VBE_DISPI_IOPORT_INDEX, VBE_DISPI_INDEX_ID);742 VB oxVideoCmnPortWriteUshort(VBE_DISPI_IOPORT_DATA, VBE_DISPI_ID2);743 DispiId = VB oxVideoCmnPortReadUshort(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); 744 744 if (DispiId == VBE_DISPI_ID2) 745 745 { … … 754 754 * an ULONG from the data port without setting an index before. 755 755 */ 756 pHwResources->cbVRAM = VB oxVideoCmnPortReadUlong(VBE_DISPI_IOPORT_DATA);756 pHwResources->cbVRAM = VBVO_PORT_READ_U32(VBE_DISPI_IOPORT_DATA); 757 757 if (VBoxHGSMIIsSupported ()) 758 758 { … … 1538 1538 { 1539 1539 /* read the command offset */ 1540 HGSMIOFFSET offCmd = VB oxVideoCmnPortReadUlong(VBoxCommonFromDeviceExt(pDevExt)->guestCtx.port);1540 HGSMIOFFSET offCmd = VBVO_PORT_READ_U32(VBoxCommonFromDeviceExt(pDevExt)->guestCtx.port); 1541 1541 if (offCmd == HGSMIOFFSET_VOID) 1542 1542 { … … 1674 1674 { 1675 1675 /* read the command offset */ 1676 HGSMIOFFSET offCmd = VB oxVideoCmnPortReadUlong(VBoxCommonFromDeviceExt(pDevExt)->guestCtx.port);1676 HGSMIOFFSET offCmd = VBVO_PORT_READ_U32(VBoxCommonFromDeviceExt(pDevExt)->guestCtx.port); 1677 1677 Assert(offCmd != HGSMIOFFSET_VOID); 1678 1678 if (offCmd != HGSMIOFFSET_VOID) -
trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/xpdm/VBoxMPIOCTL.cpp
r65381 r66507 292 292 for (entry=pClut->FirstEntry; entry<pClut->FirstEntry+pClut->NumEntries; ++entry) 293 293 { 294 VB oxVideoCmnPortWriteUchar(VBE_DISPI_IOPORT_DAC_WRITE_INDEX, (UCHAR)entry);295 VB oxVideoCmnPortWriteUchar(VBE_DISPI_IOPORT_DAC_DATA, pClut->LookupTable[entry].RgbArray.Red);296 VB oxVideoCmnPortWriteUchar(VBE_DISPI_IOPORT_DAC_DATA, pClut->LookupTable[entry].RgbArray.Green);297 VB oxVideoCmnPortWriteUchar(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); 298 298 } 299 299
Note:
See TracChangeset
for help on using the changeset viewer.