mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 08:25:03 +00:00
[ACPI]
- Implement a DispatchCreateClose handler svn path=/trunk/; revision=46423
This commit is contained in:
parent
2a334428fc
commit
bec2c26ca3
1 changed files with 16 additions and 0 deletions
|
@ -166,6 +166,20 @@ End:
|
|||
|
||||
}
|
||||
|
||||
NTSTATUS
|
||||
NTAPI
|
||||
ACPIDispatchCreateClose(
|
||||
IN PDEVICE_OBJECT DeviceObject,
|
||||
IN PIRP Irp)
|
||||
{
|
||||
Irp->IoStatus.Status = STATUS_SUCCESS;
|
||||
Irp->IoStatus.Information = 0;
|
||||
|
||||
IoCompleteRequest(Irp, IO_NO_INCREMENT);
|
||||
|
||||
return STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
NTSTATUS
|
||||
NTAPI
|
||||
ACPIDispatchDeviceControl(
|
||||
|
@ -228,6 +242,8 @@ DriverEntry (
|
|||
DriverObject->MajorFunction[IRP_MJ_DEVICE_CONTROL] = ACPIDispatchDeviceControl;
|
||||
DriverObject->MajorFunction [IRP_MJ_PNP] = Bus_PnP;
|
||||
DriverObject->MajorFunction [IRP_MJ_POWER] = Bus_Power;
|
||||
DriverObject->MajorFunction [IRP_MJ_CREATE] = ACPIDispatchCreateClose;
|
||||
DriverObject->MajorFunction [IRP_MJ_CLOSE] = ACPIDispatchCreateClose;
|
||||
|
||||
DriverObject->DriverExtension->AddDevice = Bus_AddDevice;
|
||||
|
||||
|
|
Loading…
Reference in a new issue