win-pvdrivers

changeset 912:1e795031439a

fix power state settings
author James Harper <james.harper@bendigoit.com.au>
date Sat Apr 30 00:23:04 2011 +1000 (2011-04-30)
parents 60e760e70c21
children dae0e5c1f26c
files xenpci/xenpci.c xenpci/xenpci_pdo.c
line diff
     1.1 --- a/xenpci/xenpci.c	Fri Apr 29 23:56:20 2011 +1000
     1.2 +++ b/xenpci/xenpci.c	Sat Apr 30 00:23:04 2011 +1000
     1.3 @@ -182,7 +182,7 @@ XenPci_EvtDeviceAdd_XenPci(WDFDRIVER dri
     1.4    power_capabilities.DeviceD1 = WdfTrue;
     1.5    power_capabilities.WakeFromD1 = WdfTrue;
     1.6    power_capabilities.DeviceWake = PowerDeviceD1;
     1.7 -  power_capabilities.DeviceState[PowerSystemWorking]   = PowerDeviceD1;
     1.8 +  power_capabilities.DeviceState[PowerSystemWorking]   = PowerDeviceD0;
     1.9    power_capabilities.DeviceState[PowerSystemSleeping1] = PowerDeviceD1;
    1.10    power_capabilities.DeviceState[PowerSystemSleeping2] = PowerDeviceD2;
    1.11    power_capabilities.DeviceState[PowerSystemSleeping3] = PowerDeviceD2;
     2.1 --- a/xenpci/xenpci_pdo.c	Fri Apr 29 23:56:20 2011 +1000
     2.2 +++ b/xenpci/xenpci_pdo.c	Sat Apr 30 00:23:04 2011 +1000
     2.3 @@ -1429,7 +1429,7 @@ XenPci_EvtChildListCreateDevice(WDFCHILD
     2.4    child_power_capabilities.DeviceD1 = WdfTrue;
     2.5    child_power_capabilities.WakeFromD1 = WdfTrue;
     2.6    child_power_capabilities.DeviceWake = PowerDeviceD1;
     2.7 -  child_power_capabilities.DeviceState[PowerSystemWorking]   = PowerDeviceD1;
     2.8 +  child_power_capabilities.DeviceState[PowerSystemWorking]   = PowerDeviceD0;
     2.9    child_power_capabilities.DeviceState[PowerSystemSleeping1] = PowerDeviceD1;
    2.10    child_power_capabilities.DeviceState[PowerSystemSleeping2] = PowerDeviceD2;
    2.11    child_power_capabilities.DeviceState[PowerSystemSleeping3] = PowerDeviceD2;