Author: cgutman
Date: Fri Sep 30 04:12:31 2011
New Revision: 53899
URL:
http://svn.reactos.org/svn/reactos?rev=53899&view=rev
Log:
[ACPI]
- Report the device's lockable status in the device capabilities request
- Only report the device as disabled if it is both not enabled and not functional
Modified:
trunk/reactos/drivers/bus/acpi/buspdo.c
Modified: trunk/reactos/drivers/bus/acpi/buspdo.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/bus/acpi/buspdo.c?…
==============================================================================
--- trunk/reactos/drivers/bus/acpi/buspdo.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/bus/acpi/buspdo.c [iso-8859-1] Fri Sep 30 04:12:31 2011
@@ -372,8 +372,9 @@
if (device)
{
+ deviceCapabilities->LockSupported = device->flags.lockable;
deviceCapabilities->EjectSupported = device->flags.ejectable;
- deviceCapabilities->HardwareDisabled = !device->status.enabled;
+ deviceCapabilities->HardwareDisabled = !device->status.enabled &&
!device->status.functional;
deviceCapabilities->Removable = device->flags.removable;
deviceCapabilities->SurpriseRemovalOK = device->flags.suprise_removal_ok;
deviceCapabilities->UniqueID = device->flags.unique_id;