diff options
author | Tejun Heo <htejun@gmail.com> | 2007-08-06 05:36:23 -0400 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2007-10-12 14:55:30 -0400 |
commit | 936fd7328657884d5a69a55666c74a55aa83ca27 (patch) | |
tree | 83a78a02d2c65ce835fe33882dfe5043d3240bff /include/linux | |
parent | f58229f8060055b08b34008ea08f31de1e2f003c (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')
-rw-r--r-- | include/linux/libata.h | 24 |
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 | ||
699 | extern void sata_print_link_status(struct ata_port *ap); | 699 | extern void sata_print_link_status(struct ata_link *link); |
700 | extern void ata_port_probe(struct ata_port *); | 700 | extern void ata_port_probe(struct ata_port *); |
701 | extern void __sata_phy_reset(struct ata_port *ap); | 701 | extern void __sata_phy_reset(struct ata_port *ap); |
702 | extern void sata_phy_reset(struct ata_port *ap); | 702 | extern void sata_phy_reset(struct ata_port *ap); |
703 | extern void ata_bus_reset(struct ata_port *ap); | 703 | extern void ata_bus_reset(struct ata_port *ap); |
704 | extern int sata_set_spd(struct ata_port *ap); | 704 | extern int sata_set_spd(struct ata_link *link); |
705 | extern int sata_phy_debounce(struct ata_port *ap, const unsigned long *param, | 705 | extern int sata_link_debounce(struct ata_link *link, |
706 | unsigned long deadline); | 706 | const unsigned long *params, unsigned long deadline); |
707 | extern int sata_phy_resume(struct ata_port *ap, const unsigned long *param, | 707 | extern int sata_link_resume(struct ata_link *link, const unsigned long *params, |
708 | unsigned long deadline); | 708 | unsigned long deadline); |
709 | extern int ata_std_prereset(struct ata_port *ap, unsigned long deadline); | 709 | extern int ata_std_prereset(struct ata_port *ap, unsigned long deadline); |
710 | extern int ata_std_softreset(struct ata_port *ap, unsigned int *classes, | 710 | extern 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 *); | |||
753 | extern int ata_sas_queuecmd(struct scsi_cmnd *cmd, void (*done)(struct scsi_cmnd *), | 753 | extern int ata_sas_queuecmd(struct scsi_cmnd *cmd, void (*done)(struct scsi_cmnd *), |
754 | struct ata_port *ap); | 754 | struct ata_port *ap); |
755 | extern unsigned int ata_host_intr(struct ata_port *ap, struct ata_queued_cmd *qc); | 755 | extern unsigned int ata_host_intr(struct ata_port *ap, struct ata_queued_cmd *qc); |
756 | extern int sata_scr_valid(struct ata_port *ap); | 756 | extern int sata_scr_valid(struct ata_link *link); |
757 | extern int sata_scr_read(struct ata_port *ap, int reg, u32 *val); | 757 | extern int sata_scr_read(struct ata_link *link, int reg, u32 *val); |
758 | extern int sata_scr_write(struct ata_port *ap, int reg, u32 val); | 758 | extern int sata_scr_write(struct ata_link *link, int reg, u32 val); |
759 | extern int sata_scr_write_flush(struct ata_port *ap, int reg, u32 val); | 759 | extern int sata_scr_write_flush(struct ata_link *link, int reg, u32 val); |
760 | extern int ata_port_online(struct ata_port *ap); | 760 | extern int ata_link_online(struct ata_link *link); |
761 | extern int ata_port_offline(struct ata_port *ap); | 761 | extern int ata_link_offline(struct ata_link *link); |
762 | #ifdef CONFIG_PM | 762 | #ifdef CONFIG_PM |
763 | extern int ata_host_suspend(struct ata_host *host, pm_message_t mesg); | 763 | extern int ata_host_suspend(struct ata_host *host, pm_message_t mesg); |
764 | extern void ata_host_resume(struct ata_host *host); | 764 | extern void ata_host_resume(struct ata_host *host); |