aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/libata.h16
1 files changed, 2 insertions, 14 deletions
diff --git a/include/linux/libata.h b/include/linux/libata.h
index 93e2b89d0c57..e57e5d08312d 100644
--- a/include/linux/libata.h
+++ b/include/linux/libata.h
@@ -1432,7 +1432,8 @@ extern void ata_sff_qc_prep(struct ata_queued_cmd *qc);
1432extern void ata_sff_dumb_qc_prep(struct ata_queued_cmd *qc); 1432extern void ata_sff_dumb_qc_prep(struct ata_queued_cmd *qc);
1433extern void ata_sff_dev_select(struct ata_port *ap, unsigned int device); 1433extern void ata_sff_dev_select(struct ata_port *ap, unsigned int device);
1434extern u8 ata_sff_check_status(struct ata_port *ap); 1434extern u8 ata_sff_check_status(struct ata_port *ap);
1435extern u8 ata_sff_altstatus(struct ata_port *ap); 1435extern void ata_sff_pause(struct ata_port *ap);
1436extern void ata_sff_dma_pause(struct ata_port *ap);
1436extern int ata_sff_busy_sleep(struct ata_port *ap, 1437extern int ata_sff_busy_sleep(struct ata_port *ap,
1437 unsigned long timeout_pat, unsigned long timeout); 1438 unsigned long timeout_pat, unsigned long timeout);
1438extern int ata_sff_wait_ready(struct ata_link *link, unsigned long deadline); 1439extern int ata_sff_wait_ready(struct ata_link *link, unsigned long deadline);
@@ -1493,19 +1494,6 @@ extern int ata_pci_sff_init_one(struct pci_dev *pdev,
1493#endif /* CONFIG_PCI */ 1494#endif /* CONFIG_PCI */
1494 1495
1495/** 1496/**
1496 * ata_sff_pause - Flush writes and pause 400 nanoseconds.
1497 * @ap: Port to wait for.
1498 *
1499 * LOCKING:
1500 * Inherited from caller.
1501 */
1502static inline void ata_sff_pause(struct ata_port *ap)
1503{
1504 ata_sff_altstatus(ap);
1505 ndelay(400);
1506}
1507
1508/**
1509 * ata_sff_busy_wait - Wait for a port status register 1497 * ata_sff_busy_wait - Wait for a port status register
1510 * @ap: Port to wait for. 1498 * @ap: Port to wait for.
1511 * @bits: bits that must be clear 1499 * @bits: bits that must be clear