aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/libata.h
diff options
context:
space:
mode:
authorTejun Heo <htejun@gmail.com>2007-08-06 05:36:23 -0400
committerJeff Garzik <jeff@garzik.org>2007-10-12 14:55:30 -0400
commit936fd7328657884d5a69a55666c74a55aa83ca27 (patch)
tree83a78a02d2c65ce835fe33882dfe5043d3240bff /include/linux/libata.h
parentf58229f8060055b08b34008ea08f31de1e2f003c (diff)
libata-link: linkify PHY-related functions
Make the following PHY-related functions to deal with ata_link instead of ata_port. * sata_print_link_status() * sata_down_spd_limit() * ata_set_sata_spd_limit() and friends * sata_link_debounce/resume() * sata_scr_valid/read/write/write_flush() * ata_link_on/offline() This patch introduces no behavior change. Signed-off-by: Tejun Heo <htejun@gmail.com> Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'include/linux/libata.h')
-rw-r--r--include/linux/libata.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/include/linux/libata.h b/include/linux/libata.h
index 62fa8cf677a1..e7882ba63e78 100644
--- a/include/linux/libata.h
+++ b/include/linux/libata.h
@@ -696,16 +696,16 @@ static inline int ata_port_is_dummy(struct ata_port *ap)
696 return ap->ops == &ata_dummy_port_ops; 696 return ap->ops == &ata_dummy_port_ops;
697} 697}
698 698
699extern void sata_print_link_status(struct ata_port *ap); 699extern void sata_print_link_status(struct ata_link *link);
700extern void ata_port_probe(struct ata_port *); 700extern void ata_port_probe(struct ata_port *);
701extern void __sata_phy_reset(struct ata_port *ap); 701extern void __sata_phy_reset(struct ata_port *ap);
702extern void sata_phy_reset(struct ata_port *ap); 702extern void sata_phy_reset(struct ata_port *ap);
703extern void ata_bus_reset(struct ata_port *ap); 703extern void ata_bus_reset(struct ata_port *ap);
704extern int sata_set_spd(struct ata_port *ap); 704extern int sata_set_spd(struct ata_link *link);
705extern int sata_phy_debounce(struct ata_port *ap, const unsigned long *param, 705extern int sata_link_debounce(struct ata_link *link,
706 unsigned long deadline); 706 const unsigned long *params, unsigned long deadline);
707extern int sata_phy_resume(struct ata_port *ap, const unsigned long *param, 707extern int sata_link_resume(struct ata_link *link, const unsigned long *params,
708 unsigned long deadline); 708 unsigned long deadline);
709extern int ata_std_prereset(struct ata_port *ap, unsigned long deadline); 709extern int ata_std_prereset(struct ata_port *ap, unsigned long deadline);
710extern int ata_std_softreset(struct ata_port *ap, unsigned int *classes, 710extern int ata_std_softreset(struct ata_port *ap, unsigned int *classes,
711 unsigned long deadline); 711 unsigned long deadline);
@@ -753,12 +753,12 @@ extern int ata_sas_slave_configure(struct scsi_device *, struct ata_port *);
753extern int ata_sas_queuecmd(struct scsi_cmnd *cmd, void (*done)(struct scsi_cmnd *), 753extern int ata_sas_queuecmd(struct scsi_cmnd *cmd, void (*done)(struct scsi_cmnd *),
754 struct ata_port *ap); 754 struct ata_port *ap);
755extern unsigned int ata_host_intr(struct ata_port *ap, struct ata_queued_cmd *qc); 755extern unsigned int ata_host_intr(struct ata_port *ap, struct ata_queued_cmd *qc);
756extern int sata_scr_valid(struct ata_port *ap); 756extern int sata_scr_valid(struct ata_link *link);
757extern int sata_scr_read(struct ata_port *ap, int reg, u32 *val); 757extern int sata_scr_read(struct ata_link *link, int reg, u32 *val);
758extern int sata_scr_write(struct ata_port *ap, int reg, u32 val); 758extern int sata_scr_write(struct ata_link *link, int reg, u32 val);
759extern int sata_scr_write_flush(struct ata_port *ap, int reg, u32 val); 759extern int sata_scr_write_flush(struct ata_link *link, int reg, u32 val);
760extern int ata_port_online(struct ata_port *ap); 760extern int ata_link_online(struct ata_link *link);
761extern int ata_port_offline(struct ata_port *ap); 761extern int ata_link_offline(struct ata_link *link);
762#ifdef CONFIG_PM 762#ifdef CONFIG_PM
763extern int ata_host_suspend(struct ata_host *host, pm_message_t mesg); 763extern int ata_host_suspend(struct ata_host *host, pm_message_t mesg);
764extern void ata_host_resume(struct ata_host *host); 764extern void ata_host_resume(struct ata_host *host);