sata_fsl.c (c25141062a82ae8bddced1b3ce2b57a1c0efabe0) | sata_fsl.c (4e5b6260cc9ba84ec127f948173ff7d87581f029) |
---|---|
1/* 2 * drivers/ata/sata_fsl.c 3 * 4 * Freescale 3.0Gbps SATA device driver 5 * 6 * Author: Ashish Kalra <ashish.kalra@freescale.com> 7 * Li Yang <leoli@freescale.com> 8 * --- 505 unchanged lines hidden (view full) --- 514} 515 516static void sata_fsl_qc_prep(struct ata_queued_cmd *qc) 517{ 518 struct ata_port *ap = qc->ap; 519 struct sata_fsl_port_priv *pp = ap->private_data; 520 struct sata_fsl_host_priv *host_priv = ap->host->private_data; 521 void __iomem *hcr_base = host_priv->hcr_base; | 1/* 2 * drivers/ata/sata_fsl.c 3 * 4 * Freescale 3.0Gbps SATA device driver 5 * 6 * Author: Ashish Kalra <ashish.kalra@freescale.com> 7 * Li Yang <leoli@freescale.com> 8 * --- 505 unchanged lines hidden (view full) --- 514} 515 516static void sata_fsl_qc_prep(struct ata_queued_cmd *qc) 517{ 518 struct ata_port *ap = qc->ap; 519 struct sata_fsl_port_priv *pp = ap->private_data; 520 struct sata_fsl_host_priv *host_priv = ap->host->private_data; 521 void __iomem *hcr_base = host_priv->hcr_base; |
522 unsigned int tag = sata_fsl_tag(qc->tag, hcr_base); | 522 unsigned int tag = sata_fsl_tag(qc->hw_tag, hcr_base); |
523 struct command_desc *cd; 524 u32 desc_info = CMD_DESC_RES | CMD_DESC_SNOOP_ENABLE; 525 u32 num_prde = 0; 526 u32 ttl_dwords = 0; 527 dma_addr_t cd_paddr; 528 529 cd = (struct command_desc *)pp->cmdentry + tag; 530 cd_paddr = pp->cmdentry_paddr + tag * SATA_FSL_CMD_DESC_SIZE; --- 30 unchanged lines hidden (view full) --- 561 desc_info, ttl_dwords, num_prde); 562} 563 564static unsigned int sata_fsl_qc_issue(struct ata_queued_cmd *qc) 565{ 566 struct ata_port *ap = qc->ap; 567 struct sata_fsl_host_priv *host_priv = ap->host->private_data; 568 void __iomem *hcr_base = host_priv->hcr_base; | 523 struct command_desc *cd; 524 u32 desc_info = CMD_DESC_RES | CMD_DESC_SNOOP_ENABLE; 525 u32 num_prde = 0; 526 u32 ttl_dwords = 0; 527 dma_addr_t cd_paddr; 528 529 cd = (struct command_desc *)pp->cmdentry + tag; 530 cd_paddr = pp->cmdentry_paddr + tag * SATA_FSL_CMD_DESC_SIZE; --- 30 unchanged lines hidden (view full) --- 561 desc_info, ttl_dwords, num_prde); 562} 563 564static unsigned int sata_fsl_qc_issue(struct ata_queued_cmd *qc) 565{ 566 struct ata_port *ap = qc->ap; 567 struct sata_fsl_host_priv *host_priv = ap->host->private_data; 568 void __iomem *hcr_base = host_priv->hcr_base; |
569 unsigned int tag = sata_fsl_tag(qc->tag, hcr_base); | 569 unsigned int tag = sata_fsl_tag(qc->hw_tag, hcr_base); |
570 571 VPRINTK("xx_qc_issue called,CQ=0x%x,CA=0x%x,CE=0x%x,CC=0x%x\n", 572 ioread32(CQ + hcr_base), 573 ioread32(CA + hcr_base), 574 ioread32(CE + hcr_base), ioread32(CC + hcr_base)); 575 576 iowrite32(qc->dev->link->pmp, CQPMP + hcr_base); 577 --- 12 unchanged lines hidden (view full) --- 590 return 0; 591} 592 593static bool sata_fsl_qc_fill_rtf(struct ata_queued_cmd *qc) 594{ 595 struct sata_fsl_port_priv *pp = qc->ap->private_data; 596 struct sata_fsl_host_priv *host_priv = qc->ap->host->private_data; 597 void __iomem *hcr_base = host_priv->hcr_base; | 570 571 VPRINTK("xx_qc_issue called,CQ=0x%x,CA=0x%x,CE=0x%x,CC=0x%x\n", 572 ioread32(CQ + hcr_base), 573 ioread32(CA + hcr_base), 574 ioread32(CE + hcr_base), ioread32(CC + hcr_base)); 575 576 iowrite32(qc->dev->link->pmp, CQPMP + hcr_base); 577 --- 12 unchanged lines hidden (view full) --- 590 return 0; 591} 592 593static bool sata_fsl_qc_fill_rtf(struct ata_queued_cmd *qc) 594{ 595 struct sata_fsl_port_priv *pp = qc->ap->private_data; 596 struct sata_fsl_host_priv *host_priv = qc->ap->host->private_data; 597 void __iomem *hcr_base = host_priv->hcr_base; |
598 unsigned int tag = sata_fsl_tag(qc->tag, hcr_base); | 598 unsigned int tag = sata_fsl_tag(qc->hw_tag, hcr_base); |
599 struct command_desc *cd; 600 601 cd = pp->cmdentry + tag; 602 603 ata_tf_from_fis(cd->sfis, &qc->result_tf); 604 return true; 605} 606 --- 1037 unchanged lines hidden --- | 599 struct command_desc *cd; 600 601 cd = pp->cmdentry + tag; 602 603 ata_tf_from_fis(cd->sfis, &qc->result_tf); 604 return true; 605} 606 --- 1037 unchanged lines hidden --- |