diff options
author | Akira Iguchi <akira2.iguchi@toshiba.co.jp> | 2007-01-26 02:27:58 -0500 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2007-02-09 17:39:38 -0500 |
commit | 246ce3b675843e0369643cceb4faeb6cf6d19a30 (patch) | |
tree | b904fe7561e5eacd260d3f175a8f0c3b257598f2 /drivers/ata/sata_promise.c | |
parent | 836250069fc0eeebe8b6aed772281535cc6e34f9 (diff) |
libata: add another IRQ calls (libata drivers)
This patch is against each libata driver.
Two IRQ calls are added in ata_port_operations.
- irq_on() is used to enable interrupts.
- irq_ack() is used to acknowledge a device interrupt.
In most drivers, ata_irq_on() and ata_irq_ack() are used for
irq_on and irq_ack respectively.
In some drivers (ex: ahci, sata_sil24) which cannot use them
as is, ata_dummy_irq_on() and ata_dummy_irq_ack() are used.
Signed-off-by: Kou Ishizaki <kou.ishizaki@toshiba.co.jp>
Signed-off-by: Akira Iguchi <akira2.iguchi@toshiba.co.jp>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/ata/sata_promise.c')
-rw-r--r-- | drivers/ata/sata_promise.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/ata/sata_promise.c b/drivers/ata/sata_promise.c index 4fb47cad8229..3be4cc338d7b 100644 --- a/drivers/ata/sata_promise.c +++ b/drivers/ata/sata_promise.c | |||
@@ -172,6 +172,8 @@ static const struct ata_port_operations pdc_sata_ops = { | |||
172 | .data_xfer = ata_data_xfer, | 172 | .data_xfer = ata_data_xfer, |
173 | .irq_handler = pdc_interrupt, | 173 | .irq_handler = pdc_interrupt, |
174 | .irq_clear = pdc_irq_clear, | 174 | .irq_clear = pdc_irq_clear, |
175 | .irq_on = ata_irq_on, | ||
176 | .irq_ack = ata_irq_ack, | ||
175 | 177 | ||
176 | .scr_read = pdc_sata_scr_read, | 178 | .scr_read = pdc_sata_scr_read, |
177 | .scr_write = pdc_sata_scr_write, | 179 | .scr_write = pdc_sata_scr_write, |
@@ -197,6 +199,8 @@ static const struct ata_port_operations pdc_old_sata_ops = { | |||
197 | .data_xfer = ata_data_xfer, | 199 | .data_xfer = ata_data_xfer, |
198 | .irq_handler = pdc_interrupt, | 200 | .irq_handler = pdc_interrupt, |
199 | .irq_clear = pdc_irq_clear, | 201 | .irq_clear = pdc_irq_clear, |
202 | .irq_on = ata_irq_on, | ||
203 | .irq_ack = ata_irq_ack, | ||
200 | 204 | ||
201 | .scr_read = pdc_sata_scr_read, | 205 | .scr_read = pdc_sata_scr_read, |
202 | .scr_write = pdc_sata_scr_write, | 206 | .scr_write = pdc_sata_scr_write, |
@@ -220,6 +224,8 @@ static const struct ata_port_operations pdc_pata_ops = { | |||
220 | .eng_timeout = pdc_eng_timeout, | 224 | .eng_timeout = pdc_eng_timeout, |
221 | .irq_handler = pdc_interrupt, | 225 | .irq_handler = pdc_interrupt, |
222 | .irq_clear = pdc_irq_clear, | 226 | .irq_clear = pdc_irq_clear, |
227 | .irq_on = ata_irq_on, | ||
228 | .irq_ack = ata_irq_ack, | ||
223 | 229 | ||
224 | .port_start = pdc_port_start, | 230 | .port_start = pdc_port_start, |
225 | }; | 231 | }; |