Something went wrong. Try again.
Reactos
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566/* * PROJECT: ReactOS Generic CPU Driver * LICENSE: GNU GPLv2 only as published by the Free Software Foundation * FILE: drivers/processor/processr/processr.c * PURPOSE: Main Driver Routines * PROGRAMMERS: Eric Kohl <eric.kohl@reactos.org> */
/* INCLUDES *******************************************************************/
#include "processr.h"
#define NDEBUG#include <debug.h>
/* FUNCTIONS ******************************************************************/
staticVOIDNTAPIProcessorUnload( IN PDRIVER_OBJECT DriverObject){ DPRINT("ProcessorUnload()\n");}
staticNTSTATUSNTAPIProcessorPower( IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp){// PIO_STACK_LOCATION IrpSp;// NTSTATUS Status = Irp->IoStatus.Status; PDEVICE_EXTENSION DeviceExtension = DeviceObject->DeviceExtension;
DPRINT("ProcessorPower()\n");
// IrpSp = IoGetCurrentIrpStackLocation(Irp);
PoStartNextPowerIrp(Irp); IoSkipCurrentIrpStackLocation(Irp); return PoCallDriver(DeviceExtension->LowerDevice, Irp);}
NTSTATUSNTAPIDriverEntry( IN PDRIVER_OBJECT DriverObject, IN PUNICODE_STRING RegistryPath){ DPRINT("Processr: DriverEntry()\n");
DriverObject->MajorFunction[IRP_MJ_PNP] = ProcessorPnp; DriverObject->MajorFunction[IRP_MJ_POWER] = ProcessorPower;
DriverObject->DriverExtension->AddDevice = ProcessorAddDevice; DriverObject->DriverUnload = ProcessorUnload;
return STATUS_SUCCESS;}