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:31 -0400 |
commit | cc0680a580b5be81a1ca321b58f8e9b80b5c1052 (patch) | |
tree | 57454cdfdc9890f4e8d9f532e9cd240c7361951f /include/linux/libata.h | |
parent | 955e57dfde4ff75e4d7329ac7a3d645b16015309 (diff) |
libata-link: linkify reset
Make reset methods and related functions deal with ata_link instead of
ata_port.
* ata_do_reset()
* ata_eh_reset()
* all prereset/reset/postreset methods and related functions
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.h | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/include/linux/libata.h b/include/linux/libata.h index e7882ba63e78..25444dafae50 100644 --- a/include/linux/libata.h +++ b/include/linux/libata.h | |||
@@ -333,14 +333,15 @@ enum ata_completion_errors { | |||
333 | struct scsi_device; | 333 | struct scsi_device; |
334 | struct ata_port_operations; | 334 | struct ata_port_operations; |
335 | struct ata_port; | 335 | struct ata_port; |
336 | struct ata_link; | ||
336 | struct ata_queued_cmd; | 337 | struct ata_queued_cmd; |
337 | 338 | ||
338 | /* typedefs */ | 339 | /* typedefs */ |
339 | typedef void (*ata_qc_cb_t) (struct ata_queued_cmd *qc); | 340 | typedef void (*ata_qc_cb_t) (struct ata_queued_cmd *qc); |
340 | typedef int (*ata_prereset_fn_t)(struct ata_port *ap, unsigned long deadline); | 341 | typedef int (*ata_prereset_fn_t)(struct ata_link *link, unsigned long deadline); |
341 | typedef int (*ata_reset_fn_t)(struct ata_port *ap, unsigned int *classes, | 342 | typedef int (*ata_reset_fn_t)(struct ata_link *link, unsigned int *classes, |
342 | unsigned long deadline); | 343 | unsigned long deadline); |
343 | typedef void (*ata_postreset_fn_t)(struct ata_port *ap, unsigned int *classes); | 344 | typedef void (*ata_postreset_fn_t)(struct ata_link *link, unsigned int *classes); |
344 | 345 | ||
345 | struct ata_ioports { | 346 | struct ata_ioports { |
346 | void __iomem *cmd_addr; | 347 | void __iomem *cmd_addr; |
@@ -706,14 +707,14 @@ extern int sata_link_debounce(struct ata_link *link, | |||
706 | const unsigned long *params, unsigned long deadline); | 707 | const unsigned long *params, unsigned long deadline); |
707 | extern int sata_link_resume(struct ata_link *link, const unsigned long *params, | 708 | extern int sata_link_resume(struct ata_link *link, const unsigned long *params, |
708 | unsigned long deadline); | 709 | unsigned long deadline); |
709 | extern int ata_std_prereset(struct ata_port *ap, unsigned long deadline); | 710 | extern int ata_std_prereset(struct ata_link *link, unsigned long deadline); |
710 | extern int ata_std_softreset(struct ata_port *ap, unsigned int *classes, | 711 | extern int ata_std_softreset(struct ata_link *link, unsigned int *classes, |
711 | unsigned long deadline); | 712 | unsigned long deadline); |
712 | extern int sata_port_hardreset(struct ata_port *ap, const unsigned long *timing, | 713 | extern int sata_link_hardreset(struct ata_link *link, |
713 | unsigned long deadline); | 714 | const unsigned long *timing, unsigned long deadline); |
714 | extern int sata_std_hardreset(struct ata_port *ap, unsigned int *class, | 715 | extern int sata_std_hardreset(struct ata_link *link, unsigned int *class, |
715 | unsigned long deadline); | 716 | unsigned long deadline); |
716 | extern void ata_std_postreset(struct ata_port *ap, unsigned int *classes); | 717 | extern void ata_std_postreset(struct ata_link *link, unsigned int *classes); |
717 | extern void ata_port_disable(struct ata_port *); | 718 | extern void ata_port_disable(struct ata_port *); |
718 | extern void ata_std_ports(struct ata_ioports *ioaddr); | 719 | extern void ata_std_ports(struct ata_ioports *ioaddr); |
719 | #ifdef CONFIG_PCI | 720 | #ifdef CONFIG_PCI |