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_sis.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_sis.c')
-rw-r--r-- | drivers/ata/pata_sis.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/ata/pata_sis.c b/drivers/ata/pata_sis.c index c82d75b96f60..560103d55b2e 100644 --- a/drivers/ata/pata_sis.c +++ b/drivers/ata/pata_sis.c | |||
@@ -607,6 +607,8 @@ static const struct ata_port_operations sis_133_ops = { | |||
607 | 607 | ||
608 | .irq_handler = ata_interrupt, | 608 | .irq_handler = ata_interrupt, |
609 | .irq_clear = ata_bmdma_irq_clear, | 609 | .irq_clear = ata_bmdma_irq_clear, |
610 | .irq_on = ata_irq_on, | ||
611 | .irq_ack = ata_irq_ack, | ||
610 | 612 | ||
611 | .port_start = ata_port_start, | 613 | .port_start = ata_port_start, |
612 | }; | 614 | }; |
@@ -638,6 +640,8 @@ static const struct ata_port_operations sis_133_early_ops = { | |||
638 | 640 | ||
639 | .irq_handler = ata_interrupt, | 641 | .irq_handler = ata_interrupt, |
640 | .irq_clear = ata_bmdma_irq_clear, | 642 | .irq_clear = ata_bmdma_irq_clear, |
643 | .irq_on = ata_irq_on, | ||
644 | .irq_ack = ata_irq_ack, | ||
641 | 645 | ||
642 | .port_start = ata_port_start, | 646 | .port_start = ata_port_start, |
643 | }; | 647 | }; |
@@ -670,6 +674,8 @@ static const struct ata_port_operations sis_100_ops = { | |||
670 | 674 | ||
671 | .irq_handler = ata_interrupt, | 675 | .irq_handler = ata_interrupt, |
672 | .irq_clear = ata_bmdma_irq_clear, | 676 | .irq_clear = ata_bmdma_irq_clear, |
677 | .irq_on = ata_irq_on, | ||
678 | .irq_ack = ata_irq_ack, | ||
673 | 679 | ||
674 | .port_start = ata_port_start, | 680 | .port_start = ata_port_start, |
675 | }; | 681 | }; |
@@ -701,6 +707,8 @@ static const struct ata_port_operations sis_66_ops = { | |||
701 | 707 | ||
702 | .irq_handler = ata_interrupt, | 708 | .irq_handler = ata_interrupt, |
703 | .irq_clear = ata_bmdma_irq_clear, | 709 | .irq_clear = ata_bmdma_irq_clear, |
710 | .irq_on = ata_irq_on, | ||
711 | .irq_ack = ata_irq_ack, | ||
704 | 712 | ||
705 | .port_start = ata_port_start, | 713 | .port_start = ata_port_start, |
706 | }; | 714 | }; |
@@ -732,6 +740,8 @@ static const struct ata_port_operations sis_old_ops = { | |||
732 | 740 | ||
733 | .irq_handler = ata_interrupt, | 741 | .irq_handler = ata_interrupt, |
734 | .irq_clear = ata_bmdma_irq_clear, | 742 | .irq_clear = ata_bmdma_irq_clear, |
743 | .irq_on = ata_irq_on, | ||
744 | .irq_ack = ata_irq_ack, | ||
735 | 745 | ||
736 | .port_start = ata_port_start, | 746 | .port_start = ata_port_start, |
737 | }; | 747 | }; |