atapi_scsi_queuecmd

Name

atapi_scsi_queuecmd --  Send CDB to ATAPI device

Synopsis

void atapi_scsi_queuecmd (struct ata_port * ap, struct ata_device * dev, struct scsi_cmnd * cmd, void (*done) (struct scsi_cmnd *));

Arguments

ap

Port to which ATAPI device is attached.

dev

Target device for CDB.

cmd

SCSI command being sent to device.

done

SCSI command completion function.

Description

Sends CDB to ATAPI device. If the Linux SCSI layer sends a non-data command, then this function handles the command directly, via polling. Otherwise, the bmdma engine is started.

LOCKING

spin_lock_irqsave(host_set lock)