acard-ahci.c (c25141062a82ae8bddced1b3ce2b57a1c0efabe0) | acard-ahci.c (4e5b6260cc9ba84ec127f948173ff7d87581f029) |
---|---|
1 2/* 3 * acard-ahci.c - ACard AHCI SATA support 4 * 5 * Maintained by: Tejun Heo <tj@kernel.org> 6 * Please ALWAYS copy linux-ide@vger.kernel.org 7 * on emails. 8 * --- 257 unchanged lines hidden (view full) --- 266 u32 opts; 267 const u32 cmd_fis_len = 5; /* five dwords */ 268 unsigned int n_elem; 269 270 /* 271 * Fill in command table information. First, the header, 272 * a SATA Register - Host to Device command FIS. 273 */ | 1 2/* 3 * acard-ahci.c - ACard AHCI SATA support 4 * 5 * Maintained by: Tejun Heo <tj@kernel.org> 6 * Please ALWAYS copy linux-ide@vger.kernel.org 7 * on emails. 8 * --- 257 unchanged lines hidden (view full) --- 266 u32 opts; 267 const u32 cmd_fis_len = 5; /* five dwords */ 268 unsigned int n_elem; 269 270 /* 271 * Fill in command table information. First, the header, 272 * a SATA Register - Host to Device command FIS. 273 */ |
274 cmd_tbl = pp->cmd_tbl + qc->tag * AHCI_CMD_TBL_SZ; | 274 cmd_tbl = pp->cmd_tbl + qc->hw_tag * AHCI_CMD_TBL_SZ; |
275 276 ata_tf_to_fis(&qc->tf, qc->dev->link->pmp, 1, cmd_tbl); 277 if (is_atapi) { 278 memset(cmd_tbl + AHCI_CMD_TBL_CDB, 0, 32); 279 memcpy(cmd_tbl + AHCI_CMD_TBL_CDB, qc->cdb, qc->dev->cdb_len); 280 } 281 282 n_elem = 0; --- 6 unchanged lines hidden (view full) --- 289 * ACard note: prd table length not filled in 290 */ 291 opts = cmd_fis_len | (qc->dev->link->pmp << 12); 292 if (qc->tf.flags & ATA_TFLAG_WRITE) 293 opts |= AHCI_CMD_WRITE; 294 if (is_atapi) 295 opts |= AHCI_CMD_ATAPI | AHCI_CMD_PREFETCH; 296 | 275 276 ata_tf_to_fis(&qc->tf, qc->dev->link->pmp, 1, cmd_tbl); 277 if (is_atapi) { 278 memset(cmd_tbl + AHCI_CMD_TBL_CDB, 0, 32); 279 memcpy(cmd_tbl + AHCI_CMD_TBL_CDB, qc->cdb, qc->dev->cdb_len); 280 } 281 282 n_elem = 0; --- 6 unchanged lines hidden (view full) --- 289 * ACard note: prd table length not filled in 290 */ 291 opts = cmd_fis_len | (qc->dev->link->pmp << 12); 292 if (qc->tf.flags & ATA_TFLAG_WRITE) 293 opts |= AHCI_CMD_WRITE; 294 if (is_atapi) 295 opts |= AHCI_CMD_ATAPI | AHCI_CMD_PREFETCH; 296 |
297 ahci_fill_cmd_slot(pp, qc->tag, opts); | 297 ahci_fill_cmd_slot(pp, qc->hw_tag, opts); |
298} 299 300static bool acard_ahci_qc_fill_rtf(struct ata_queued_cmd *qc) 301{ 302 struct ahci_port_priv *pp = qc->ap->private_data; 303 u8 *rx_fis = pp->rx_fis; 304 305 if (pp->fbs_enabled) --- 207 unchanged lines hidden --- | 298} 299 300static bool acard_ahci_qc_fill_rtf(struct ata_queued_cmd *qc) 301{ 302 struct ahci_port_priv *pp = qc->ap->private_data; 303 u8 *rx_fis = pp->rx_fis; 304 305 if (pp->fbs_enabled) --- 207 unchanged lines hidden --- |