ReactOS  0.4.14-dev-376-gaedba84
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 
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 }
#define TRUE
Definition: types.h:120
#define INFO_(ch,...)
Definition: debug.h:159
#define ERR_(ch,...)
Definition: debug.h:156
LONG NTSTATUS
Definition: precomp.h:26
struct _VIDEO_PORT_DEVICE_EXTENSTION * PVIDEO_PORT_DEVICE_EXTENSION
PVOID DeviceExtension
Definition: env_spec_w32.h:418
smooth NULL
Definition: ftsmooth.c:416
VOID NTAPI IntVideoPortTimerRoutine(IN PDEVICE_OBJECT DeviceObject, IN PVOID ServiceContext)
Definition: timer.c:30
if(!(yy_init))
Definition: macro.lex.yy.c:714
#define NT_SUCCESS(StatCode)
Definition: apphelp.c:32
NTSTATUS NTAPI IoInitializeTimer(IN PDEVICE_OBJECT DeviceObject, IN PIO_TIMER_ROUTINE TimerRoutine, IN PVOID Context)
Definition: iotimer.c:92
PPCI_DRIVER_EXTENSION DriverExtension
Definition: pci.c:41
Status
Definition: gdiplustypes.h:24
IN PDEVICE_OBJECT DeviceObject
Definition: fatprocs.h:1560

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 
38  DeviceExtension->DriverExtension->InitializationData.HwTimer(
39  &DeviceExtension->MiniPortDeviceExtension);
40 }
VIDEO_PORT_DRIVER_EXTENSION * DriverExtension
Definition: videoprt.h:100
VIDEO_HW_INITIALIZATION_DATA InitializationData
Definition: videoprt.h:69
smooth NULL
Definition: ftsmooth.c:416
_In_ PKSERVICE_ROUTINE _In_opt_ PVOID ServiceContext
Definition: iofuncs.h:798
ASSERT((InvokeOnSuccess||InvokeOnError||InvokeOnCancel) ?(CompletionRoutine !=NULL) :TRUE)
PVIDEO_HW_TIMER HwTimer
Definition: video.h:673

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 }
VOID NTAPI IoStartTimer(IN PDEVICE_OBJECT DeviceObject)
Definition: iotimer.c:133
#define VIDEO_PORT_GET_DEVICE_EXTENSION(MiniportExtension)
Definition: videoprt.h:133
#define TRACE_(x)
Definition: compat.h:66
_Inout_opt_ PDEVICE_OBJECT _Inout_opt_ PDEVICE_OBJECT * FunctionalDeviceObject
Definition: ndis.h:4640

◆ VideoPortStopTimer()

VOID NTAPI VideoPortStopTimer ( IN PVOID  HwDeviceExtension)

Definition at line 89 of file timer.c.

90 {
91  TRACE_(VIDEOPRT, "VideoPortStopTimer\n");
93 }
#define VIDEO_PORT_GET_DEVICE_EXTENSION(MiniportExtension)
Definition: videoprt.h:133
VOID NTAPI IoStopTimer(PDEVICE_OBJECT DeviceObject)
Definition: iotimer.c:166
#define TRACE_(x)
Definition: compat.h:66
_Inout_opt_ PDEVICE_OBJECT _Inout_opt_ PDEVICE_OBJECT * FunctionalDeviceObject
Definition: ndis.h:4640