How to Add Power Management to a Device Driver (Windows CE 5.0)
You can add support for power management to a device driver to reduce power consumption on a target device. To do this, your driver must expose the stream interface. Once you have implemented the stream interface, you can then add support for power management to your driver.
Hardware and Software Assumptions
- You are familiar with building a Platform Builder run-time image from the command line. For more information, see Build Tool.
To track your progress in the following table, select the check box next to each step.
|1. Create a stream interface device driver.||How to Create a Device Driver|
|2. Add support for the power management I/O control codes (IOCTLs) to your stream interface driver.
For more information about the power management IOCTLs, see Power Management IOCTLs.
|Power-Manageable Device Drivers|
|3. Notify the Power Manager that your driver has power management.
For more information about the power management functions, see Power Management Functions.
|4. Implement device power states in your driver.
For more information on device power states, see Device Power States.
|Power Management Implementation in Drivers|
|5. Build your driver.
If you can build your driver with no errors you have successfully added power management to your stream interface driver.
For more information, see Troubleshooting: Building a Driver.
|Building a Device Driver from the Command Line|
|6. Debug your driver.
If you can build and debug your driver, you have successfully configured your driver to support power management.
|How to Debug a Device Driver|
Power Management | Device Power States | Stream Interface Driver Implementation | Device Power Capabilities | IOCTL_POWER_SET Request Processing | Device Power Management Guidelines | How to Create a Device Driver
Send Feedback on this topic to the authors