From: Thomas Faber Date: Sun, 2 Apr 2017 14:24:11 +0000 (+0000) Subject: [HAL][NTOS:PNP] X-Git-Tag: ReactOS-0.4.5~168 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=ff51b80ac6158ef2799904eab5ce76d0cad90144 [HAL][NTOS:PNP] - Silence some debug prints about unhandled PNP minor functions svn path=/trunk/; revision=74265 --- diff --git a/reactos/hal/halx86/legacy/halpnpdd.c b/reactos/hal/halx86/legacy/halpnpdd.c index 4680767d6f8..084ae866add 100644 --- a/reactos/hal/halx86/legacy/halpnpdd.c +++ b/reactos/hal/halx86/legacy/halpnpdd.c @@ -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) diff --git a/reactos/ntoskrnl/io/pnpmgr/pnproot.c b/reactos/ntoskrnl/io/pnpmgr/pnproot.c index a94184d3667..398efdc6da7 100644 --- a/reactos/ntoskrnl/io/pnpmgr/pnproot.c +++ b/reactos/ntoskrnl/io/pnpmgr/pnproot.c @@ -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);