Provided by: linux-doc-2.6.15_2.6.15-23.39_all
ata_scsi_rw_xlat - Translate SCSI r/w command into an ATA one
unsigned int ata_scsi_rw_xlat (struct ata_queued_cmd * qc,
const u8 * scsicmd);
qc Storage for translated ATA taskfile
SCSI command to translate
Converts any of six SCSI read/write commands into the ATA counterpart,
including starting sector (LBA), sector count, and taking into account
the device’s LBA48 support.
Commands READ_6, READ_10, READ_16, WRITE_6, WRITE_10, and WRITE_16 are
Zero on success, non-zero on error.