ReactOS 0.4.15-dev-7089-gea8a49d
timer.c File Reference
#include "videoprt.h"
#include <debug.h>
Include dependency graph for timer.c:

Go to the source code of this file.

Macros

#define NDEBUG
 

Functions

VOID NTAPI IntVideoPortTimerRoutine (IN PDEVICE_OBJECT DeviceObject, IN PVOID ServiceContext)
 
BOOLEAN NTAPI IntVideoPortSetupTimer (IN PDEVICE_OBJECT DeviceObject, IN PVIDEO_PORT_DRIVER_EXTENSION DriverExtension)
 
VOID NTAPI VideoPortStartTimer (IN PVOID HwDeviceExtension)
 
VOID NTAPI VideoPortStopTimer (IN PVOID HwDeviceExtension)
 

Macro Definition Documentation

◆ NDEBUG

#define NDEBUG

Definition at line 24 of file timer.c.

Function Documentation

◆ IntVideoPortSetupTimer()

BOOLEAN NTAPI IntVideoPortSetupTimer ( IN PDEVICE_OBJECT  DeviceObject,
IN PVIDEO_PORT_DRIVER_EXTENSION  DriverExtension 
)

Definition at line 43 of file timer.c.

46{
48 PVIDEO_PORT_DEVICE_EXTENSION DeviceExtension;
49
50 DeviceExtension = (PVIDEO_PORT_DEVICE_EXTENSION)DeviceObject->DeviceExtension;
51
52 if (DriverExtension->InitializationData.HwTimer != NULL)
53 {
54 INFO_(VIDEOPRT, "Initializing timer\n");
55
59 DeviceExtension);
60
61 if (!NT_SUCCESS(Status))
62 {
63 ERR_(VIDEOPRT, "IoInitializeTimer failed with status 0x%08x\n", Status);
64 return FALSE;
65 }
66 }
67
68 return TRUE;
69}
LONG NTSTATUS
Definition: precomp.h:26
#define NULL
Definition: types.h:112
#define TRUE
Definition: types.h:120
#define FALSE
Definition: types.h:117
#define NT_SUCCESS(StatCode)
Definition: apphelp.c:32
Status
Definition: gdiplustypes.h:25
NTSTATUS NTAPI IoInitializeTimer(IN PDEVICE_OBJECT DeviceObject, IN PIO_TIMER_ROUTINE TimerRoutine, IN PVOID Context)
Definition: iotimer.c:92
if(dx< 0)
Definition: linetemp.h:194
PPCI_DRIVER_EXTENSION DriverExtension
Definition: pci.c:31
#define INFO_(ch,...)
Definition: debug.h:159
#define ERR_(ch,...)
Definition: debug.h:156
struct _VIDEO_PORT_DEVICE_EXTENSTION * PVIDEO_PORT_DEVICE_EXTENSION
_In_ PDEVICE_OBJECT DeviceObject
Definition: wdfdevice.h:2055
VOID NTAPI IntVideoPortTimerRoutine(IN PDEVICE_OBJECT DeviceObject, IN PVOID ServiceContext)
Definition: timer.c:30

Referenced by IntVideoPortFindAdapter().

◆ IntVideoPortTimerRoutine()

VOID NTAPI IntVideoPortTimerRoutine ( IN PDEVICE_OBJECT  DeviceObject,
IN PVOID  ServiceContext 
)

Definition at line 30 of file timer.c.

33{
35
37
39 &DeviceExtension->MiniPortDeviceExtension);
40}
#define ASSERT(a)
Definition: mode.c:44
PVIDEO_HW_TIMER HwTimer
Definition: video.h:681
VIDEO_PORT_DRIVER_EXTENSION * DriverExtension
Definition: videoprt.h:103
CHAR POINTER_ALIGNMENT MiniPortDeviceExtension[1]
Definition: videoprt.h:113
VIDEO_HW_INITIALIZATION_DATA InitializationData
Definition: videoprt.h:72
_In_ PKSERVICE_ROUTINE _In_opt_ PVOID ServiceContext
Definition: iofuncs.h:801

Referenced by IntVideoPortSetupTimer().

◆ VideoPortStartTimer()

VOID NTAPI VideoPortStartTimer ( IN PVOID  HwDeviceExtension)

Definition at line 78 of file timer.c.

79{
80 TRACE_(VIDEOPRT, "VideoPortStartTimer\n");
82}
#define TRACE_(x)
Definition: compat.h:76
VOID NTAPI IoStartTimer(IN PDEVICE_OBJECT DeviceObject)
Definition: iotimer.c:133
_Inout_opt_ PDEVICE_OBJECT _Inout_opt_ PDEVICE_OBJECT * FunctionalDeviceObject
Definition: ndis.h:4641
#define VIDEO_PORT_GET_DEVICE_EXTENSION(MiniportExtension)
Definition: videoprt.h:140

◆ VideoPortStopTimer()

VOID NTAPI VideoPortStopTimer ( IN PVOID  HwDeviceExtension)

Definition at line 89 of file timer.c.

90{
91 TRACE_(VIDEOPRT, "VideoPortStopTimer\n");
93}
VOID NTAPI IoStopTimer(PDEVICE_OBJECT DeviceObject)
Definition: iotimer.c:166