scsi_data.c revision 7c478bd95313f5f23a4c958a745db2134aa03244
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2003 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
/*
* Global SCSI data
*/
"No Additional Sense", /* 0x00 */
"Soft Error", /* 0x01 */
"Not Ready", /* 0x02 */
"Media Error", /* 0x03 */
"Hardware Error", /* 0x04 */
"Illegal Request", /* 0x05 */
"Unit Attention", /* 0x06 */
"Write Protected", /* 0x07 */
"Blank Check", /* 0x08 */
"Vendor Unique", /* 0x09 */
"Copy Aborted", /* 0x0a */
"Aborted Command", /* 0x0b */
"Equal Error", /* 0x0c */
"Volume Overflow", /* 0x0d */
"Miscompare Error", /* 0x0e */
"Reserved", /* 0x0f */
"fatal", /* 0x10 */
"timeout", /* 0x11 */
"EOF", /* 0x12 */
"EOT", /* 0x13 */
"length error", /* 0x14 */
"BOT", /* 0x15 */
"wrong tape media" /* 0x16 */
};
char *scsi_state_bits = "\20\05STS\04XFER\03CMD\02SEL\01ARB";
/*
* This structure is used to allow you to quickly determine the size of the
* cdb by examining the cmd code. It is used in conjunction with the
* CDB_GROUPID macro. Lookup returns size of cdb. If unknown, zero returned.
*/
uchar_t scsi_cdb_size[] = {
CDB_GROUP0, /* Group 0, 6 byte cdb */
CDB_GROUP1, /* Group 1, 10 byte cdb */
CDB_GROUP2, /* Group 2, 10 byte cdb */
CDB_GROUP3, /* Group 3, reserved */
CDB_GROUP4, /* Group 4, 16 byte cdb */
CDB_GROUP5, /* Group 5, 12 byte cdb */
CDB_GROUP6, /* Group 6, ? byte cdb (vendor specific) */
CDB_GROUP7 /* Group 7, ? byte cdb (vendor specific) */
};
/*
* Basic SCSI command description strings that can be used by drivers
* to pass to scsi_errmsg().
*/
struct scsi_key_strings scsi_cmds[] = {
-1, NULL
};