Writing Device Drivers

Power Management Functions

The power management functions are:

ddi_removing_power()

Check if device loses power with DDI_SUSPEND

pci_report_pmcap()

Report the power management capability of a PCI device

pm_busy_component()

Mark a component as busy

pm_idle_component()

Mark a component as idle

pm_raise_power()

Raise the power level of a component

pm_lower_power()

Lower the power level of a component

pm_power_has_changed()

Notify the power management framework of an autonomous power level change

pm_trans_check()

Device power cycle advisory check

Table B–10 Deprecated Power Management Functions

Function Name 

Description 

ddi_dev_is_needed()

Inform the system that a device's component is required 

pm_create_components()

Create power-manageable components 

pm_destroy_components()

Destroy power-manageable components 

pm_get_normal_power()

Get the normal power level of a device component 

pm_set_normal_power()

Set the normal power level of a device component