libata atapi work #3
PATCH 1/1 libata atapi work #3
# This is a BitKeeper generated diff -Nru style patch. #
# ChangeSet
# 2004/05/13 21:26:59-04:00 [email protected]
# [libata] more ATAPI work - translate SCSI CDB to ATA PACKET
#
# Now that we can specify ATAPI as a taskfile protocol, we can utilize # the existing SCSI->ATA translation infrastructure to build an ATA # PACKET command quickly and easily.
#
drivers/scsi/libata-core.c +0 -14
@@ -2794,20 +2794,6 @@return timeout; } -void atapi_start (struct ata_queued_cmd *qc) -{ -struct ata_port *ap = qc->ap; - - qc->flags |=ATA_QCFLAG_ACTIVE ; - ap->active_tag = qc->tag; - -ata_dev_select (ap, qc->dev->devno,1 ,0 ); -ata_tf_to_host_nolock (ap, &qc->tf); -queue_work (ata_wq, &ap->packet_task); - -VPRINTK ("EXIT\n" ); -} -/** * atapi_packet_task - Write CDB bytes to hardware * @_data: Port to which ATAPI device is attached.
drivers/scsi/libata-scsi.c +16 -46
93 lines not on this page · raw message
drivers/scsi/libata.h +0 -1
@@ -44,7 +44,6 @@extern void ata_dev_select (struct ata_port *ap,unsigned int device,unsigned int wait,unsigned int can_sleep);extern void ata_tf_to_host_nolock (struct ata_port *ap,struct ata_taskfile *tf); -extern void atapi_start (struct ata_queued_cmd *qc);/* libata-scsi.c */