[HAL][NTOS:PNP]
authorThomas Faber <thomas.faber@reactos.org>
Sun, 2 Apr 2017 14:24:11 +0000 (14:24 +0000)
committerThomas Faber <thomas.faber@reactos.org>
Sun, 2 Apr 2017 14:24:11 +0000 (14:24 +0000)
- Silence some debug prints about unhandled PNP minor functions

svn path=/trunk/; revision=74265

reactos/hal/halx86/legacy/halpnpdd.c
reactos/ntoskrnl/io/pnpmgr/pnproot.c

index 4680767..084ae86 100644 (file)
@@ -787,6 +787,34 @@ HalpDispatchPnp(IN PDEVICE_OBJECT DeviceObject,
                                         (PVOID)&Irp->IoStatus.Information);
                 break;
 
+            case IRP_MN_QUERY_DEVICE_TEXT:
+
+                /* Inherit whatever status we had */
+                DPRINT("Query text for the PDO\n");
+                Status = Irp->IoStatus.Status;
+                break;
+
+            case IRP_MN_FILTER_RESOURCE_REQUIREMENTS:
+
+                /* Inherit whatever status we had */
+                DPRINT("Filter resource requirements for the PDO\n");
+                Status = Irp->IoStatus.Status;
+                break;
+
+            case IRP_MN_QUERY_PNP_DEVICE_STATE:
+
+                /* Inherit whatever status we had */
+                DPRINT("Query device state for the PDO\n");
+                Status = Irp->IoStatus.Status;
+                break;
+
+            case IRP_MN_QUERY_BUS_INFORMATION:
+
+                /* Inherit whatever status we had */
+                DPRINT("Query bus information for the PDO\n");
+                Status = Irp->IoStatus.Status;
+                break;
+
             default:
 
                 /* We don't handle anything else, so inherit the old state */
@@ -821,7 +849,7 @@ HalpDispatchPower(IN PDEVICE_OBJECT DeviceObject,
                   IN PIRP Irp)
 {
     PFDO_EXTENSION FdoExtension;
-    
+
     DPRINT1("HAL: PnP Driver Power!\n");
     FdoExtension = DeviceObject->DeviceExtension;
     if (FdoExtension->ExtensionType == FdoExtensionType)
index a94184d..398efdc 100644 (file)
@@ -1189,6 +1189,10 @@ PnpRootPdoPnpControl(
             Status = PdoQueryId(DeviceObject, Irp, IrpSp);
             break;
 
+        case IRP_MN_QUERY_PNP_DEVICE_STATE: /* 0x14 */
+            DPRINT("IRP_MJ_PNP / IRP_MN_QUERY_PNP_DEVICE_STATE\n");
+            break;
+
         case IRP_MN_QUERY_BUS_INFORMATION: /* 0x15 */
             DPRINT("IRP_MJ_PNP / IRP_MN_QUERY_BUS_INFORMATION\n");
             Status = PdoQueryBusInformation(DeviceObject, Irp, IrpSp);