Changeset 80478 in vbox for trunk/src/VBox/Devices
- Timestamp:
- Aug 28, 2019 1:32:17 PM (5 years ago)
- Location:
- trunk/src/VBox/Devices
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Graphics/DevVGA.cpp
r80428 r80478 3112 3112 HGSMIClearHostGuestFlags(pThis->pHGSMI, 3113 3113 HGSMIHOSTFLAGS_IRQ 3114 # ifdef VBOX_VDMA_WITH_WATCHDOG3115 | HGSMIHOSTFLAGS_WATCHDOG3116 # endif3117 3114 | HGSMIHOSTFLAGS_VSYNC 3118 3115 | HGSMIHOSTFLAGS_HOTPLUG -
trunk/src/VBox/Devices/Graphics/DevVGA_VDMA.cpp
r80477 r80478 194 194 RTCRITSECT CalloutCritSect; 195 195 // VBOXVDMA_SOURCE aSources[VBOX_VIDEO_MAX_SCREENS]; 196 #ifdef VBOX_VDMA_WITH_WATCHDOG197 PTMTIMERR3 WatchDogTimer;198 #endif199 196 } VBOXVDMAHOST, *PVBOXVDMAHOST; 200 197 … … 2940 2937 # endif 2941 2938 2942 #ifdef VBOX_VDMA_WITH_WATCHDOG2943 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 else2963 TMTimerStop(pVdma->WatchDogTimer);2964 return VINF_SUCCESS;2965 }2966 2967 #endif /* VBOX_VDMA_WITH_WATCHDOG */2968 2969 2939 /** 2970 2940 * Called by vgaR3Construct() to initialize the state. … … 2983 2953 pVdma->pVGAState = pVGAState; 2984 2954 2985 #ifdef VBOX_VDMA_WITH_WATCHDOG2986 rc = PDMDevHlpTMTimerCreate(pVGAState->pDevInsR3, TMCLOCK_REAL, vboxVDMAWatchDogTimer,2987 pVdma, TMTIMER_FLAGS_NO_CRIT_SECT,2988 "VDMA WatchDog Timer", &pVdma->WatchDogTimer);2989 AssertRC(rc);2990 #else2991 2955 rc = VINF_SUCCESS; 2992 #endif2993 2956 if (RT_SUCCESS(rc)) 2994 2957 { … … 3097 3060 break; 3098 3061 case VBOXVDMA_CTL_TYPE_WATCHDOG: 3099 #ifdef VBOX_VDMA_WITH_WATCHDOG3100 rc = vboxVDMAWatchDogCtl(pVdma, pCmd->u32Offset);3101 #else3102 3062 rc = VERR_NOT_SUPPORTED; 3103 #endif3104 3063 break; 3105 3064 default: -
trunk/src/VBox/Devices/Makefile.kmk
r80396 r80478 348 348 endif 349 349 350 ifdef VBOX_VDMA_WITH_WATCHDOG351 VBoxDD_DEFS += VBOX_VDMA_WITH_WATCHDOG352 endif353 354 350 ifdef VBOX_WITH_PXE_ROM 355 351 VBoxDD_DEFS += VBOX_WITH_PXE_ROM … … 981 977 ifdef VBOX_WITH_VMSVGA3D 982 978 VBoxDDRC_DEFS += VBOX_WITH_VMSVGA3D 983 endif984 ifdef VBOX_VDMA_WITH_WATCHDOG985 VBoxDDRC_DEFS += VBOX_VDMA_WITH_WATCHDOG986 979 endif 987 980 … … 1116 1109 $(if $(VBOX_WITH_VDMA),VBOX_WITH_VDMA,) \ 1117 1110 $(if $(VBOXWDDM_WITH_VBVA),VBOXWDDM_WITH_VBVA,) \ 1118 $(if $(VBOX_VDMA_WITH_WATCHDOG),VBOX_VDMA_WITH_WATCHDOG,) \1119 1111 $(if $(VBOX_WITH_HP_HDA),VBOX_WITH_HP_HDA,) \ 1120 1112 $(if $(VBOX_WITH_INTEL_HDA),VBOX_WITH_INTEL_HDA,) \
Note:
See TracChangeset
for help on using the changeset viewer.