.\" 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_TRANSLATE" "9" "09 October 2005" "" ""
.SH NAME
ata_scsi_translate \- Translate then issue SCSI command to ATA device
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
void ata_scsi_translate (struct ata_port * \fIap\fB, struct ata_device * \fIdev\fB, struct scsi_cmnd * \fIcmd\fB, void (*\fIdone\fB)
struct scsi_cmnd *, ata_xlat_func_t \fIxlat_func\fB);
\fR
.SH "ARGUMENTS"
.TP
\fB\fIap\fB\fR
ATA port to which the command is addressed
.TP
\fB\fIdev\fB\fR
ATA device to which the command is addressed
.TP
\fB\fIcmd\fB\fR
SCSI command to execute
.TP
\fB\fIdone\fB\fR
SCSI command completion function
.TP
\fB\fIxlat_func\fB\fR
Actor which translates \fIcmd\fR to an ATA taskfile
.SH "DESCRIPTION"
.PP
Our ->\fBqueuecommand\fR function has decided that the SCSI
command issued can be directly translated into an ATA
command, rather than handled internally.
.PP
This function sets up an ata_queued_cmd structure for the
SCSI command, and sends that ata_queued_cmd to the hardware.
.SH "LOCKING"
.PP
spin_lock_irqsave(host_set lock)