summaryrefslogtreecommitdiffstats
path: root/include/linux/ahci_platform.h
diff options
context:
space:
mode:
authorBrian Norris <computersforpeace@gmail.com>2011-11-18 11:10:10 -0800
committerJeff Garzik <jgarzik@redhat.com>2012-01-08 19:14:59 -0500
commit17ab594fa5f6c766a3daf304d2e6b643f863c24c (patch)
treefe562c7fcd1100a1bc3b90f912813b77e5b37972 /include/linux/ahci_platform.h
parent80a9c430007b489823bc1b5300f4a1ba39ca1ef9 (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.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/ahci_platform.h b/include/linux/ahci_platform.h
index be3d9a77d6e..73a25005d88 100644
--- a/include/linux/ahci_platform.h
+++ b/include/linux/ahci_platform.h
@@ -23,6 +23,8 @@ struct ata_port_info;
struct ahci_platform_data {
int (*init)(struct device *dev, void __iomem *addr);
void (*exit)(struct device *dev);
+ int (*suspend)(struct device *dev);
+ int (*resume)(struct device *dev);
const struct ata_port_info *ata_port_info;
unsigned int force_port_map;
unsigned int mask_port_map;