Author: hpoussin
Date: Mon Jul 9 01:26:42 2007
New Revision: 27522
URL:
http://svn.reactos.org/svn/reactos?rev=27522&view=rev
Log:
Revive acpi.sys driver
Modified:
trunk/reactos/drivers/bus/acpi/ospm/fdo.c
trunk/reactos/drivers/bus/acpi/ospm/osl.c
Modified: trunk/reactos/drivers/bus/acpi/ospm/fdo.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/bus/acpi/ospm/fdo.…
==============================================================================
--- trunk/reactos/drivers/bus/acpi/ospm/fdo.c (original)
+++ trunk/reactos/drivers/bus/acpi/ospm/fdo.c Mon Jul 9 01:26:42 2007
@@ -368,9 +368,6 @@
BOOLEAN Done;
RESOURCE* resource;
- if (!KdComPortInUse)
- return FALSE;
-
AcpiStatus = bm_get_node(Device->BmHandle, 0, &Node);
if (!ACPI_SUCCESS(AcpiStatus))
return FALSE;
@@ -871,41 +868,41 @@
IrpSp = IoGetCurrentIrpStackLocation(Irp);
switch (IrpSp->MinorFunction) {
- case IRP_MN_CANCEL_REMOVE_DEVICE:
- Status = STATUS_NOT_IMPLEMENTED;
- break;
-
- case IRP_MN_CANCEL_STOP_DEVICE:
- Status = STATUS_NOT_IMPLEMENTED;
- break;
-
- case IRP_MN_DEVICE_USAGE_NOTIFICATION:
- Status = STATUS_NOT_IMPLEMENTED;
- break;
-
- case IRP_MN_FILTER_RESOURCE_REQUIREMENTS:
- Status = STATUS_NOT_IMPLEMENTED;
- break;
+ //case IRP_MN_CANCEL_REMOVE_DEVICE:
+ // Status = STATUS_NOT_IMPLEMENTED;
+ // break;
+
+ //case IRP_MN_CANCEL_STOP_DEVICE:
+ // Status = STATUS_NOT_IMPLEMENTED;
+ // break;
+
+ //case IRP_MN_DEVICE_USAGE_NOTIFICATION:
+ // Status = STATUS_NOT_IMPLEMENTED;
+ // break;
+
+ //case IRP_MN_FILTER_RESOURCE_REQUIREMENTS:
+ // Status = STATUS_NOT_IMPLEMENTED;
+ // break;
case IRP_MN_QUERY_DEVICE_RELATIONS:
Status = FdoQueryBusRelations(DeviceObject, Irp, IrpSp);
break;
- case IRP_MN_QUERY_PNP_DEVICE_STATE:
- Status = STATUS_NOT_IMPLEMENTED;
- break;
-
- case IRP_MN_QUERY_REMOVE_DEVICE:
- Status = STATUS_NOT_IMPLEMENTED;
- break;
-
- case IRP_MN_QUERY_STOP_DEVICE:
- Status = STATUS_NOT_IMPLEMENTED;
- break;
-
- case IRP_MN_REMOVE_DEVICE:
- Status = STATUS_NOT_IMPLEMENTED;
- break;
+ //case IRP_MN_QUERY_PNP_DEVICE_STATE:
+ // Status = STATUS_NOT_IMPLEMENTED;
+ // break;
+
+ //case IRP_MN_QUERY_REMOVE_DEVICE:
+ // Status = STATUS_NOT_IMPLEMENTED;
+ // break;
+
+ //case IRP_MN_QUERY_STOP_DEVICE:
+ // Status = STATUS_NOT_IMPLEMENTED;
+ // break;
+
+ //case IRP_MN_REMOVE_DEVICE:
+ // Status = STATUS_NOT_IMPLEMENTED;
+ // break;
case IRP_MN_START_DEVICE:
DPRINT("IRP_MN_START_DEVICE received\n");
@@ -918,13 +915,13 @@
Status = STATUS_UNSUCCESSFUL;
break;
- case IRP_MN_SURPRISE_REMOVAL:
- Status = STATUS_NOT_IMPLEMENTED;
- break;
+ //case IRP_MN_SURPRISE_REMOVAL:
+ // Status = STATUS_NOT_IMPLEMENTED;
+ // break;
default:
DPRINT("Unknown IOCTL 0x%X\n", IrpSp->MinorFunction);
- Status = STATUS_NOT_IMPLEMENTED;
+ Status = Irp->IoStatus.Status;
break;
}
Modified: trunk/reactos/drivers/bus/acpi/ospm/osl.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/bus/acpi/ospm/osl.…
==============================================================================
--- trunk/reactos/drivers/bus/acpi/ospm/osl.c (original)
+++ trunk/reactos/drivers/bus/acpi/ospm/osl.c Mon Jul 9 01:26:42 2007
@@ -210,8 +210,8 @@
Vector = HalGetInterruptVector(
Internal,
0,
+ irq,
0,
- irq,
&DIrql,
&Affinity);