aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ata/libata.h
diff options
context:
space:
mode:
authorShaohua Li <shaohua.li@intel.com>2007-11-01 21:32:38 -0400
committerJeff Garzik <jeff@garzik.org>2008-01-23 05:24:09 -0500
commitbd3adca52bc43b72c75db3e4c7809d47923b154c (patch)
treeec42456926e50a4b0adf916ac1c5f39f76e057f8 /drivers/ata/libata.h
parentae8d4ee7ff429136c8b482c3b38ed994c021d3fc (diff)
libata-acpi: add ACPI _PSx method
ACPI spec (ver 3.0a, p289) requires IDE power on/off executes ACPI _PSx methods. As recently most PATA drivers use libata, this patch adds _PSx method support in libata. ACPI spec doesn't mention if SATA requires the same _PSx method. Signed-off-by: Shaohua Li <shaohua.li@intel.com> Acked-by: Len Brown <len.brown@intel.com> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers/ata/libata.h')
-rw-r--r--drivers/ata/libata.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/ata/libata.h b/drivers/ata/libata.h
index 048e26cfb339..8cf0874f248b 100644
--- a/drivers/ata/libata.h
+++ b/drivers/ata/libata.h
@@ -114,6 +114,7 @@ extern int ata_acpi_on_suspend(struct ata_port *ap);
114extern void ata_acpi_on_resume(struct ata_port *ap); 114extern void ata_acpi_on_resume(struct ata_port *ap);
115extern int ata_acpi_on_devcfg(struct ata_device *dev); 115extern int ata_acpi_on_devcfg(struct ata_device *dev);
116extern void ata_acpi_on_disable(struct ata_device *dev); 116extern void ata_acpi_on_disable(struct ata_device *dev);
117extern void ata_acpi_set_state(struct ata_port *ap, pm_message_t state);
117#else 118#else
118static inline void ata_acpi_associate_sata_port(struct ata_port *ap) { } 119static inline void ata_acpi_associate_sata_port(struct ata_port *ap) { }
119static inline void ata_acpi_associate(struct ata_host *host) { } 120static inline void ata_acpi_associate(struct ata_host *host) { }
@@ -122,6 +123,8 @@ static inline int ata_acpi_on_suspend(struct ata_port *ap) { return 0; }
122static inline void ata_acpi_on_resume(struct ata_port *ap) { } 123static inline void ata_acpi_on_resume(struct ata_port *ap) { }
123static inline int ata_acpi_on_devcfg(struct ata_device *dev) { return 0; } 124static inline int ata_acpi_on_devcfg(struct ata_device *dev) { return 0; }
124static inline void ata_acpi_on_disable(struct ata_device *dev) { } 125static inline void ata_acpi_on_disable(struct ata_device *dev) { }
126static inline void ata_acpi_set_state(struct ata_port *ap,
127 pm_message_t state) { }
125#endif 128#endif
126 129
127/* libata-scsi.c */ 130/* libata-scsi.c */