diff options
author | Tejun Heo <tj@kernel.org> | 2008-07-31 04:02:42 -0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@redhat.com> | 2008-09-29 00:22:32 -0400 |
commit | b5b3fa386b8f96c7fa92e507e5deddc2637924b4 (patch) | |
tree | 2d203860958d43b430974bcf365f4d8d3aa36b24 /include/linux | |
parent | aadffb682cc5572f48cc24883681db65530bd284 (diff) |
libata: misc updates to prepare for slave link
* Add ATA_EH_ALL_ACTIONS.
* Make sata_link_{on|off}_line() return bool instead of int.
Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/libata.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/linux/libata.h b/include/linux/libata.h index 3eaca347ce29..0c7e6f3c28eb 100644 --- a/include/linux/libata.h +++ b/include/linux/libata.h | |||
@@ -321,6 +321,8 @@ enum { | |||
321 | ATA_EH_LPM = (1 << 4), /* link power management action */ | 321 | ATA_EH_LPM = (1 << 4), /* link power management action */ |
322 | 322 | ||
323 | ATA_EH_PERDEV_MASK = ATA_EH_REVALIDATE, | 323 | ATA_EH_PERDEV_MASK = ATA_EH_REVALIDATE, |
324 | ATA_EH_ALL_ACTIONS = ATA_EH_REVALIDATE | ATA_EH_RESET | | ||
325 | ATA_EH_ENABLE_LINK | ATA_EH_LPM, | ||
324 | 326 | ||
325 | /* ata_eh_info->flags */ | 327 | /* ata_eh_info->flags */ |
326 | ATA_EHI_HOTPLUGGED = (1 << 0), /* could have been hotplugged */ | 328 | ATA_EHI_HOTPLUGGED = (1 << 0), /* could have been hotplugged */ |
@@ -920,8 +922,8 @@ extern int sata_scr_valid(struct ata_link *link); | |||
920 | extern int sata_scr_read(struct ata_link *link, int reg, u32 *val); | 922 | extern int sata_scr_read(struct ata_link *link, int reg, u32 *val); |
921 | extern int sata_scr_write(struct ata_link *link, int reg, u32 val); | 923 | extern int sata_scr_write(struct ata_link *link, int reg, u32 val); |
922 | extern int sata_scr_write_flush(struct ata_link *link, int reg, u32 val); | 924 | extern int sata_scr_write_flush(struct ata_link *link, int reg, u32 val); |
923 | extern int ata_link_online(struct ata_link *link); | 925 | extern bool ata_link_online(struct ata_link *link); |
924 | extern int ata_link_offline(struct ata_link *link); | 926 | extern bool ata_link_offline(struct ata_link *link); |
925 | #ifdef CONFIG_PM | 927 | #ifdef CONFIG_PM |
926 | extern int ata_host_suspend(struct ata_host *host, pm_message_t mesg); | 928 | extern int ata_host_suspend(struct ata_host *host, pm_message_t mesg); |
927 | extern void ata_host_resume(struct ata_host *host); | 929 | extern void ata_host_resume(struct ata_host *host); |