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/pata_ali.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/pata_ali.c')
-rw-r--r-- | drivers/ata/pata_ali.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/ata/pata_ali.c b/drivers/ata/pata_ali.c index dffa1f539fc9..ab44d18850f6 100644 --- a/drivers/ata/pata_ali.c +++ b/drivers/ata/pata_ali.c | |||
@@ -374,6 +374,8 @@ static struct ata_port_operations ali_early_port_ops = { | |||
374 | 374 | ||
375 | .irq_handler = ata_interrupt, | 375 | .irq_handler = ata_interrupt, |
376 | .irq_clear = ata_bmdma_irq_clear, | 376 | .irq_clear = ata_bmdma_irq_clear, |
377 | .irq_on = ata_irq_on, | ||
378 | .irq_ack = ata_irq_ack, | ||
377 | 379 | ||
378 | .port_start = ata_port_start, | 380 | .port_start = ata_port_start, |
379 | }; | 381 | }; |
@@ -413,6 +415,8 @@ static struct ata_port_operations ali_20_port_ops = { | |||
413 | 415 | ||
414 | .irq_handler = ata_interrupt, | 416 | .irq_handler = ata_interrupt, |
415 | .irq_clear = ata_bmdma_irq_clear, | 417 | .irq_clear = ata_bmdma_irq_clear, |
418 | .irq_on = ata_irq_on, | ||
419 | .irq_ack = ata_irq_ack, | ||
416 | 420 | ||
417 | .port_start = ata_port_start, | 421 | .port_start = ata_port_start, |
418 | }; | 422 | }; |
@@ -449,6 +453,8 @@ static struct ata_port_operations ali_c2_port_ops = { | |||
449 | 453 | ||
450 | .irq_handler = ata_interrupt, | 454 | .irq_handler = ata_interrupt, |
451 | .irq_clear = ata_bmdma_irq_clear, | 455 | .irq_clear = ata_bmdma_irq_clear, |
456 | .irq_on = ata_irq_on, | ||
457 | .irq_ack = ata_irq_ack, | ||
452 | 458 | ||
453 | .port_start = ata_port_start, | 459 | .port_start = ata_port_start, |
454 | }; | 460 | }; |
@@ -484,6 +490,8 @@ static struct ata_port_operations ali_c5_port_ops = { | |||
484 | 490 | ||
485 | .irq_handler = ata_interrupt, | 491 | .irq_handler = ata_interrupt, |
486 | .irq_clear = ata_bmdma_irq_clear, | 492 | .irq_clear = ata_bmdma_irq_clear, |
493 | .irq_on = ata_irq_on, | ||
494 | .irq_ack = ata_irq_ack, | ||
487 | 495 | ||
488 | .port_start = ata_port_start, | 496 | .port_start = ata_port_start, |
489 | }; | 497 | }; |