mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 15:36:04 +00:00
[ISAPNP] Implement IRP_MN_QUERY_PNP_DEVICE_STATE for ReadDataPort
This commit is contained in:
parent
5b9929a076
commit
8b53ed1d9b
1 changed files with 16 additions and 0 deletions
|
@ -75,6 +75,17 @@ IsaPdoQueryCapabilities(
|
||||||
return STATUS_SUCCESS;
|
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
|
NTSTATUS
|
||||||
NTAPI
|
NTAPI
|
||||||
IsaPdoQueryId(
|
IsaPdoQueryId(
|
||||||
|
@ -298,6 +309,11 @@ IsaPdoPnp(
|
||||||
Status = IsaPdoQueryCapabilities(PdoExt, Irp, IrpSp);
|
Status = IsaPdoQueryCapabilities(PdoExt, Irp, IrpSp);
|
||||||
break;
|
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:
|
case IRP_MN_QUERY_RESOURCES:
|
||||||
if (PdoExt->Common.Self == PdoExt->FdoExt->DataPortPdo)
|
if (PdoExt->Common.Self == PdoExt->FdoExt->DataPortPdo)
|
||||||
Status = IsaPdoQueryResources(PdoExt, Irp, IrpSp);
|
Status = IsaPdoQueryResources(PdoExt, Irp, IrpSp);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue