System Power State to Device Power State Mapping (Windows CE 5.0)
You explicitly define system power state names as registry keys in the system configuration. The system-state-to-device-state mappings are enumerated as values under each power state name key in the registry as shown in the following code example.
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\State\Example]
Default=dword:0; D0
Flags=dword:10000; POWER_STATE_ON
COM1:=dword1; D1
This registry fragment defines the example system power state, in which all devices are allowed to go as high as D0 in their device power states, except for COM1:, which is limited to D1. The Flags field is a bitmask representing the POWER_STATE_XXX settings in Pm.h. OEMs may define their own power state flags if they desire.
The following table shows the values and their descriptions.
Value | Description |
---|---|
Name | Name of the system power state. |
Flags | Bitmask representing POWER_STATE_XXX values from Pm.h and/or OEM-defined power state flags. For more information on the power state flags see POWER_BROADCAST. |
Default | Default device power setting for all devices while at system power state Name. This is a number representing the Dx value. A 0 (zero) represents D0, a 1 represents D1, and so on. |
DeviceName | Any number of named devices may be included with a system power state definition. The value associated with the device name represents the maximum device power state for that system power state. |
The Power Manager supports the managing of multiple device classes. For example, NDIS miniports and block device drivers are assigned their own class GUIDs in Pm.h. Default values for devices of other managed classes can be specified in the registry as well. For example:
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\State\Example\{98C5250D-C29A-4985-AE5F-AFE5367E5006}]
Default=dword:1; D1
"CISCO1"=dword:0; D0
This registry fragment configures the Power Manager to restrict all NDIS miniport devices to run at or below device power state D1 in system power state example, except for CISCO1, which can go as high as D0.
See Also
System Power States | POWER_BROADCAST
Send Feedback on this topic to the authors