Changeset 32915 in vbox for trunk/src/VBox/Additions/WINNT/Graphics/Miniport
- Timestamp:
- Oct 5, 2010 1:32:57 PM (14 years ago)
- Location:
- trunk/src/VBox/Additions/WINNT/Graphics/Miniport
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Graphics/Miniport/VBoxVideo.cpp
r32876 r32915 2082 2082 } 2083 2083 /* clear the IRQ */ 2084 HGSMIClearIrq ( PrimaryExtension);2084 HGSMIClearIrq (hgsmiFromDeviceExt(PrimaryExtension)); 2085 2085 return TRUE; 2086 2086 } -
trunk/src/VBox/Additions/WINNT/Graphics/Miniport/VBoxVideo.h
r32889 r32915 916 916 ); 917 917 918 void HGSMIClearIrq (P DEVICE_EXTENSION PrimaryExtension);918 void HGSMIClearIrq (PHGSMI_GUEST_INFO pInfo); 919 919 920 920 #endif /* VBOX_WITH_HGSMI */ -
trunk/src/VBox/Additions/WINNT/Graphics/Miniport/VBoxVideoHGSMI.cpp
r32877 r32915 33 33 #define MEM_TAG 'HVBV' 34 34 35 void HGSMINotifyHostCmdComplete (P DEVICE_EXTENSION PrimaryExtension, HGSMIOFFSET offt)36 { 37 VBoxHGSMIHostWrite( hgsmiFromDeviceExt(PrimaryExtension), offt);38 } 39 40 void HGSMIClearIrq (P DEVICE_EXTENSION PrimaryExtension)41 { 42 VBoxHGSMIHostWrite( hgsmiFromDeviceExt(PrimaryExtension), HGSMIOFFSET_VOID);43 } 44 45 static void HGSMIHostCmdComplete (P DEVICE_EXTENSION PrimaryExtension, void * pvMem)46 { 47 HGSMIOFFSET offMem = HGSMIPointerToOffset (& hgsmiFromDeviceExt(PrimaryExtension)->areaHostHeap, HGSMIBufferHeaderFromData (pvMem));35 void HGSMINotifyHostCmdComplete (PHGSMI_GUEST_INFO pInfo, HGSMIOFFSET offt) 36 { 37 VBoxHGSMIHostWrite(pInfo, offt); 38 } 39 40 void HGSMIClearIrq (PHGSMI_GUEST_INFO pInfo) 41 { 42 VBoxHGSMIHostWrite(pInfo, HGSMIOFFSET_VOID); 43 } 44 45 static void HGSMIHostCmdComplete (PHGSMI_GUEST_INFO pInfo, void * pvMem) 46 { 47 HGSMIOFFSET offMem = HGSMIPointerToOffset (&pInfo->areaHostHeap, HGSMIBufferHeaderFromData (pvMem)); 48 48 Assert(offMem != HGSMIOFFSET_VOID); 49 49 if(offMem != HGSMIOFFSET_VOID) 50 50 { 51 HGSMINotifyHostCmdComplete ( PrimaryExtension, offMem);51 HGSMINotifyHostCmdComplete (pInfo, offMem); 52 52 } 53 53 } … … 63 63 /* failure means the command was not submitted to the handler for some reason 64 64 * it's our responsibility to notify its completion in this case */ 65 HGSMINotifyHostCmdComplete( PrimaryExtension, offBuffer);65 HGSMINotifyHostCmdComplete(hgsmiFromDeviceExt(PrimaryExtension), offBuffer); 66 66 } 67 67 /* if the cmd succeeded it's responsibility of the callback to complete it */ … … 1353 1353 { 1354 1354 PDEVICE_EXTENSION PrimaryExtension = ((PDEVICE_EXTENSION)hHGSMI)->pPrimary; 1355 HGSMIHostCmdComplete ( PrimaryExtension, pCmd);1355 HGSMIHostCmdComplete (hgsmiFromDeviceExt(PrimaryExtension), pCmd); 1356 1356 } 1357 1357 … … 1467 1467 VBVAHOSTCMD * pNext = pCur->u.pNext; 1468 1468 pCur->u.pNext = NULL; 1469 HGSMIHostCmdComplete( pCallbacks->PrimaryExtension, pCur);1469 HGSMIHostCmdComplete(hgsmiFromDeviceExt(pCallbacks->PrimaryExtension), pCur); 1470 1470 pCur = pNext; 1471 1471 Assert(!pCur); … … 1536 1536 } 1537 1537 /* no handlers were found, need to complete the command here */ 1538 HGSMIHostCmdComplete( pCallbacks->PrimaryExtension, pvBuffer);1538 HGSMIHostCmdComplete(hgsmiFromDeviceExt(pCallbacks->PrimaryExtension), pvBuffer); 1539 1539 return VINF_SUCCESS; 1540 1540 } -
trunk/src/VBox/Additions/WINNT/Graphics/Miniport/wddm/VBoxVideoWddm.cpp
r32889 r32915 896 896 if (bOur) 897 897 { 898 HGSMIClearIrq ( pDevExt);898 HGSMIClearIrq (hgsmiFromDeviceExt(pDevExt)); 899 899 #ifdef DEBUG_misha 900 900 /* this is not entirely correct since host may concurrently complete some commands and raise a new IRQ while we are here,
Note:
See TracChangeset
for help on using the changeset viewer.