Author: sginsberg
Date: Mon Jun 1 00:53:49 2009
New Revision: 41229
URL:
http://svn.reactos.org/svn/reactos?rev=41229&view=rev
Log:
Patch from Olaf Siejka <olaf_siejka AT o2 DOT pl>
Stub out more IRP type cases instead of printing "Unknown IOCTL"
Modified:
trunk/reactos/drivers/bus/pci/pdo.c
Modified: trunk/reactos/drivers/bus/pci/pdo.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/bus/pci/pdo.c?rev=…
==============================================================================
--- trunk/reactos/drivers/bus/pci/pdo.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/bus/pci/pdo.c [iso-8859-1] Mon Jun 1 00:53:49 2009
@@ -1295,13 +1295,14 @@
IrpSp = IoGetCurrentIrpStackLocation(Irp);
switch (IrpSp->MinorFunction) {
-#if 0
+
case IRP_MN_DEVICE_USAGE_NOTIFICATION:
+ DPRINT("Unimplemented IRP_MN_DEVICE_USAGE_NOTIFICATION received\n");
break;
case IRP_MN_EJECT:
- break;
-#endif
+ DPRINT("Unimplemented IRP_MN_EJECT received\n");
+ break;
case IRP_MN_QUERY_BUS_INFORMATION:
Status = PdoQueryBusInformation(DeviceObject, Irp, IrpSp);
@@ -1311,11 +1312,10 @@
Status = PdoQueryCapabilities(DeviceObject, Irp, IrpSp);
break;
-#if 0
case IRP_MN_QUERY_DEVICE_RELATIONS:
/* FIXME: Possibly handle for RemovalRelations */
- break;
-#endif
+ DPRINT("Unimplemented IRP_MN_QUERY_DEVICE_RELATIONS received\n");
+ break;
case IRP_MN_QUERY_DEVICE_TEXT:
DPRINT("IRP_MN_QUERY_DEVICE_TEXT received\n");
@@ -1327,10 +1327,9 @@
Status = PdoQueryId(DeviceObject, Irp, IrpSp);
break;
-#if 0
case IRP_MN_QUERY_PNP_DEVICE_STATE:
- break;
-#endif
+ DPRINT("Unimplemented IRP_MN_QUERY_ID received\n");
+ break;
case IRP_MN_QUERY_RESOURCE_REQUIREMENTS:
DPRINT("IRP_MN_QUERY_RESOURCE_REQUIREMENTS received\n");
@@ -1342,10 +1341,9 @@
Status = PdoQueryResources(DeviceObject, Irp, IrpSp);
break;
-#if 0
case IRP_MN_SET_LOCK:
- break;
-#endif
+ DPRINT("Unimplemented IRP_MN_SET_LOCK received\n");
+ break;
case IRP_MN_START_DEVICE:
case IRP_MN_QUERY_STOP_DEVICE: