Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 854
b: refs/heads/master
c: 92df516
h: refs/heads/master
v: v3
  • Loading branch information
Pavel Machek authored and Greg KH committed May 4, 2005
1 parent 6e2ded6 commit cf47c86
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 34 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a3ea7fbac12fdb2d70c90bb36f81afa3c66e18f4
refs/heads/master: 92df516e6264f9caff4be49718926d6884fa50ed
35 changes: 2 additions & 33 deletions trunk/Documentation/power/pci.txt
Original file line number Diff line number Diff line change
Expand Up @@ -165,40 +165,9 @@ Description:
These functions are intended for use by individual drivers, and are defined in
struct pci_driver:

int (*save_state) (struct pci_dev *dev, u32 state);
int (*suspend) (struct pci_dev *dev, u32 state);
int (*suspend) (struct pci_dev *dev, pm_message_t state);
int (*resume) (struct pci_dev *dev);
int (*enable_wake) (struct pci_dev *dev, u32 state, int enable);


save_state
----------

Usage:

if (dev->driver && dev->driver->save_state)
dev->driver->save_state(dev,state);

The driver should use this callback to save device state. It should take into
account the current state of the device and the requested state in order to
avoid any unnecessary operations.

For example, a video card that supports all 4 states (D0-D3), all controller
context is preserved when entering D1, but the screen is placed into a low power
state (blanked).

The driver can also interpret this function as a notification that it may be
entering a sleep state in the near future. If it knows that the device cannot
enter the requested state, either because of lack of support for it, or because
the device is middle of some critical operation, then it should fail.

This function should not be used to set any state in the device or the driver
because the device may not actually enter the sleep state (e.g. another driver
later causes causes a global state transition to fail).

Note that in intermediate low power states, a device's I/O and memory spaces may
be disabled and may not be available in subsequent transitions to lower power
states.
int (*enable_wake) (struct pci_dev *dev, pci_power_t state, int enable);


suspend
Expand Down

0 comments on commit cf47c86

Please sign in to comment.