Partager via


How to Add Power Management to a Device Driver

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

You can add support for power management to a device driver to reduce power consumption on a device. To do this, your driver must expose the stream interface. Once you have implemented the stream interface, you can add support for power management to your driver.

Hardware and Software Assumptions

  • These steps assume that you are familiar with building a Platform Builder run-time image from the command line.**

Track your progress in the following table.

Step Description

1. Create a stream interface device driver.

The stream interface functions enable other software modules to interact with peripherals as if they were files.

2. Add support for the power management I/O control codes (IOCTLs) to your stream interface driver.

For more information see Power-Manageable Device Drivers.

For more information about the power management IOCTLs, see Power Management I/O Controls.

3. Notify 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.and 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.

6. Debug your driver.

Correct any errors that arise in step 5.

See Also

Concepts

Device Power States
Device Power Capabilities
IOCTL_POWER_SET Request Processing

Other Resources

Power Management
Device Power Management Guidelines