aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorPavel Machek <pavel@ucw.cz>2005-04-16 18:25:24 -0400
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 18:25:24 -0400
commit438510f6f079e94df294936b5bd8a7fd679cd1c9 (patch)
tree9c26a3eb527e95ed19e74d2c1d58e46f2d6908df /include
parent74ad74c1581c9a27582945ca01ffdb88fc774171 (diff)
[PATCH] pm_message_t: more fixes in common and i386
I thought I'm done with fixing u32 vs. pm_message_t ... unfortunately that turned out not to be the case as Russel King pointed out. Here are fixes for Documentation and common code (mainly system devices). Signed-off-by: Pavel Machek <pavel@suse.cz> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/pci.h5
-rw-r--r--include/linux/sysdev.h5
2 files changed, 6 insertions, 4 deletions
diff --git a/include/linux/pci.h b/include/linux/pci.h
index bea13a99e6fb..3c89148ae28a 100644
--- a/include/linux/pci.h
+++ b/include/linux/pci.h
@@ -501,6 +501,7 @@ typedef int __bitwise pci_power_t;
501#define PCI_D2 ((pci_power_t __force) 2) 501#define PCI_D2 ((pci_power_t __force) 2)
502#define PCI_D3hot ((pci_power_t __force) 3) 502#define PCI_D3hot ((pci_power_t __force) 3)
503#define PCI_D3cold ((pci_power_t __force) 4) 503#define PCI_D3cold ((pci_power_t __force) 4)
504#define PCI_POWER_ERROR ((pci_power_t __force) -1)
504 505
505/* 506/*
506 * The pci_dev structure is used to describe PCI devices. 507 * The pci_dev structure is used to describe PCI devices.
@@ -669,7 +670,7 @@ struct pci_driver {
669 void (*remove) (struct pci_dev *dev); /* Device removed (NULL if not a hot-plug capable driver) */ 670 void (*remove) (struct pci_dev *dev); /* Device removed (NULL if not a hot-plug capable driver) */
670 int (*suspend) (struct pci_dev *dev, pm_message_t state); /* Device suspended */ 671 int (*suspend) (struct pci_dev *dev, pm_message_t state); /* Device suspended */
671 int (*resume) (struct pci_dev *dev); /* Device woken up */ 672 int (*resume) (struct pci_dev *dev); /* Device woken up */
672 int (*enable_wake) (struct pci_dev *dev, u32 state, int enable); /* Enable wake event */ 673 int (*enable_wake) (struct pci_dev *dev, pci_power_t state, int enable); /* Enable wake event */
673 674
674 struct device_driver driver; 675 struct device_driver driver;
675 struct pci_dynids dynids; 676 struct pci_dynids dynids;
@@ -952,7 +953,7 @@ static inline const struct pci_device_id *pci_match_device(const struct pci_devi
952static inline int pci_save_state(struct pci_dev *dev) { return 0; } 953static inline int pci_save_state(struct pci_dev *dev) { return 0; }
953static inline int pci_restore_state(struct pci_dev *dev) { return 0; } 954static inline int pci_restore_state(struct pci_dev *dev) { return 0; }
954static inline int pci_set_power_state(struct pci_dev *dev, pci_power_t state) { return 0; } 955static inline int pci_set_power_state(struct pci_dev *dev, pci_power_t state) { return 0; }
955static inline pci_power_t pci_choose_state(struct pci_dev *dev, u32 state) { return PCI_D0; } 956static inline pci_power_t pci_choose_state(struct pci_dev *dev, pm_message_t state) { return PCI_D0; }
956static inline int pci_enable_wake(struct pci_dev *dev, pci_power_t state, int enable) { return 0; } 957static inline int pci_enable_wake(struct pci_dev *dev, pci_power_t state, int enable) { return 0; }
957 958
958#define isa_bridge ((struct pci_dev *)NULL) 959#define isa_bridge ((struct pci_dev *)NULL)
diff --git a/include/linux/sysdev.h b/include/linux/sysdev.h
index 635db1df656f..2a4b432e1176 100644
--- a/include/linux/sysdev.h
+++ b/include/linux/sysdev.h
@@ -22,6 +22,7 @@
22#define _SYSDEV_H_ 22#define _SYSDEV_H_
23 23
24#include <linux/kobject.h> 24#include <linux/kobject.h>
25#include <linux/pm.h>
25 26
26 27
27struct sys_device; 28struct sys_device;
@@ -31,7 +32,7 @@ struct sysdev_class {
31 32
32 /* Default operations for these types of devices */ 33 /* Default operations for these types of devices */
33 int (*shutdown)(struct sys_device *); 34 int (*shutdown)(struct sys_device *);
34 int (*suspend)(struct sys_device *, u32 state); 35 int (*suspend)(struct sys_device *, pm_message_t state);
35 int (*resume)(struct sys_device *); 36 int (*resume)(struct sys_device *);
36 struct kset kset; 37 struct kset kset;
37}; 38};
@@ -50,7 +51,7 @@ struct sysdev_driver {
50 int (*add)(struct sys_device *); 51 int (*add)(struct sys_device *);
51 int (*remove)(struct sys_device *); 52 int (*remove)(struct sys_device *);
52 int (*shutdown)(struct sys_device *); 53 int (*shutdown)(struct sys_device *);
53 int (*suspend)(struct sys_device *, u32 state); 54 int (*suspend)(struct sys_device *, pm_message_t state);
54 int (*resume)(struct sys_device *); 55 int (*resume)(struct sys_device *);
55}; 56};
56 57