Поделиться через


SystemWake

The SystemWake member of DEVICE_CAPABILITIES contains the lowest (least-powered) system power state from which the device can wake the system, or PowerSystemUnspecified if the device cannot wake the system.

Драйвер шины задает это значение при перечислении устройства. Драйвер более высокого уровня может изменить значение на более высокое состояние, но не может изменить его на более низкое состояние. For example, if the bus driver sets SystemWake to S3 but a driver further up the device stack supports wake-up only from S2, the higher-level driver can change the value to S2. If a driver changes SystemWake, it might also have to change DeviceWake, as explained in the next section.

Драйверы редко нуждаются в распространении измененных значений вниз стека устройств. Так как изменения делают возможности устройства более строгими, более низкие драйверы не видят запросов, которые они не могут обрабатывать. В предыдущем примере драйвер более высокого уровня завершается сбоем любого запроса на пробуждение системы из более низкого состояния питания, чем S2, поэтому более низкие драйверы никогда не видят такого запроса. However, if a lower driver must be aware of any changes, it can send a PnP IRP_MN_QUERY_CAPABILITIES to its own device stack during its processing of an IRP_MN_START_DEVICE.

If both the SystemWake and DeviceWake members are nonzero (that is, not PowerSystemUnspecified), then the device and its drivers support wake-up on this system.

On non-ACPI hardware, this member always contains zero (PowerSystemUnspecified).