https://git.reactos.org/?p=reactos.git;a=commitdiff;h=8b53ed1d9b45649469d66…
commit 8b53ed1d9b45649469d6662c27520088091910ca
Author: Hervé Poussineau <hpoussin(a)reactos.org>
AuthorDate: Tue Mar 17 23:50:39 2020 +0100
Commit: Hervé Poussineau <hpoussin(a)reactos.org>
CommitDate: Fri Mar 20 22:40:11 2020 +0100
[ISAPNP] Implement IRP_MN_QUERY_PNP_DEVICE_STATE for ReadDataPort
---
drivers/bus/isapnp/pdo.c | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/drivers/bus/isapnp/pdo.c b/drivers/bus/isapnp/pdo.c
index f0481119758..a75b4d32ed7 100644
--- a/drivers/bus/isapnp/pdo.c
+++ b/drivers/bus/isapnp/pdo.c
@@ -75,6 +75,17 @@ IsaPdoQueryCapabilities(
return STATUS_SUCCESS;
}
+NTSTATUS
+NTAPI
+IsaPdoQueryPnpDeviceState(
+ IN PISAPNP_PDO_EXTENSION PdoExt,
+ IN PIRP Irp,
+ IN PIO_STACK_LOCATION IrpSp)
+{
+ Irp->IoStatus.Information |= PNP_DEVICE_NOT_DISABLEABLE;
+ return STATUS_SUCCESS;
+}
+
NTSTATUS
NTAPI
IsaPdoQueryId(
@@ -298,6 +309,11 @@ IsaPdoPnp(
Status = IsaPdoQueryCapabilities(PdoExt, Irp, IrpSp);
break;
+ case IRP_MN_QUERY_PNP_DEVICE_STATE:
+ if (PdoExt->Common.Self == PdoExt->FdoExt->DataPortPdo)
+ Status = IsaPdoQueryPnpDeviceState(PdoExt, Irp, IrpSp);
+ break;
+
case IRP_MN_QUERY_RESOURCES:
if (PdoExt->Common.Self == PdoExt->FdoExt->DataPortPdo)
Status = IsaPdoQueryResources(PdoExt, Irp, IrpSp);