ReactOS  0.4.15-dev-1197-g8081ba9
processr.c
Go to the documentation of this file.
1 /*
2  * PROJECT: ReactOS Generic CPU Driver
3  * LICENSE: GNU GPLv2 only as published by the Free Software Foundation
4  * FILE: drivers/processor/processr/processr.c
5  * PURPOSE: Main Driver Routines
6  * PROGRAMMERS: Eric Kohl <eric.kohl@reactos.org>
7  */
8 
9 /* INCLUDES *******************************************************************/
10 
11 #include "processr.h"
12 
13 #define NDEBUG
14 #include <debug.h>
15 
16 
17 /* FUNCTIONS ******************************************************************/
18 
19 static
20 VOID
21 NTAPI
24 {
25  DPRINT("ProcessorUnload()\n");
26 }
27 
28 
29 static
31 NTAPI
34  IN PIRP Irp)
35 {
36 // PIO_STACK_LOCATION IrpSp;
37 // NTSTATUS Status = Irp->IoStatus.Status;
38  PDEVICE_EXTENSION DeviceExtension = DeviceObject->DeviceExtension;
39 
40  DPRINT("ProcessorPower()\n");
41 
42 // IrpSp = IoGetCurrentIrpStackLocation(Irp);
43 
46  return PoCallDriver(DeviceExtension->LowerDevice, Irp);
47 }
48 
49 
51 NTAPI
55 {
56  DPRINT("Processr: DriverEntry()\n");
57 
60 
63 
64  return STATUS_SUCCESS;
65 }
NTSTATUS NTAPI DriverEntry(IN PDRIVER_OBJECT DriverObject, IN PUNICODE_STRING RegistryPath)
Definition: processr.c:52
#define IN
Definition: typedefs.h:39
NTSTATUS NTAPI ProcessorPnp(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp)
Definition: pnp.c:262
NTSTATUS NTAPI ProcessorAddDevice(IN PDRIVER_OBJECT DriverObject, IN PDEVICE_OBJECT Pdo)
Definition: pnp.c:357
_In_ PIRP Irp
Definition: csq.h:116
static NTSTATUS NTAPI ProcessorPower(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp)
Definition: processr.c:32
#define IRP_MJ_PNP
Definition: cdrw_usr.h:52
LONG NTSTATUS
Definition: precomp.h:26
static VOID NTAPI ProcessorUnload(IN PDRIVER_OBJECT DriverObject)
Definition: processr.c:22
NTSTATUS(* NTAPI)(IN PFILE_FULL_EA_INFORMATION EaBuffer, IN ULONG EaLength, OUT PULONG ErrorOffset)
Definition: IoEaTest.cpp:117
PDRIVER_EXTENSION DriverExtension
Definition: iotypes.h:2262
static PDRIVER_OBJECT DriverObject
Definition: template.c:42
void DPRINT(...)
Definition: polytest.cpp:61
_In_z_ PWSTR RegistryPath
Definition: classp.h:1930
#define IRP_MJ_POWER
PDRIVER_UNLOAD DriverUnload
Definition: iotypes.h:2268
PDRIVER_ADD_DEVICE AddDevice
Definition: iotypes.h:2200
VOID NTAPI PoStartNextPowerIrp(IN PIRP Irp)
Definition: power.c:737
_In_ PDEVICE_OBJECT DeviceObject
Definition: iotypes.h:2464
#define IoSkipCurrentIrpStackLocation(Irp)
Definition: ntifs_ex.h:421
PDRIVER_DISPATCH MajorFunction[IRP_MJ_MAXIMUM_FUNCTION+1]
Definition: iotypes.h:2269
return STATUS_SUCCESS
Definition: btrfs.c:3014