aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ata/sata_nv.c
diff options
context:
space:
mode:
authorAkira Iguchi <akira2.iguchi@toshiba.co.jp>2007-01-26 02:27:58 -0500
committerJeff Garzik <jeff@garzik.org>2007-02-09 17:39:38 -0500
commit246ce3b675843e0369643cceb4faeb6cf6d19a30 (patch)
treeb904fe7561e5eacd260d3f175a8f0c3b257598f2 /drivers/ata/sata_nv.c
parent836250069fc0eeebe8b6aed772281535cc6e34f9 (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_nv.c')
-rw-r--r--drivers/ata/sata_nv.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/ata/sata_nv.c b/drivers/ata/sata_nv.c
index b9ef6f5f4024..77e47b74ae96 100644
--- a/drivers/ata/sata_nv.c
+++ b/drivers/ata/sata_nv.c
@@ -362,6 +362,8 @@ static const struct ata_port_operations nv_generic_ops = {
362 .data_xfer = ata_data_xfer, 362 .data_xfer = ata_data_xfer,
363 .irq_handler = nv_generic_interrupt, 363 .irq_handler = nv_generic_interrupt,
364 .irq_clear = ata_bmdma_irq_clear, 364 .irq_clear = ata_bmdma_irq_clear,
365 .irq_on = ata_irq_on,
366 .irq_ack = ata_irq_ack,
365 .scr_read = nv_scr_read, 367 .scr_read = nv_scr_read,
366 .scr_write = nv_scr_write, 368 .scr_write = nv_scr_write,
367 .port_start = ata_port_start, 369 .port_start = ata_port_start,
@@ -387,6 +389,8 @@ static const struct ata_port_operations nv_nf2_ops = {
387 .data_xfer = ata_data_xfer, 389 .data_xfer = ata_data_xfer,
388 .irq_handler = nv_nf2_interrupt, 390 .irq_handler = nv_nf2_interrupt,
389 .irq_clear = ata_bmdma_irq_clear, 391 .irq_clear = ata_bmdma_irq_clear,
392 .irq_on = ata_irq_on,
393 .irq_ack = ata_irq_ack,
390 .scr_read = nv_scr_read, 394 .scr_read = nv_scr_read,
391 .scr_write = nv_scr_write, 395 .scr_write = nv_scr_write,
392 .port_start = ata_port_start, 396 .port_start = ata_port_start,
@@ -412,6 +416,8 @@ static const struct ata_port_operations nv_ck804_ops = {
412 .data_xfer = ata_data_xfer, 416 .data_xfer = ata_data_xfer,
413 .irq_handler = nv_ck804_interrupt, 417 .irq_handler = nv_ck804_interrupt,
414 .irq_clear = ata_bmdma_irq_clear, 418 .irq_clear = ata_bmdma_irq_clear,
419 .irq_on = ata_irq_on,
420 .irq_ack = ata_irq_ack,
415 .scr_read = nv_scr_read, 421 .scr_read = nv_scr_read,
416 .scr_write = nv_scr_write, 422 .scr_write = nv_scr_write,
417 .port_start = ata_port_start, 423 .port_start = ata_port_start,
@@ -439,6 +445,8 @@ static const struct ata_port_operations nv_adma_ops = {
439 .data_xfer = ata_data_xfer, 445 .data_xfer = ata_data_xfer,
440 .irq_handler = nv_adma_interrupt, 446 .irq_handler = nv_adma_interrupt,
441 .irq_clear = nv_adma_irq_clear, 447 .irq_clear = nv_adma_irq_clear,
448 .irq_on = ata_irq_on,
449 .irq_ack = ata_irq_ack,
442 .scr_read = nv_scr_read, 450 .scr_read = nv_scr_read,
443 .scr_write = nv_scr_write, 451 .scr_write = nv_scr_write,
444 .port_start = nv_adma_port_start, 452 .port_start = nv_adma_port_start,