Linux Kernel
3.7.1
|
#include <pci.h>
Data Fields | |
bool(* | is_manageable )(struct pci_dev *dev) |
int(* | set_state )(struct pci_dev *dev, pci_power_t state) |
pci_power_t(* | choose_state )(struct pci_dev *dev) |
bool(* | can_wakeup )(struct pci_dev *dev) |
int(* | sleep_wake )(struct pci_dev *dev, bool enable) |
int(* | run_wake )(struct pci_dev *dev, bool enable) |
struct pci_platform_pm_ops - Firmware PM callbacks
: returns 'true' if given device is power manageable by the platform firmware
: invokes the platform firmware to set the device's power state
: returns PCI power state of given device preferred by the platform; to be used during system-wide transitions from a sleeping state to the working state and vice versa
: returns 'true' if given device is capable of waking up the system from a sleeping state
: enables/disables the system wake up capability of given device
: enables/disables the platform to generate run-time wake-up events for given device (the device's wake-up capability has to be enabled by for this feature to work)
If given platform is generally capable of power managing PCI devices, all of these callbacks are mandatory.