mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +00:00
[ISAPNP] Fix device capabilities
- The bus does not supply an address. - Read Port ID is always unique. This reverts commitfc0a0b9f84
. See also commit21514e473f
. CORE-17034
This commit is contained in:
parent
21514e473f
commit
2d367001bd
1 changed files with 11 additions and 8 deletions
|
@ -53,23 +53,26 @@ IsaPdoQueryCapabilities(
|
||||||
_In_ PIO_STACK_LOCATION IrpSp)
|
_In_ PIO_STACK_LOCATION IrpSp)
|
||||||
{
|
{
|
||||||
PDEVICE_CAPABILITIES DeviceCapabilities;
|
PDEVICE_CAPABILITIES DeviceCapabilities;
|
||||||
PISAPNP_LOGICAL_DEVICE LogDev = PdoExt->IsaPnpDevice;
|
|
||||||
ULONG i;
|
ULONG i;
|
||||||
|
|
||||||
|
UNREFERENCED_PARAMETER(Irp);
|
||||||
|
|
||||||
PAGED_CODE();
|
PAGED_CODE();
|
||||||
|
|
||||||
DeviceCapabilities = IrpSp->Parameters.DeviceCapabilities.Capabilities;
|
DeviceCapabilities = IrpSp->Parameters.DeviceCapabilities.Capabilities;
|
||||||
if (DeviceCapabilities->Version != 1)
|
if (DeviceCapabilities->Version != 1)
|
||||||
return STATUS_REVISION_MISMATCH;
|
return STATUS_REVISION_MISMATCH;
|
||||||
|
|
||||||
if (LogDev)
|
DeviceCapabilities->LockSupported =
|
||||||
{
|
DeviceCapabilities->EjectSupported =
|
||||||
|
DeviceCapabilities->Removable =
|
||||||
|
DeviceCapabilities->DockDevice = FALSE;
|
||||||
|
|
||||||
DeviceCapabilities->UniqueID = TRUE;
|
DeviceCapabilities->UniqueID = TRUE;
|
||||||
DeviceCapabilities->Address = LogDev->CSN;
|
|
||||||
}
|
if (PdoExt->FdoExt->ReadPortPdo &&
|
||||||
else
|
PdoExt->Common.Self == PdoExt->FdoExt->ReadPortPdo)
|
||||||
{
|
{
|
||||||
DeviceCapabilities->UniqueID = FALSE;
|
|
||||||
DeviceCapabilities->RawDeviceOK = TRUE;
|
DeviceCapabilities->RawDeviceOK = TRUE;
|
||||||
DeviceCapabilities->SilentInstall = TRUE;
|
DeviceCapabilities->SilentInstall = TRUE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue