diff options
author | vboxsync <vboxsync@cfe28804-0f27-0410-a406-dd0f0b0b656f> | 2019-08-28 13:32:17 +0000 |
---|---|---|
committer | vboxsync <vboxsync@cfe28804-0f27-0410-a406-dd0f0b0b656f> | 2019-08-28 13:32:17 +0000 |
commit | 971263bbfc0191d32a26dfbd8de672b8f89d4ac1 (patch) | |
tree | 2e2761b2024fadcf358518e1963dda86b7ac352e /src/VBox/Devices/Graphics/DevVGA_VDMA.cpp | |
parent | aaf954f1b3184171b81f270236660a1cc7b173e1 (diff) | |
download | VirtualBox-svn-971263bbfc0191d32a26dfbd8de672b8f89d4ac1.tar.gz |
WDDM: remove unused VBOX_VDMA_WITH_WATCHDOG code. bugref:9529
git-svn-id: https://www.virtualbox.org/svn/vbox/trunk@80478 cfe28804-0f27-0410-a406-dd0f0b0b656f
Diffstat (limited to 'src/VBox/Devices/Graphics/DevVGA_VDMA.cpp')
-rw-r--r-- | src/VBox/Devices/Graphics/DevVGA_VDMA.cpp | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/src/VBox/Devices/Graphics/DevVGA_VDMA.cpp b/src/VBox/Devices/Graphics/DevVGA_VDMA.cpp index a343aebb872..11ff0d6287c 100644 --- a/src/VBox/Devices/Graphics/DevVGA_VDMA.cpp +++ b/src/VBox/Devices/Graphics/DevVGA_VDMA.cpp @@ -193,9 +193,6 @@ typedef struct VBOXVDMAHOST int32_t volatile i32cHostCrCtlCompleted; RTCRITSECT CalloutCritSect; // VBOXVDMA_SOURCE aSources[VBOX_VIDEO_MAX_SCREENS]; -#ifdef VBOX_VDMA_WITH_WATCHDOG - PTMTIMERR3 WatchDogTimer; -#endif } VBOXVDMAHOST, *PVBOXVDMAHOST; @@ -2939,33 +2936,6 @@ static void vboxVDMAControlProcess(PVBOXVDMAHOST pVdma, PVBOXVDMA_CTL pCmd) } # endif -#ifdef VBOX_VDMA_WITH_WATCHDOG - -/** - * @callback_method_impl{TMTIMER, VDMA watchdog timer.} - */ -static DECLCALLBACK(void) vboxVDMAWatchDogTimer(PPDMDEVINS pDevIns, PTMTIMER pTimer, void *pvUser) -{ - VBOXVDMAHOST *pVdma = (VBOXVDMAHOST *)pvUser; - PVGASTATE pVGAState = pVdma->pVGAState; - VBVARaiseIrq(pVGAState, HGSMIHOSTFLAGS_WATCHDOG); -} - -/** - * Handles VBOXVDMA_CTL_TYPE_WATCHDOG for vboxVDMAControl. - */ -static int vboxVDMAWatchDogCtl(struct VBOXVDMAHOST *pVdma, uint32_t cMillis) -{ - PPDMDEVINS pDevIns = pVdma->pVGAState->pDevInsR3; - if (cMillis) - TMTimerSetMillies(pVdma->WatchDogTimer, cMillis); - else - TMTimerStop(pVdma->WatchDogTimer); - return VINF_SUCCESS; -} - -#endif /* VBOX_VDMA_WITH_WATCHDOG */ - /** * Called by vgaR3Construct() to initialize the state. * @@ -2982,14 +2952,7 @@ int vboxVDMAConstruct(PVGASTATE pVGAState, uint32_t cPipeElements) pVdma->pHgsmi = pVGAState->pHGSMI; pVdma->pVGAState = pVGAState; -#ifdef VBOX_VDMA_WITH_WATCHDOG - rc = PDMDevHlpTMTimerCreate(pVGAState->pDevInsR3, TMCLOCK_REAL, vboxVDMAWatchDogTimer, - pVdma, TMTIMER_FLAGS_NO_CRIT_SECT, - "VDMA WatchDog Timer", &pVdma->WatchDogTimer); - AssertRC(rc); -#else rc = VINF_SUCCESS; -#endif if (RT_SUCCESS(rc)) { VBoxVDMAThreadInit(&pVdma->Thread); @@ -3096,11 +3059,7 @@ void vboxVDMAControl(struct VBOXVDMAHOST *pVdma, VBOXVDMA_CTL RT_UNTRUSTED_VOLAT rc = VINF_SUCCESS; break; case VBOXVDMA_CTL_TYPE_WATCHDOG: -#ifdef VBOX_VDMA_WITH_WATCHDOG - rc = vboxVDMAWatchDogCtl(pVdma, pCmd->u32Offset); -#else rc = VERR_NOT_SUPPORTED; -#endif break; default: AssertFailedBreakStmt(rc = VERR_IPE_NOT_REACHED_DEFAULT_CASE); |