Provided by: linux-doc-2.6.15_2.6.15-23.39_all
ata_scsi_find_dev - lookup ata_device from scsi_cmnd
struct ata_device * ata_scsi_find_dev (struct ata_port * ap,
const struct scsi_device * scsidev);
ap ATA port to which the device is attached
SCSI device from which we derive the ATA device
Given various information provided in struct scsi_cmnd, map that onto
an ATA bus, and using that mapping determine which ata_device is
associated with the SCSI command to be sent.
Associated ATA device, or NULL if not found.