aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/libata.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/libata.h')
-rw-r--r--include/linux/libata.h31
1 files changed, 0 insertions, 31 deletions
diff --git a/include/linux/libata.h b/include/linux/libata.h
index 6c003d852a88..d3bf7b936c3f 100644
--- a/include/linux/libata.h
+++ b/include/linux/libata.h
@@ -1150,37 +1150,6 @@ static inline void ata_qc_reinit(struct ata_queued_cmd *qc)
1150} 1150}
1151 1151
1152/** 1152/**
1153 * ata_irq_on - Enable interrupts on a port.
1154 * @ap: Port on which interrupts are enabled.
1155 *
1156 * Enable interrupts on a legacy IDE device using MMIO or PIO,
1157 * wait for idle, clear any pending interrupts.
1158 *
1159 * LOCKING:
1160 * Inherited from caller.
1161 */
1162
1163static inline u8 ata_irq_on(struct ata_port *ap)
1164{
1165 struct ata_ioports *ioaddr = &ap->ioaddr;
1166 u8 tmp;
1167
1168 ap->ctl &= ~ATA_NIEN;
1169 ap->last_ctl = ap->ctl;
1170
1171 if (ap->flags & ATA_FLAG_MMIO)
1172 writeb(ap->ctl, (void __iomem *) ioaddr->ctl_addr);
1173 else
1174 outb(ap->ctl, ioaddr->ctl_addr);
1175 tmp = ata_wait_idle(ap);
1176
1177 ap->ops->irq_clear(ap);
1178
1179 return tmp;
1180}
1181
1182
1183/**
1184 * ata_irq_ack - Acknowledge a device interrupt. 1153 * ata_irq_ack - Acknowledge a device interrupt.
1185 * @ap: Port on which interrupts are enabled. 1154 * @ap: Port on which interrupts are enabled.
1186 * 1155 *