VirtualBox

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


Ignore:
Timestamp:
Aug 28, 2019 1:32:17 PM (5 years ago)
Author:
vboxsync
Message:

WDDM: remove unused VBOX_VDMA_WITH_WATCHDOG code. bugref:9529

Location:
trunk/src/VBox/Devices
Files:
3 edited

Legend:

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

    r80428 r80478  
    31123112                        HGSMIClearHostGuestFlags(pThis->pHGSMI,
    31133113                                                 HGSMIHOSTFLAGS_IRQ
    3114 #  ifdef VBOX_VDMA_WITH_WATCHDOG
    3115                                                  | HGSMIHOSTFLAGS_WATCHDOG
    3116 #  endif
    31173114                                                 | HGSMIHOSTFLAGS_VSYNC
    31183115                                                 | HGSMIHOSTFLAGS_HOTPLUG
  • trunk/src/VBox/Devices/Graphics/DevVGA_VDMA.cpp

    r80477 r80478  
    194194    RTCRITSECT CalloutCritSect;
    195195//    VBOXVDMA_SOURCE aSources[VBOX_VIDEO_MAX_SCREENS];
    196 #ifdef VBOX_VDMA_WITH_WATCHDOG
    197     PTMTIMERR3 WatchDogTimer;
    198 #endif
    199196} VBOXVDMAHOST, *PVBOXVDMAHOST;
    200197
     
    29402937# endif
    29412938
    2942 #ifdef VBOX_VDMA_WITH_WATCHDOG
    2943 
    2944 /**
    2945  * @callback_method_impl{TMTIMER, VDMA watchdog timer.}
    2946  */
    2947 static DECLCALLBACK(void) vboxVDMAWatchDogTimer(PPDMDEVINS pDevIns, PTMTIMER pTimer, void *pvUser)
    2948 {
    2949     VBOXVDMAHOST *pVdma = (VBOXVDMAHOST *)pvUser;
    2950     PVGASTATE pVGAState = pVdma->pVGAState;
    2951     VBVARaiseIrq(pVGAState, HGSMIHOSTFLAGS_WATCHDOG);
    2952 }
    2953 
    2954 /**
    2955  * Handles VBOXVDMA_CTL_TYPE_WATCHDOG for vboxVDMAControl.
    2956  */
    2957 static int vboxVDMAWatchDogCtl(struct VBOXVDMAHOST *pVdma, uint32_t cMillis)
    2958 {
    2959     PPDMDEVINS pDevIns = pVdma->pVGAState->pDevInsR3;
    2960     if (cMillis)
    2961         TMTimerSetMillies(pVdma->WatchDogTimer, cMillis);
    2962     else
    2963         TMTimerStop(pVdma->WatchDogTimer);
    2964     return VINF_SUCCESS;
    2965 }
    2966 
    2967 #endif /* VBOX_VDMA_WITH_WATCHDOG */
    2968 
    29692939/**
    29702940 * Called by vgaR3Construct() to initialize the state.
     
    29832953        pVdma->pVGAState = pVGAState;
    29842954
    2985 #ifdef VBOX_VDMA_WITH_WATCHDOG
    2986         rc = PDMDevHlpTMTimerCreate(pVGAState->pDevInsR3, TMCLOCK_REAL, vboxVDMAWatchDogTimer,
    2987                                     pVdma, TMTIMER_FLAGS_NO_CRIT_SECT,
    2988                                     "VDMA WatchDog Timer", &pVdma->WatchDogTimer);
    2989         AssertRC(rc);
    2990 #else
    29912955        rc = VINF_SUCCESS;
    2992 #endif
    29932956        if (RT_SUCCESS(rc))
    29942957        {
     
    30973060                break;
    30983061            case VBOXVDMA_CTL_TYPE_WATCHDOG:
    3099 #ifdef VBOX_VDMA_WITH_WATCHDOG
    3100                 rc = vboxVDMAWatchDogCtl(pVdma, pCmd->u32Offset);
    3101 #else
    31023062                rc = VERR_NOT_SUPPORTED;
    3103 #endif
    31043063                break;
    31053064            default:
  • trunk/src/VBox/Devices/Makefile.kmk

    r80396 r80478  
    348348 endif
    349349
    350  ifdef VBOX_VDMA_WITH_WATCHDOG
    351   VBoxDD_DEFS           += VBOX_VDMA_WITH_WATCHDOG
    352  endif
    353 
    354350 ifdef VBOX_WITH_PXE_ROM
    355351  VBoxDD_DEFS           += VBOX_WITH_PXE_ROM
     
    981977  ifdef VBOX_WITH_VMSVGA3D
    982978   VBoxDDRC_DEFS         += VBOX_WITH_VMSVGA3D
    983   endif
    984   ifdef VBOX_VDMA_WITH_WATCHDOG
    985    VBoxDDRC_DEFS        += VBOX_VDMA_WITH_WATCHDOG
    986979  endif
    987980
     
    11161109        $(if $(VBOX_WITH_VDMA),VBOX_WITH_VDMA,) \
    11171110        $(if $(VBOXWDDM_WITH_VBVA),VBOXWDDM_WITH_VBVA,) \
    1118         $(if $(VBOX_VDMA_WITH_WATCHDOG),VBOX_VDMA_WITH_WATCHDOG,) \
    11191111        $(if $(VBOX_WITH_HP_HDA),VBOX_WITH_HP_HDA,) \
    11201112        $(if $(VBOX_WITH_INTEL_HDA),VBOX_WITH_INTEL_HDA,) \
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