diff options
author | Brian Norris <computersforpeace@gmail.com> | 2011-11-18 14:10:10 -0500 |
---|---|---|
committer | Jeff Garzik <jgarzik@redhat.com> | 2012-01-08 19:14:59 -0500 |
commit | 17ab594fa5f6c766a3daf304d2e6b643f863c24c (patch) | |
tree | fe562c7fcd1100a1bc3b90f912813b77e5b37972 /include/linux/ahci_platform.h | |
parent | 80a9c430007b489823bc1b5300f4a1ba39ca1ef9 (diff) |
ahci: platform support for suspend/resume
Add platform hooks for custom suspend() and resume() functions. The
generic suspend/resume code in drivers/ata/ahci_platform.c is adapted
from the PCI version in drivers/ata/ahci.c.
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'include/linux/ahci_platform.h')
-rw-r--r-- | include/linux/ahci_platform.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/ahci_platform.h b/include/linux/ahci_platform.h index be3d9a77d6ed..73a25005d88a 100644 --- a/include/linux/ahci_platform.h +++ b/include/linux/ahci_platform.h | |||
@@ -23,6 +23,8 @@ struct ata_port_info; | |||
23 | struct ahci_platform_data { | 23 | struct ahci_platform_data { |
24 | int (*init)(struct device *dev, void __iomem *addr); | 24 | int (*init)(struct device *dev, void __iomem *addr); |
25 | void (*exit)(struct device *dev); | 25 | void (*exit)(struct device *dev); |
26 | int (*suspend)(struct device *dev); | ||
27 | int (*resume)(struct device *dev); | ||
26 | const struct ata_port_info *ata_port_info; | 28 | const struct ata_port_info *ata_port_info; |
27 | unsigned int force_port_map; | 29 | unsigned int force_port_map; |
28 | unsigned int mask_port_map; | 30 | unsigned int mask_port_map; |