.\" This documentation was generated from the book titled "libATA Developer's Guide", which is part of the Linux kernel source.
.\"
.\" Documentation by: Jeff Garzik
.\" Documentation copyright: 2003 Jeff Garzik
.\" This documentation comes with the following legal notice:
.\"
.\" The contents of this file are subject to the Open
.\" Software License version 1.1 that can be found at
.\" http://www.opensource.org/licenses/osl-1.1.txt and is included herein
.\" by reference.
.\"
.\" Alternatively, the contents of this file may be used under the terms
.\" of the GNU General Public License version 2 (the "GPL") as distributed
.\" in the kernel source COPYING file, in which case the provisions of
.\" the GPL are applicable instead of the above. If you wish to allow
.\" the use of your version of this file only under the terms of the
.\" GPL and not to allow others to use your version of this file under
.\" the OSL, indicate your decision by deleting the provisions above and
.\" replace them with the notice and other provisions required by the GPL.
.\" If you do not delete the provisions above, a recipient may use your
.\" version of this file under either the OSL or the GPL.
.\"
.\" For comments on the formatting of this manpage, please contact Michael Still
.\" 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 "ATAPI_SCSI_QUEUECMD" "9" "13 April 2004" "" ""
.SH NAME
atapi_scsi_queuecmd \- Send CDB to ATAPI device
.SH SYNOPSIS
.sp
\fB
.sp
void atapi_scsi_queuecmd (struct ata_port * \fIap\fB, struct ata_device * \fIdev\fB, struct scsi_cmnd * \fIcmd\fB, void (*\fIdone\fB)
struct scsi_cmnd *);
\fR
.SH "ARGUMENTS"
.TP
\fB\fIap\fB\fR
Port to which ATAPI device is attached.
.TP
\fB\fIdev\fB\fR
Target device for CDB.
.TP
\fB\fIcmd\fB\fR
SCSI command being sent to device.
.TP
\fB\fIdone\fB\fR
SCSI command completion function.
.SH "DESCRIPTION"
.PP
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.
.SH "LOCKING"
.PP
spin_lock_irqsave(host_set lock)
.SH "ABOUT THIS DOCUMENT"
.PP
This documentation was generated with kernel version 2.6.1.