Changeset 82060 in vbox for trunk/src/VBox/Devices
- Timestamp:
- Nov 20, 2019 10:06:28 PM (5 years ago)
- Location:
- trunk/src/VBox/Devices/Graphics
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Graphics/DevVGA.cpp
r82059 r82060 4839 4839 static DECLCALLBACK(int) vgaPortSetRefreshRate(PPDMIDISPLAYPORT pInterface, uint32_t cMilliesInterval) 4840 4840 { 4841 PVGASTATE pThis = IDISPLAYPORT_2_VGASTATE(pInterface); 4841 PVGASTATE pThis = IDISPLAYPORT_2_VGASTATE(pInterface); 4842 PPDMDEVINS pDevIns = pThis->pDevInsR3; 4842 4843 4843 4844 /* … … 4853 4854 4854 4855 if (cMilliesInterval) 4855 return TMTimerSetMillies(pThis->RefreshTimer, cMilliesInterval);4856 return TMTimerStop(pThis->RefreshTimer);4856 return PDMDevHlpTimerSetMillies(pDevIns, pThis->hRefreshTimer, cMilliesInterval); 4857 return PDMDevHlpTimerStop(pDevIns, pThis->hRefreshTimer); 4857 4858 } 4858 4859 … … 5430 5431 } 5431 5432 5433 /** 5434 * @callback_method_impl{FNTMTIMERFNTMTIMERDEV, VGA Refresh Timer} 5435 */ 5432 5436 static DECLCALLBACK(void) vgaTimerRefresh(PPDMDEVINS pDevIns, PTMTIMER pTimer, void *pvUser) 5433 5437 { 5434 5438 PVGASTATE pThis = (PVGASTATE)pvUser; 5435 NOREF(pDevIns);5439 RT_NOREF(pTimer); 5436 5440 5437 5441 if (pThis->fScanLineCfg & VBVASCANLINECFG_ENABLE_VSYNC_IRQ) 5438 {5439 5442 VBVARaiseIrq(pThis, HGSMIHOSTFLAGS_VSYNC); 5440 }5441 5443 5442 5444 if (pThis->pDrv) … … 5444 5446 5445 5447 if (pThis->cMilliesRefreshInterval) 5446 TMTimerSetMillies(pTimer, pThis->cMilliesRefreshInterval);5448 PDMDevHlpTimerSetMillies(pDevIns, pThis->hRefreshTimer, pThis->cMilliesRefreshInterval); 5447 5449 5448 5450 #ifdef VBOX_WITH_VIDEOHWACCEL … … 5764 5766 5765 5767 /** 5766 * @c opydoc FNSSMDEVLOADEXEC5768 * @callback_method_impl{FNSSMDEVLOADEXEC} 5767 5769 */ 5768 5770 static DECLCALLBACK(int) vgaR3LoadExec(PPDMDEVINS pDevIns, PSSMHANDLE pSSM, uint32_t uVersion, uint32_t uPass) … … 5854 5856 5855 5857 /** 5856 * @ copydoc FNSSMDEVLOADDONE5858 * @@callback_method_impl{FNSSMDEVLOADDONE} 5857 5859 */ 5858 5860 static DECLCALLBACK(int) vgaR3LoadDone(PPDMDEVINS pDevIns, PSSMHANDLE pSSM) … … 6819 6821 * Create the refresh timer. 6820 6822 */ 6821 rc = PDMDevHlpTMTimerCreate(pDevIns, TMCLOCK_REAL, vgaTimerRefresh, 6822 pThis, TMTIMER_FLAGS_NO_CRIT_SECT, 6823 "VGA Refresh Timer", &pThis->RefreshTimer); 6823 rc = PDMDevHlpTimerCreate(pDevIns, TMCLOCK_REAL, vgaTimerRefresh, pThis, TMTIMER_FLAGS_NO_CRIT_SECT, 6824 "VGA Refresh Timer", &pThis->hRefreshTimer); 6824 6825 if (RT_FAILURE(rc)) 6825 6826 return rc; -
trunk/src/VBox/Devices/Graphics/DevVGA.h
r82048 r82060 316 316 317 317 /** Refresh timer handle - HC. */ 318 PTMTIMERR3RefreshTimer;318 TMTIMERHANDLE hRefreshTimer; 319 319 320 320 /** Pointer to the device instance - R0 Ptr. */
Note:
See TracChangeset
for help on using the changeset viewer.