为使PCI设备具有电源管理功能,需要操作系统和驱动程序的配合来控制设备的电源状态。通过研究Win-dows操作系统下系统和设备的电源策略,提出WDM驱动程序中处理系统电源IRP控制设备电源状态的电源管理方案。说明处理电源管理IRP的工作机制,在基于Windows XP的系统上证明基于这种方案的WDM驱动程序运行稳定。
The cooperation of operating system (OS) and driver is needed to control the power status of equipments for making PCI device to possess the function of power management. By the aid of the study on the power supply of systems and devices under Windows OS, a power management scheme is proposed to control the power status of equipments through pro- cessing system power IRP in WDM driver. WDM driver's mechanism of processing the power management IRP is elaborated. An experiment shows that WDM driver based on this scheme can work well with Windows XP.