- Timestamp:
- Nov 25, 2009 8:34:23 AM (15 years ago)
- Location:
- trunk/src/VBox/Devices/Graphics
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Graphics/DevVGA.h
r24714 r24926 463 463 int VBVAUpdateDisplay (PVGASTATE pVGAState); 464 464 void VBVAReset (PVGASTATE pVGAState); 465 void HGSMIReset (PHGSMIINSTANCE pIns); 465 /* @return host-guest flags that were set on reset 466 * this allows the caller to make further cleaning when needed, 467 * e.g. reset the IRQ */ 468 uint32_t HGSMIReset (PHGSMIINSTANCE pIns); 466 469 467 470 # ifdef VBOX_WITH_VIDEOHWACCEL -
trunk/src/VBox/Devices/Graphics/DevVGA_VBVA.cpp
r24925 r24926 1558 1558 #endif 1559 1559 1560 HGSMIReset (pVGAState->pHGSMI); 1560 uint32_t HgFlags = HGSMIReset (pVGAState->pHGSMI); 1561 if(HgFlags & HGSMIHOSTFLAGS_IRQ) 1562 { 1563 /* this means the IRQ is LEVEL_HIGH, need to reset it */ 1564 PDMDevHlpPCISetIrq(pVGAState->pDevInsR3, 0, PDM_IRQ_LEVEL_LOW); 1565 } 1561 1566 1562 1567 if (pCtx) -
trunk/src/VBox/Devices/Graphics/HGSMI/HGSMIHost.cpp
r24678 r24926 1538 1538 } 1539 1539 1540 void HGSMIReset (PHGSMIINSTANCE pIns) 1541 { 1540 uint32_t HGSMIReset (PHGSMIINSTANCE pIns) 1541 { 1542 uint32_t flags = 0; 1542 1543 if(pIns->pHGFlags) 1543 1544 { 1544 1545 /* treat the abandoned commands as read.. */ 1545 1546 while(HGSMIHostRead (pIns) != HGSMIOFFSET_VOID) {} 1547 flags = pIns->pHGFlags->u32HostFlags; 1548 pIns->pHGFlags->u32HostFlags = 0; 1546 1549 } 1547 1550 … … 1550 1553 1551 1554 HGSMIHeapSetupUnitialized (&pIns->hostHeap); 1555 1556 return flags; 1552 1557 } 1553 1558
Note:
See TracChangeset
for help on using the changeset viewer.