]> err.no Git - linux-2.6/commit
libata: add ATAPI_* cmd types and implement atapi_cmd_type()
authorTejun Heo <htejun@gmail.com>
Wed, 5 Dec 2007 07:43:06 +0000 (16:43 +0900)
committerJeff Garzik <jeff@garzik.org>
Wed, 23 Jan 2008 10:24:14 +0000 (05:24 -0500)
commitceb0c642624f634c5b4f46b0e22df19be87a2e53
treea55adf01b6c00b4724a468a52fce03704bf5109f
parent0dc36888d4422140f9eaf50f24953ec109f750a3
libata: add ATAPI_* cmd types and implement atapi_cmd_type()

Add ATAPI command types - ATAPI_READ, WRITE, RW_BUF, READ_CD and MISC,
and implement atapi_cmd_type() which takes SCSI opcode and returns to
which class the opcode belongs.  This will be used later to improve
ATAPI handling.

Signed-off-by: Tejun Heo <htejun@gmail.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
include/linux/libata.h