Changeset 22136 in vbox for trunk/src/VBox/Additions/WINNT/Graphics/Display
- Timestamp:
- Aug 10, 2009 2:05:23 PM (15 years ago)
- Location:
- trunk/src/VBox/Additions/WINNT/Graphics/Display
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Graphics/Display/dd.c
r22099 r22136 1585 1585 ASMAtomicIncU32(&pCurrDesc->cPendingFlipsCurr); 1586 1586 ASMAtomicIncU32(&pTargDesc->cPendingFlipsTarg); 1587 #ifdef DEBUG 1588 ASMAtomicIncU32(&pCurrDesc->cFlipsCurr); 1589 ASMAtomicIncU32(&pTargDesc->cFlipsTarg); 1590 #endif 1587 1591 1588 1592 if(pTargDesc->UpdatedMemRegion.bValid) -
trunk/src/VBox/Additions/WINNT/Graphics/Display/driver.h
r22028 r22136 108 108 volatile uint32_t cPendingFlipsCurr; 109 109 volatile uint32_t cPendingFlipsTarg; 110 #ifdef DEBUG 111 volatile uint64_t cFlipsCurr; 112 volatile uint64_t cFlipsTarg; 113 #endif 110 114 // uint32_t cBitsPerPixel; 111 115 bool bHidden; … … 200 204 201 205 HVBOXVIDEOHGSMI hMpHGSMI; /* context handler passed to miniport HGSMI callbacks */ 206 PFNVBOXVIDEOHGSMIPOSTCOMMAND pfnHGSMIGHCommandPost; /* called to post the guest command (offset) to the host */ 202 207 PFNVBOXVIDEOHGSMICOMPLETION pfnHGSMICommandComplete; /* called to complete the command we receive from the miniport */ 203 208 PFNVBOXVIDEOHGSMICOMMANDS pfnHGSMIRequestCommands; /* called to requests the commands posted to us from the host */ … … 225 230 226 231 #ifdef VBOX_WITH_HGSMI 227 #define VBE_DISPI_IOPORT_INDEX 0x01CE228 #define VBE_DISPI_IOPORT_DATA 0x01CF229 #define VBE_DISPI_INDEX_VBVA_GUEST 0xc232 //#define VBE_DISPI_IOPORT_INDEX 0x01CE 233 //#define VBE_DISPI_IOPORT_DATA 0x01CF 234 //#define VBE_DISPI_INDEX_VBVA_GUEST 0xc 230 235 #endif /* VBOX_WITH_HGSMI */ 231 236 -
trunk/src/VBox/Additions/WINNT/Graphics/Display/screen.c
r20961 r22136 123 123 124 124 ppdev->hMpHGSMI = Callbacks.hContext; 125 ppdev->pfnHGSMIGHCommandPost = Callbacks.pfnHGSMIGHCommandPost; 125 126 ppdev->pfnHGSMICommandComplete = Callbacks.pfnCompletionHandler; 126 127 ppdev->pfnHGSMIRequestCommands = Callbacks.pfnRequestCommandsHandler; -
trunk/src/VBox/Additions/WINNT/Graphics/Display/vbox.c
r21939 r22136 345 345 HGSMIOFFSET offBuffer = HGSMIHeapBufferOffset (&ppdev->hgsmiDisplayHeap, p); 346 346 347 ASMOutU16 (VBE_DISPI_IOPORT_INDEX, VBE_DISPI_INDEX_VBVA_GUEST); 348 ASMOutU32 (VBE_DISPI_IOPORT_DATA, offBuffer); 347 ppdev->pfnHGSMIGHCommandPost(ppdev->hMpHGSMI, offBuffer); 348 // ASMOutU16 (VBE_DISPI_IOPORT_INDEX, VBE_DISPI_INDEX_VBVA_GUEST); 349 // ASMOutU32 (VBE_DISPI_IOPORT_DATA, offBuffer); 349 350 } 350 351 … … 757 758 default: 758 759 { 760 Assert(0); 759 761 vboxVBVAHostCommandComplete(ppdev, pCmd); 760 762 } … … 764 766 void vboxVHWACommandCheckHostCmds(PPDEV ppdev) 765 767 { 766 VBVAHOSTCMD * pCmd ;768 VBVAHOSTCMD * pCmd, * pNextCmd; 767 769 int rc = ppdev->pfnHGSMIRequestCommands(ppdev->hMpHGSMI, HGSMI_CH_VBVA, &pCmd); 770 Assert(RT_SUCCESS(rc)); 768 771 if(RT_SUCCESS(rc)) 769 772 { 770 for(; pCmd; pCmd = pCmd->u.pNext) 771 { 773 for(;pCmd; pCmd = pNextCmd) 774 { 775 pNextCmd = pCmd->u.pNext; 772 776 vboxVBVAHostCommandHanlder(ppdev, pCmd); 773 777 } … … 784 788 pCmd->Flags |= VBOXVHWACMD_FLAG_GH_ASYNCH_EVENT; 785 789 vboxHGSMIBufferSubmit (ppdev, pCmd); 786 790 //TODO: dbg 791 #if 0 787 792 if(!(ASMAtomicReadU32((volatile uint32_t *)&pCmd->Flags) & VBOXVHWACMD_FLAG_HG_ASYNCH)) 788 793 { … … 790 795 EngSetEvent(pEvent); 791 796 } 797 #endif 792 798 } 793 799 … … 823 829 824 830 vboxHGSMIBufferSubmit (ppdev, pCmd); 825 831 //TODO: dbg 832 #if 0 826 833 if(!(pCmd->Flags & VBOXVHWACMD_FLAG_HG_ASYNCH)) 827 834 { … … 829 836 pfnCompletion(ppdev, pCmd, pContext); 830 837 } 838 #endif 831 839 } 832 840 … … 844 852 845 853 vboxHGSMIBufferSubmit (ppdev, pCmd); 846 854 //TODO: dbg 855 #if 0 847 856 if(!(pCmd->Flags & VBOXVHWACMD_FLAG_HG_ASYNCH) 848 857 || pCmd->Flags & VBOXVHWACMD_FLAG_HG_ASYNCH_RETURNED) … … 851 860 vboxVHWAFreeCmdCompletion(ppdev, pCmd, NULL); 852 861 } 862 #endif 853 863 } 854 864
Note:
See TracChangeset
for help on using the changeset viewer.