Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Fields
pci_platform_pm_ops Struct Reference

#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)

Detailed Description

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.

Definition at line 59 of file pci.h.

Field Documentation

bool(* can_wakeup)(struct pci_dev *dev)

Definition at line 63 of file pci.h.

pci_power_t(* choose_state)(struct pci_dev *dev)

Definition at line 62 of file pci.h.

bool(* is_manageable)(struct pci_dev *dev)

Definition at line 60 of file pci.h.

int(* run_wake)(struct pci_dev *dev, bool enable)

Definition at line 65 of file pci.h.

Definition at line 61 of file pci.h.

int(* sleep_wake)(struct pci_dev *dev, bool enable)

Definition at line 64 of file pci.h.

The documentation for this struct was generated from the following file: