aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ata/sata_nv.c
diff options
context:
space:
mode:
authorTejun Heo <htejun@gmail.com>2008-04-07 09:47:16 -0400
committerJeff Garzik <jgarzik@redhat.com>2008-04-17 15:44:22 -0400
commit5682ed33aae05d10a25c95633ef9d9c062825888 (patch)
tree1632d4d70f4fd2dc25596a5cde1183f70f162ac3 /drivers/ata/sata_nv.c
parent9363c3825ea9ad76561eb48a395349dd29211ed6 (diff)
libata: rename SFF port ops
Add sff_ prefix to SFF specific port ops. This rename is in preparation of separating SFF support out of libata core layer. This patch strictly renames ops and doesn't introduce any behavior difference. Signed-off-by: Tejun Heo <htejun@gmail.com>
Diffstat (limited to 'drivers/ata/sata_nv.c')
-rw-r--r--drivers/ata/sata_nv.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/drivers/ata/sata_nv.c b/drivers/ata/sata_nv.c
index 63cc43765f04..109b07495721 100644
--- a/drivers/ata/sata_nv.c
+++ b/drivers/ata/sata_nv.c
@@ -429,11 +429,11 @@ static struct ata_port_operations nv_adma_ops = {
429 .inherits = &nv_generic_ops, 429 .inherits = &nv_generic_ops,
430 430
431 .check_atapi_dma = nv_adma_check_atapi_dma, 431 .check_atapi_dma = nv_adma_check_atapi_dma,
432 .tf_read = nv_adma_tf_read, 432 .sff_tf_read = nv_adma_tf_read,
433 .qc_defer = ata_std_qc_defer, 433 .qc_defer = ata_std_qc_defer,
434 .qc_prep = nv_adma_qc_prep, 434 .qc_prep = nv_adma_qc_prep,
435 .qc_issue = nv_adma_qc_issue, 435 .qc_issue = nv_adma_qc_issue,
436 .irq_clear = nv_adma_irq_clear, 436 .sff_irq_clear = nv_adma_irq_clear,
437 437
438 .freeze = nv_adma_freeze, 438 .freeze = nv_adma_freeze,
439 .thaw = nv_adma_thaw, 439 .thaw = nv_adma_thaw,
@@ -1440,7 +1440,7 @@ static irqreturn_t nv_generic_interrupt(int irq, void *dev_instance)
1440 else 1440 else
1441 // No request pending? Clear interrupt status 1441 // No request pending? Clear interrupt status
1442 // anyway, in case there's one pending. 1442 // anyway, in case there's one pending.
1443 ap->ops->check_status(ap); 1443 ap->ops->sff_check_status(ap);
1444 } 1444 }
1445 1445
1446 } 1446 }
@@ -1739,7 +1739,7 @@ static void nv_swncq_ncq_stop(struct ata_port *ap)
1739 pp->dhfis_bits, pp->dmafis_bits, pp->sdbfis_bits); 1739 pp->dhfis_bits, pp->dmafis_bits, pp->sdbfis_bits);
1740 1740
1741 ata_port_printk(ap, KERN_ERR, "ATA_REG 0x%X ERR_REG 0x%X\n", 1741 ata_port_printk(ap, KERN_ERR, "ATA_REG 0x%X ERR_REG 0x%X\n",
1742 ap->ops->check_status(ap), 1742 ap->ops->sff_check_status(ap),
1743 ioread8(ap->ioaddr.error_addr)); 1743 ioread8(ap->ioaddr.error_addr));
1744 1744
1745 sactive = readl(pp->sactive_block); 1745 sactive = readl(pp->sactive_block);
@@ -1765,7 +1765,7 @@ static void nv_swncq_ncq_stop(struct ata_port *ap)
1765 } 1765 }
1766 1766
1767 nv_swncq_pp_reinit(ap); 1767 nv_swncq_pp_reinit(ap);
1768 ap->ops->irq_clear(ap); 1768 ap->ops->sff_irq_clear(ap);
1769 __ata_bmdma_stop(ap); 1769 __ata_bmdma_stop(ap);
1770 nv_swncq_irq_clear(ap, 0xffff); 1770 nv_swncq_irq_clear(ap, 0xffff);
1771} 1771}
@@ -1987,8 +1987,8 @@ static unsigned int nv_swncq_issue_atacmd(struct ata_port *ap,
1987 pp->dmafis_bits &= ~(1 << qc->tag); 1987 pp->dmafis_bits &= ~(1 << qc->tag);
1988 pp->qc_active |= (0x1 << qc->tag); 1988 pp->qc_active |= (0x1 << qc->tag);
1989 1989
1990 ap->ops->tf_load(ap, &qc->tf); /* load tf registers */ 1990 ap->ops->sff_tf_load(ap, &qc->tf); /* load tf registers */
1991 ap->ops->exec_command(ap, &qc->tf); 1991 ap->ops->sff_exec_command(ap, &qc->tf);
1992 1992
1993 DPRINTK("Issued tag %u\n", qc->tag); 1993 DPRINTK("Issued tag %u\n", qc->tag);
1994 1994
@@ -2060,7 +2060,7 @@ static int nv_swncq_sdbfis(struct ata_port *ap)
2060 return -EINVAL; 2060 return -EINVAL;
2061 } 2061 }
2062 2062
2063 ap->ops->irq_clear(ap); 2063 ap->ops->sff_irq_clear(ap);
2064 __ata_bmdma_stop(ap); 2064 __ata_bmdma_stop(ap);
2065 2065
2066 sactive = readl(pp->sactive_block); 2066 sactive = readl(pp->sactive_block);
@@ -2182,7 +2182,7 @@ static void nv_swncq_host_interrupt(struct ata_port *ap, u16 fis)
2182 u8 ata_stat; 2182 u8 ata_stat;
2183 int rc = 0; 2183 int rc = 0;
2184 2184
2185 ata_stat = ap->ops->check_status(ap); 2185 ata_stat = ap->ops->sff_check_status(ap);
2186 nv_swncq_irq_clear(ap, fis); 2186 nv_swncq_irq_clear(ap, fis);
2187 if (!fis) 2187 if (!fis)
2188 return; 2188 return;
@@ -2245,7 +2245,7 @@ static void nv_swncq_host_interrupt(struct ata_port *ap, u16 fis)
2245 2245
2246 if (!(fis & NV_SWNCQ_IRQ_DMASETUP) && 2246 if (!(fis & NV_SWNCQ_IRQ_DMASETUP) &&
2247 !(pp->ncq_flags & ncq_saw_dmas)) { 2247 !(pp->ncq_flags & ncq_saw_dmas)) {
2248 ata_stat = ap->ops->check_status(ap); 2248 ata_stat = ap->ops->sff_check_status(ap);
2249 if (ata_stat & ATA_BUSY) 2249 if (ata_stat & ATA_BUSY)
2250 goto irq_exit; 2250 goto irq_exit;
2251 2251