VirtualBox

Changeset 82060 in vbox for trunk/src/VBox/Devices


Ignore:
Timestamp:
Nov 20, 2019 10:06:28 PM (5 years ago)
Author:
vboxsync
Message:

DevVGA: TMTimer -> PDMDevHlpTimer. bugref:9218

Location:
trunk/src/VBox/Devices/Graphics
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Graphics/DevVGA.cpp

    r82059 r82060  
    48394839static DECLCALLBACK(int) vgaPortSetRefreshRate(PPDMIDISPLAYPORT pInterface, uint32_t cMilliesInterval)
    48404840{
    4841     PVGASTATE pThis = IDISPLAYPORT_2_VGASTATE(pInterface);
     4841    PVGASTATE  pThis   = IDISPLAYPORT_2_VGASTATE(pInterface);
     4842    PPDMDEVINS pDevIns = pThis->pDevInsR3;
    48424843
    48434844    /*
     
    48534854
    48544855    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);
    48574858}
    48584859
     
    54305431}
    54315432
     5433/**
     5434 * @callback_method_impl{FNTMTIMERFNTMTIMERDEV, VGA Refresh Timer}
     5435 */
    54325436static DECLCALLBACK(void) vgaTimerRefresh(PPDMDEVINS pDevIns, PTMTIMER pTimer, void *pvUser)
    54335437{
    54345438    PVGASTATE pThis = (PVGASTATE)pvUser;
    5435     NOREF(pDevIns);
     5439    RT_NOREF(pTimer);
    54365440
    54375441    if (pThis->fScanLineCfg & VBVASCANLINECFG_ENABLE_VSYNC_IRQ)
    5438     {
    54395442        VBVARaiseIrq(pThis, HGSMIHOSTFLAGS_VSYNC);
    5440     }
    54415443
    54425444    if (pThis->pDrv)
     
    54445446
    54455447    if (pThis->cMilliesRefreshInterval)
    5446         TMTimerSetMillies(pTimer, pThis->cMilliesRefreshInterval);
     5448        PDMDevHlpTimerSetMillies(pDevIns, pThis->hRefreshTimer, pThis->cMilliesRefreshInterval);
    54475449
    54485450#ifdef VBOX_WITH_VIDEOHWACCEL
     
    57645766
    57655767/**
    5766  * @copydoc FNSSMDEVLOADEXEC
     5768 * @callback_method_impl{FNSSMDEVLOADEXEC}
    57675769 */
    57685770static DECLCALLBACK(int) vgaR3LoadExec(PPDMDEVINS pDevIns, PSSMHANDLE pSSM, uint32_t uVersion, uint32_t uPass)
     
    58545856
    58555857/**
    5856  * @copydoc FNSSMDEVLOADDONE
     5858 * @@callback_method_impl{FNSSMDEVLOADDONE}
    58575859 */
    58585860static DECLCALLBACK(int) vgaR3LoadDone(PPDMDEVINS pDevIns, PSSMHANDLE pSSM)
     
    68196821     * Create the refresh timer.
    68206822     */
    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);
    68246825    if (RT_FAILURE(rc))
    68256826        return rc;
  • trunk/src/VBox/Devices/Graphics/DevVGA.h

    r82048 r82060  
    316316
    317317    /** Refresh timer handle - HC. */
    318     PTMTIMERR3                  RefreshTimer;
     318    TMTIMERHANDLE               hRefreshTimer;
    319319
    320320    /** Pointer to the device instance - R0 Ptr. */
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette