aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ata/ahci.c
diff options
context:
space:
mode:
authorTejun Heo <htejun@gmail.com>2007-11-27 05:28:53 -0500
committerJeff Garzik <jeff@garzik.org>2008-01-23 05:24:10 -0500
commit405e66b38797875e80669eaf72d313dbb76533c3 (patch)
treea069f0bb4ae1e81a58bc8f8965a2443d25186f0d /drivers/ata/ahci.c
parentf20ded38aa54b92dd0af32578b8916d0aa2d9e05 (diff)
libata: implement protocol tests
Implement protocol tests - ata_is_atapi(), ata_is_nodata(), ata_is_pio(), ata_is_dma(), ata_is_ncq() and ata_is_data() and use them to replace is_atapi_taskfile() and hard coded protocol tests. Signed-off-by: Tejun Heo <htejun@gmail.com> Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/ata/ahci.c')
-rw-r--r--drivers/ata/ahci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ata/ahci.c b/drivers/ata/ahci.c
index ef5e6b6e6e69..5eee91c73c90 100644
--- a/drivers/ata/ahci.c
+++ b/drivers/ata/ahci.c
@@ -1511,7 +1511,7 @@ static void ahci_qc_prep(struct ata_queued_cmd *qc)
1511{ 1511{
1512 struct ata_port *ap = qc->ap; 1512 struct ata_port *ap = qc->ap;
1513 struct ahci_port_priv *pp = ap->private_data; 1513 struct ahci_port_priv *pp = ap->private_data;
1514 int is_atapi = is_atapi_taskfile(&qc->tf); 1514 int is_atapi = ata_is_atapi(qc->tf.protocol);
1515 void *cmd_tbl; 1515 void *cmd_tbl;
1516 u32 opts; 1516 u32 opts;
1517 const u32 cmd_fis_len = 5; /* five dwords */ 1517 const u32 cmd_fis_len = 5; /* five dwords */