aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/linux/libata.h15
1 files changed, 12 insertions, 3 deletions
diff --git a/include/linux/libata.h b/include/linux/libata.h
index 4d4ed2c8fec7..2f7bbfc0c41b 100644
--- a/include/linux/libata.h
+++ b/include/linux/libata.h
@@ -629,9 +629,18 @@ struct ata_timing {
629 629
630#define FIT(v,vmin,vmax) max_t(short,min_t(short,v,vmax),vmin) 630#define FIT(v,vmin,vmax) max_t(short,min_t(short,v,vmax),vmin)
631 631
632extern const unsigned long sata_deb_timing_boot[]; 632extern const unsigned long sata_deb_timing_normal[];
633extern const unsigned long sata_deb_timing_eh[]; 633extern const unsigned long sata_deb_timing_hotplug[];
634extern const unsigned long sata_deb_timing_before_fsrst[]; 634extern const unsigned long sata_deb_timing_long[];
635
636static inline const unsigned long *
637sata_ehc_deb_timing(struct ata_eh_context *ehc)
638{
639 if (ehc->i.flags & ATA_EHI_HOTPLUGGED)
640 return sata_deb_timing_hotplug;
641 else
642 return sata_deb_timing_normal;
643}
635 644
636extern void ata_port_probe(struct ata_port *); 645extern void ata_port_probe(struct ata_port *);
637extern void __sata_phy_reset(struct ata_port *ap); 646extern void __sata_phy_reset(struct ata_port *ap);