.\" This manpage has been automatically generated by docbook2man
.\" from a DocBook document. This tool can be found at:
.\"
.\" Please send any bug reports, improvements, comments, patches,
.\" etc. to Steve Cheng .
.TH "ATA_SCSI_RW_XLAT" "9" "09 October 2005" "" ""
.SH NAME
ata_scsi_rw_xlat \- Translate SCSI r/w command into an ATA one
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
unsigned int ata_scsi_rw_xlat (struct ata_queued_cmd * \fIqc\fB, u8 * \fIscsicmd\fB);
\fR
.SH "ARGUMENTS"
.TP
\fB\fIqc\fB\fR
Storage for translated ATA taskfile
.TP
\fB\fIscsicmd\fB\fR
SCSI command to translate
.SH "DESCRIPTION"
.PP
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.
.PP
Commands READ_6, READ_10, READ_16, WRITE_6, WRITE_10, and
WRITE_16 are currently supported.
.SH "LOCKING"
.PP
spin_lock_irqsave(host_set lock)
.SH "RETURNS"
.PP
Zero on success, non-zero on error.