usr/src/uts/common/sys/scsi/generic/commands.h
author cth
Fri, 15 Jul 2005 09:16:33 -0700
changeset 173 1711d947ee87
parent 0 68f95e015346
child 447 179ca23cfde4
permissions -rw-r--r--
6228435 Undecoded command in var/adm/messages - Error for Command: undecoded cmd 0x5a
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
     1
/*
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
     2
 * CDDL HEADER START
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
     3
 *
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
     4
 * The contents of this file are subject to the terms of the
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
     5
 * Common Development and Distribution License, Version 1.0 only
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
     6
 * (the "License").  You may not use this file except in compliance
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
     7
 * with the License.
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
     8
 *
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
     9
 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    10
 * or http://www.opensolaris.org/os/licensing.
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    11
 * See the License for the specific language governing permissions
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    12
 * and limitations under the License.
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    13
 *
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    14
 * When distributing Covered Code, include this CDDL HEADER in each
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    15
 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    16
 * If applicable, add the following below this CDDL HEADER, with the
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    17
 * fields enclosed by brackets "[]" replaced with your own identifying
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    18
 * information: Portions Copyright [yyyy] [name of copyright owner]
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    19
 *
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    20
 * CDDL HEADER END
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    21
 */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    22
/*
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    23
 * Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    24
 * Use is subject to license terms.
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    25
 */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    26
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    27
#ifndef	_SYS_SCSI_GENERIC_COMMANDS_H
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    28
#define	_SYS_SCSI_GENERIC_COMMANDS_H
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    29
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    30
#pragma ident	"%Z%%M%	%I%	%E% SMI"
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    31
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    32
#ifdef	__cplusplus
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    33
extern "C" {
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    34
#endif
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    35
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    36
/*
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    37
 * Standard SCSI Command Definitions
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    38
 *
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    39
 * Macros to determine known command sizes
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    40
 */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    41
#define	CDB_GROUPID(cmd)	((cmd >> 5) & 0x7)
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    42
#define	CDB_GROUPID_0	0
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    43
#define	CDB_GROUPID_1	1
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    44
#define	CDB_GROUPID_2	2
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    45
#define	CDB_GROUPID_3	3
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    46
#define	CDB_GROUPID_4	4
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    47
#define	CDB_GROUPID_5	5
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    48
#define	CDB_GROUPID_6	6
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    49
#define	CDB_GROUPID_7	7
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    50
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    51
#define	CDB_GROUP0	6	/*  6-byte cdb's */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    52
#define	CDB_GROUP1	10	/* 10-byte cdb's */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    53
#define	CDB_GROUP2	10	/* 10-byte cdb's */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    54
#define	CDB_GROUP3	0	/* reserved */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    55
#define	CDB_GROUP4	16	/* 16-byte cdb's */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    56
#define	CDB_GROUP5	12	/* 12-byte cdb's */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    57
#define	CDB_GROUP6	0	/* reserved */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    58
#define	CDB_GROUP7	0	/* reserved */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    59
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    60
/*
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    61
 * Generic Command Definitions
173
1711d947ee87 6228435 Undecoded command in var/adm/messages - Error for Command: undecoded cmd 0x5a
cth
parents: 0
diff changeset
    62
 * NOTE: CDROM commands are defined in cdio.h
0
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    63
 */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    64
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    65
/*
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    66
 * Group 0 Commands (CDB range 0x00 - 0x1F)
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    67
 */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    68
#define	SCMD_GROUP0		0x00
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    69
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    70
/*
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    71
 * Group 0 commands, All Devices
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    72
 */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    73
#define	SCMD_TEST_UNIT_READY	0x00
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    74
#define	SCMD_REQUEST_SENSE	0x03
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    75
#define	SCMD_INQUIRY		0x12
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    76
#define	SCMD_COPY		0x18
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    77
#define	SCMD_GDIAG		0x1C	/* receive diagnostic results */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    78
#define	SCMD_SDIAG		0x1D	/* send diagnostic results */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    79
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    80
/*
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    81
 * Group 0 commands, Direct Access Devices
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    82
 */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    83
/*	SCMD_TEST_UNIT_READY	0x00	*/
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    84
#define	SCMD_REZERO_UNIT	0x01
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    85
/*	SCMD_REQUEST_SENSE	0x03	*/
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    86
#define	SCMD_FORMAT		0x04
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    87
#define	SCMD_REASSIGN_BLOCK	0x07
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    88
#define	SCMD_READ		0x08
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    89
#define	SCMD_WRITE		0x0a
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    90
#define	SCMD_SEEK		0x0b
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    91
/*	SCMD_INQUIRY		0x12	*/
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    92
#define	SCMD_MODE_SELECT	0x15
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    93
#define	SCMD_RESERVE		0x16
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    94
#define	SCMD_RELEASE		0x17
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    95
/*	SCMD_COPY		0x18	*/
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    96
#define	SCMD_MODE_SENSE		0x1a
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    97
#define	SCMD_START_STOP		0x1b
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    98
/*	SCMD_GDIAG		0x1C	*/
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
    99
/*	SCMD_SDIAG		0x1D	*/
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   100
#define	SCMD_DOORLOCK		0x1E	/* Prevent/Allow Medium Removal */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   101
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   102
/*
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   103
 * Group 0 commands, Sequential Access Devices
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   104
 */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   105
/*	SCMD_TEST_UNIT_READY	0x00	*/
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   106
#define	SCMD_REWIND		0x01	/* Note similarity to SCMD_REZERO */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   107
/*	SCMD_REQUEST_SENSE	0x03	*/
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   108
#define	SCMD_READ_BLKLIM	0x05
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   109
/*	SCMD_READ		0x08	*/
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   110
/*	SCMD_WRITE		0x0a	*/
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   111
#define	SCMD_TRK_SEL		0x0b	/* Note similarity to SCMD_SEEK */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   112
#define	SCMD_READ_REVERSE	0x0f
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   113
#define	SCMD_WRITE_FILE_MARK	0x10
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   114
#define	SCMD_SPACE		0x11
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   115
/*	SCMD_INQUIRY		0x12	*/
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   116
#define	SCMD_VERIFY_G0		0x13
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   117
#define	SCMD_RECOVER_BUF	0x14
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   118
/*	SCMD_MODE_SELECT	0x15	*/
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   119
/*	SCMD_RESERVE		0x16	*/
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   120
/*	SCMD_RELEASE		0x17	*/
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   121
/*	SCMD_COPY		0x18	*/
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   122
#define	SCMD_ERASE		0x19
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   123
/*	SCMD_MODE_SENSE		0x1a	*/
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   124
#define	SCMD_LOAD		0x1b	/* Note similarity to SCMD_START_STOP */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   125
/*	SCMD_GDIAG		0x1c	*/
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   126
/*	SCMD_SDIAG		0x1d	*/
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   127
/*	SCMD_DOORLOCK		0x1e	*/
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   128
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   129
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   130
/*
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   131
 * Group 0 commands, Printer Devices
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   132
 */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   133
/*	SCMD_TEST_UNIT_READY	0x00	*/
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   134
/*	SCMD_REQUEST_SENSE	0x03	*/
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   135
/*	SCMD_FORMAT		0x04	*/
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   136
#define	SCMD_PRINT		0x0a	/* Note similarity to SCMD_WRITE */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   137
#define	SCMD_SLEW_PRINT		0x0b	/* ? similar to SCMD_SEEK ? */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   138
#define	SCMD_FLUSH_PRINT_BUF	0x10	/* ? similar to SCMD_WRITE_FILE_MARK */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   139
/*	SCMD_INQUIRY		0x12	*/
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   140
/*	SCMD_RECOVER_BUF	0x14	*/
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   141
/*	SCMD_MODE_SELECT	0x15	*/
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   142
/*	SCMD_RESERVE		0x16	*/
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   143
/*	SCMD_RELEASE		0x17	*/
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   144
/*	SCMD_COPY		0x18	*/
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   145
/*	SCMD_MODE_SENSE		0x1a	*/
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   146
#define	SCMD_STOP_PRINT		0x1b	/* Note similarity to SCMD_START_STOP */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   147
/*	SCMD_GDIAG		0x1c	*/
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   148
/*	SCMD_SDIAG		0x1d	*/
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   149
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   150
/*
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   151
 * Group 0 commands, Processor Devices
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   152
 */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   153
/*	SCMD_TEST_UNIT_READY	0x00	*/
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   154
/*	SCMD_REQUEST_SENSE	0x03	*/
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   155
#define	SCMD_RECEIVE		0x08	/* Note similarity to SCMD_READ */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   156
#define	SCMD_SEND		0x0a	/* Note similarity to SCMD_WRITE */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   157
/*	SCMD_INQUIRY		0x12	*/
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   158
/*	SCMD_COPY		0x18	*/
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   159
/*	SCMD_MODE_SENSE		0x1a	*/
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   160
/*	SCMD_GDIAG		0x1c	*/
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   161
/*	SCMD_SDIAG		0x1d	*/
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   162
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   163
/*
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   164
 * Group 0 commands, WORM Devices
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   165
 */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   166
/*	SCMD_TEST_UNIT_READY	0x00	*/
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   167
/*	SCMD_REZERO_UNIT	0x01	*/
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   168
/*	SCMD_REQUEST_SENSE	0x03	*/
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   169
/*	SCMD_REASSIGN_BLOCK	0x07	*/
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   170
/*	SCMD_READ		0x08	*/
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   171
/*	SCMD_WRITE		0x0a	*/
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   172
/*	SCMD_SEEK		0x0b	*/
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   173
/*	SCMD_INQUIRY		0x12	*/
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   174
/*	SCMD_MODE_SELECT	0x15	*/
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   175
/*	SCMD_RESERVE		0x16	*/
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   176
/*	SCMD_RELEASE		0x17	*/
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   177
/*	SCMD_COPY		0x18	*/
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   178
/*	SCMD_MODE_SENSE		0x1a	*/
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   179
/*	SCMD_START_STOP		0x1b	*/
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   180
/*	SCMD_GDIAG		0x1C	*/
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   181
/*	SCMD_SDIAG		0x1D	*/
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   182
/*	SCMD_DOORLOCK		0x1E	*/
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   183
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   184
/*
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   185
 * Group 0 commands, Read Only Devices
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   186
 */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   187
/*	SCMD_TEST_UNIT_READY	0x00	*/
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   188
/*	SCMD_REZERO_UNIT	0x01	*/
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   189
/*	SCMD_REQUEST_SENSE	0x03	*/
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   190
/*	SCMD_REASSIGN_BLOCK	0x07	*/
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   191
/*	SCMD_READ		0x08	*/
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   192
/*	SCMD_SEEK		0x0b	*/
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   193
/*	SCMD_INQUIRY		0x12	*/
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   194
/*	SCMD_MODE_SELECT	0x15	*/
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   195
/*	SCMD_RESERVE		0x16	*/
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   196
/*	SCMD_RELEASE		0x17	*/
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   197
/*	SCMD_COPY		0x18	*/
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   198
/*	SCMD_MODE_SENSE		0x1a	*/
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   199
/*	SCMD_START_STOP		0x1b	*/
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   200
/*	SCMD_GDIAG		0x1C	*/
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   201
/*	SCMD_SDIAG		0x1D	*/
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   202
/*	SCMD_DOORLOCK		0x1E	*/
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   203
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   204
/*
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   205
 * Group 1 Commands (CDB range 0x20 - 0x3F)
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   206
 */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   207
#define	SCMD_GROUP1		0x20
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   208
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   209
/*
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   210
 * Group 1 Commands, All Devices
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   211
 */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   212
#define	SCMD_COMPARE		0x39
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   213
#define	SCMD_COPY_VERIFY	0x3A
173
1711d947ee87 6228435 Undecoded command in var/adm/messages - Error for Command: undecoded cmd 0x5a
cth
parents: 0
diff changeset
   214
#define	SCMD_PERSISTENT_RESERVE_IN		0x5E
1711d947ee87 6228435 Undecoded command in var/adm/messages - Error for Command: undecoded cmd 0x5a
cth
parents: 0
diff changeset
   215
#define	SCMD_PERSISTENT_RESERVE_OUT		0x5F
1711d947ee87 6228435 Undecoded command in var/adm/messages - Error for Command: undecoded cmd 0x5a
cth
parents: 0
diff changeset
   216
#define	SCMD_PRIN		SCMD_PERSISTENT_RESERVE_IN
1711d947ee87 6228435 Undecoded command in var/adm/messages - Error for Command: undecoded cmd 0x5a
cth
parents: 0
diff changeset
   217
#define	SCMD_PROUT		SCMD_PERSISTENT_RESERVE_OUT
0
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   218
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   219
/*
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   220
 * Group 1 Commands, Direct Access Devices
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   221
 */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   222
#define	SCMD_READ_FORMAT_CAP	0x23
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   223
#define	SCMD_READ_CAPACITY	0x25
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   224
#define	SCMD_READ_G1		0x28	/* Note that only the group changed */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   225
#define	SCMD_WRITE_G1		0x2a	/* Note that only the group changed */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   226
#define	SCMD_SEEK_G1		0x2b	/* Note that only the group changed */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   227
#define	SCMD_WRITE_VERIFY	0x2e
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   228
#define	SCMD_VERIFY		0x2f
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   229
#define	SCMD_SEARCH_HIGH	0x30
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   230
#define	SCMD_SEARCH_EQUAL	0x31
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   231
#define	SCMD_SEARCH_LOW		0x32
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   232
#define	SCMD_SET_LIMITS		0x33
173
1711d947ee87 6228435 Undecoded command in var/adm/messages - Error for Command: undecoded cmd 0x5a
cth
parents: 0
diff changeset
   233
#define	SCMD_SYNCHRONIZE_CACHE	0x35
0
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   234
#define	SCMD_READ_DEFECT_LIST	0x37
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   235
#define	SCMD_WRITE_BUFFER	0x3B
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   236
#define	SCMD_READ_BUFFER	0x3c
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   237
#define	SCMD_READ_LONG		0x3E
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   238
#define	SCMD_WRITE_LONG		0x3F
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   239
#define	SCMD_RESERVE_G1		0x56
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   240
#define	SCMD_RELEASE_G1		0x57
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   241
#define	SCMD_MODE_SELECT_G1	0x55
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   242
#define	SCMD_MODE_SENSE_G1	0x5A
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   243
#define	SCMD_GET_CONFIGURATION	0x46
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   244
#define	SCMD_LOG_SELECT_G1	0x4C
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   245
#define	SCMD_LOG_SENSE_G1	0x4d
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   246
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   247
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   248
/*
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   249
 * Group 1 Commands, Sequential Access Devices
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   250
 */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   251
#define	SCMD_LOCATE		0x2B	/* Note similarity to SCMD_SEEK_G1 */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   252
#define	SCMD_READ_POSITION	0x34
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   253
#define	SCMD_REPORT_DENSITIES	0x44
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   254
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   255
/*
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   256
 * Group 1 Commands, Printer Devices
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   257
 */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   258
/* (None Defined) */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   259
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   260
/*
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   261
 * Group 1 Commands, Processor Devices
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   262
 */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   263
/* (None Defined) */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   264
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   265
/*
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   266
 * Group 1 Commands, WORM Devices
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   267
 */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   268
/*	SCMD_READ_CAPACITY	0x25	*/
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   269
/*	SCMD_READ_G1		0x28	*/
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   270
/*	SCMD_WRITE_G1		0x2a	*/
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   271
/*	SCMD_SEEK_G1		0x2b	*/
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   272
/*	SCMD_WRITE_VERIFY	0x2e	*/
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   273
/*	SCMD_VERIFY		0x2f	*/
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   274
/*	SCMD_SEARCH_HIGH	0x30	*/
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   275
/*	SCMD_SEARCH_EQUAL	0x31	*/
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   276
/*	SCMD_SEARCH_LOW		0x32	*/
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   277
/*	SCMD_SET_LIMITS		0x33	*/
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   278
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   279
/*
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   280
 * Group 1 Commands, Read Only Devices
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   281
 */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   282
/*	SCMD_READ_CAPACITY	0x25	*/
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   283
/*	SCMD_READ_G1		0x28	*/
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   284
/*	SCMD_SEEK_G1		0x2b	*/
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   285
/*	SCMD_VERIFY		0x2f	*/
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   286
/*	SCMD_SEARCH_HIGH	0x30	*/
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   287
/*	SCMD_SEARCH_EQUAL	0x31	*/
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   288
/*	SCMD_SEARCH_LOW		0x32	*/
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   289
/*	SCMD_SET_LIMITS		0x33	*/
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   290
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   291
/*
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   292
 * Group 4 Commands, All Devices
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   293
 */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   294
#define	SCMD_GROUP4		0x80
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   295
#define	SCMD_EXTENDED_COPY	0x83
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   296
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   297
/*
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   298
 * Group 4 Commands, Direct Access Devices
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   299
 */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   300
#define	SCMD_READ_G4		0x88
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   301
#define	SCMD_WRITE_G4		0x8a
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   302
#define	SCMD_SVC_ACTION_IN_G4	0x9e
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   303
#define	SCMD_SVC_ACTION_OUT_G4	0x9f
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   304
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   305
/*
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   306
 * Group 4 Service Actions for Service Action In (16)
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   307
 */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   308
#define	SSVC_ACTION_READ_CAPACITY_G4	0x10
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   309
#define	SSVC_ACTION_READ_LONG_G4	0x11
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   310
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   311
/*
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   312
 * Group 4 Service Actions for Service Action Out (16)
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   313
 */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   314
#define	SSVC_ACTION_WRITE_LONG_G4	0x11
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   315
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   316
/*
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   317
 * Define for Group 5 command.
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   318
 */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   319
#define	SCMD_GROUP5		0xA0
173
1711d947ee87 6228435 Undecoded command in var/adm/messages - Error for Command: undecoded cmd 0x5a
cth
parents: 0
diff changeset
   320
#define	SCMD_REPORT_LUNS	0xA0
0
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   321
#define	SCMD_READ_G5		0xA8
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   322
#define	SCMD_WRITE_G5		0xAA
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   323
#define	SCMD_GET_PERFORMANCE	0xAC
173
1711d947ee87 6228435 Undecoded command in var/adm/messages - Error for Command: undecoded cmd 0x5a
cth
parents: 0
diff changeset
   324
1711d947ee87 6228435 Undecoded command in var/adm/messages - Error for Command: undecoded cmd 0x5a
cth
parents: 0
diff changeset
   325
0
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   326
173
1711d947ee87 6228435 Undecoded command in var/adm/messages - Error for Command: undecoded cmd 0x5a
cth
parents: 0
diff changeset
   327
/*
1711d947ee87 6228435 Undecoded command in var/adm/messages - Error for Command: undecoded cmd 0x5a
cth
parents: 0
diff changeset
   328
 * scsi_key_strings for SCMD_ definitions
1711d947ee87 6228435 Undecoded command in var/adm/messages - Error for Command: undecoded cmd 0x5a
cth
parents: 0
diff changeset
   329
 *	NOTE: see SCSI_CMDS_KEY_STRINGS_CDIO in cdio.h for additional
1711d947ee87 6228435 Undecoded command in var/adm/messages - Error for Command: undecoded cmd 0x5a
cth
parents: 0
diff changeset
   330
 *	command-to-string translations.
1711d947ee87 6228435 Undecoded command in var/adm/messages - Error for Command: undecoded cmd 0x5a
cth
parents: 0
diff changeset
   331
 */
1711d947ee87 6228435 Undecoded command in var/adm/messages - Error for Command: undecoded cmd 0x5a
cth
parents: 0
diff changeset
   332
#define	SCSI_CMDS_KEY_STRINGS						\
1711d947ee87 6228435 Undecoded command in var/adm/messages - Error for Command: undecoded cmd 0x5a
cth
parents: 0
diff changeset
   333
/* 0x00 */ SCMD_TEST_UNIT_READY,	"test_unit_ready",		\
1711d947ee87 6228435 Undecoded command in var/adm/messages - Error for Command: undecoded cmd 0x5a
cth
parents: 0
diff changeset
   334
/* 0x01 */ SCMD_REWIND |						\
1711d947ee87 6228435 Undecoded command in var/adm/messages - Error for Command: undecoded cmd 0x5a
cth
parents: 0
diff changeset
   335
		SCMD_REZERO_UNIT,	"rezero/rewind",		\
1711d947ee87 6228435 Undecoded command in var/adm/messages - Error for Command: undecoded cmd 0x5a
cth
parents: 0
diff changeset
   336
/* 0x03 */ SCMD_REQUEST_SENSE,		"request_sense",		\
1711d947ee87 6228435 Undecoded command in var/adm/messages - Error for Command: undecoded cmd 0x5a
cth
parents: 0
diff changeset
   337
/* 0x04 */ SCMD_FORMAT,			"format",			\
1711d947ee87 6228435 Undecoded command in var/adm/messages - Error for Command: undecoded cmd 0x5a
cth
parents: 0
diff changeset
   338
/* 0x05 */ SCMD_READ_BLKLIM,		"read_block_limits",		\
1711d947ee87 6228435 Undecoded command in var/adm/messages - Error for Command: undecoded cmd 0x5a
cth
parents: 0
diff changeset
   339
/* 0x07 */ SCMD_REASSIGN_BLOCK,		"reassign",			\
1711d947ee87 6228435 Undecoded command in var/adm/messages - Error for Command: undecoded cmd 0x5a
cth
parents: 0
diff changeset
   340
/* 0x08 */ SCMD_READ |							\
1711d947ee87 6228435 Undecoded command in var/adm/messages - Error for Command: undecoded cmd 0x5a
cth
parents: 0
diff changeset
   341
		SCMD_RECEIVE,		"read",				\
1711d947ee87 6228435 Undecoded command in var/adm/messages - Error for Command: undecoded cmd 0x5a
cth
parents: 0
diff changeset
   342
/* 0x0a */ SCMD_PRINT |							\
1711d947ee87 6228435 Undecoded command in var/adm/messages - Error for Command: undecoded cmd 0x5a
cth
parents: 0
diff changeset
   343
		SCMD_SEND |						\
1711d947ee87 6228435 Undecoded command in var/adm/messages - Error for Command: undecoded cmd 0x5a
cth
parents: 0
diff changeset
   344
		SCMD_WRITE,		"write",			\
1711d947ee87 6228435 Undecoded command in var/adm/messages - Error for Command: undecoded cmd 0x5a
cth
parents: 0
diff changeset
   345
/* 0x0b */ SCMD_SEEK |							\
1711d947ee87 6228435 Undecoded command in var/adm/messages - Error for Command: undecoded cmd 0x5a
cth
parents: 0
diff changeset
   346
		SCMD_SLEW_PRINT |					\
1711d947ee87 6228435 Undecoded command in var/adm/messages - Error for Command: undecoded cmd 0x5a
cth
parents: 0
diff changeset
   347
		SCMD_TRK_SEL,		"seek",				\
1711d947ee87 6228435 Undecoded command in var/adm/messages - Error for Command: undecoded cmd 0x5a
cth
parents: 0
diff changeset
   348
/* 0x0f */ SCMD_READ_REVERSE,		"read_reverse",			\
1711d947ee87 6228435 Undecoded command in var/adm/messages - Error for Command: undecoded cmd 0x5a
cth
parents: 0
diff changeset
   349
/* 0x10 */ SCMD_WRITE_FILE_MARK |					\
1711d947ee87 6228435 Undecoded command in var/adm/messages - Error for Command: undecoded cmd 0x5a
cth
parents: 0
diff changeset
   350
		SCMD_FLUSH_PRINT_BUF,	"write_file_mark",		\
1711d947ee87 6228435 Undecoded command in var/adm/messages - Error for Command: undecoded cmd 0x5a
cth
parents: 0
diff changeset
   351
/* 0x11 */ SCMD_SPACE,			"space",			\
1711d947ee87 6228435 Undecoded command in var/adm/messages - Error for Command: undecoded cmd 0x5a
cth
parents: 0
diff changeset
   352
/* 0x12 */ SCMD_INQUIRY,		"inquiry",			\
1711d947ee87 6228435 Undecoded command in var/adm/messages - Error for Command: undecoded cmd 0x5a
cth
parents: 0
diff changeset
   353
/* 0x13 */ SCMD_VERIFY_G0,		"verify",			\
1711d947ee87 6228435 Undecoded command in var/adm/messages - Error for Command: undecoded cmd 0x5a
cth
parents: 0
diff changeset
   354
/* 0x14 */ SCMD_RECOVER_BUF,		"recover_buffer_data",		\
1711d947ee87 6228435 Undecoded command in var/adm/messages - Error for Command: undecoded cmd 0x5a
cth
parents: 0
diff changeset
   355
/* 0x15 */ SCMD_MODE_SELECT,		"mode_select",			\
1711d947ee87 6228435 Undecoded command in var/adm/messages - Error for Command: undecoded cmd 0x5a
cth
parents: 0
diff changeset
   356
/* 0x16 */ SCMD_RESERVE,		"reserve",			\
1711d947ee87 6228435 Undecoded command in var/adm/messages - Error for Command: undecoded cmd 0x5a
cth
parents: 0
diff changeset
   357
/* 0x17 */ SCMD_RELEASE,		"release",			\
1711d947ee87 6228435 Undecoded command in var/adm/messages - Error for Command: undecoded cmd 0x5a
cth
parents: 0
diff changeset
   358
/* 0x18 */ SCMD_COPY,			"copy",				\
1711d947ee87 6228435 Undecoded command in var/adm/messages - Error for Command: undecoded cmd 0x5a
cth
parents: 0
diff changeset
   359
/* 0x19 */ SCMD_ERASE,			"erase_tape",			\
1711d947ee87 6228435 Undecoded command in var/adm/messages - Error for Command: undecoded cmd 0x5a
cth
parents: 0
diff changeset
   360
/* 0x1a */ SCMD_MODE_SENSE,		"mode_sense",			\
1711d947ee87 6228435 Undecoded command in var/adm/messages - Error for Command: undecoded cmd 0x5a
cth
parents: 0
diff changeset
   361
/* 0x1b */ SCMD_LOAD |							\
1711d947ee87 6228435 Undecoded command in var/adm/messages - Error for Command: undecoded cmd 0x5a
cth
parents: 0
diff changeset
   362
		SCMD_START_STOP |					\
1711d947ee87 6228435 Undecoded command in var/adm/messages - Error for Command: undecoded cmd 0x5a
cth
parents: 0
diff changeset
   363
		SCMD_STOP_PRINT,	"load/start/stop",		\
1711d947ee87 6228435 Undecoded command in var/adm/messages - Error for Command: undecoded cmd 0x5a
cth
parents: 0
diff changeset
   364
/* 0x1c */ SCMD_GDIAG,			"get_diagnostic_results",	\
1711d947ee87 6228435 Undecoded command in var/adm/messages - Error for Command: undecoded cmd 0x5a
cth
parents: 0
diff changeset
   365
/* 0x1d */ SCMD_SDIAG,			"send_diagnostic_command",	\
1711d947ee87 6228435 Undecoded command in var/adm/messages - Error for Command: undecoded cmd 0x5a
cth
parents: 0
diff changeset
   366
/* 0x1e */ SCMD_DOORLOCK,		"door_lock",			\
1711d947ee87 6228435 Undecoded command in var/adm/messages - Error for Command: undecoded cmd 0x5a
cth
parents: 0
diff changeset
   367
/* 0x23 */ SCMD_READ_FORMAT_CAP,	"read_format_capacity",		\
1711d947ee87 6228435 Undecoded command in var/adm/messages - Error for Command: undecoded cmd 0x5a
cth
parents: 0
diff changeset
   368
/* 0x25 */ SCMD_READ_CAPACITY,		"read_capacity",		\
1711d947ee87 6228435 Undecoded command in var/adm/messages - Error for Command: undecoded cmd 0x5a
cth
parents: 0
diff changeset
   369
/* 0x28 */ SCMD_READ_G1,		"read(10)",			\
1711d947ee87 6228435 Undecoded command in var/adm/messages - Error for Command: undecoded cmd 0x5a
cth
parents: 0
diff changeset
   370
/* 0x2a */ SCMD_WRITE_G1,		"write(10)",			\
1711d947ee87 6228435 Undecoded command in var/adm/messages - Error for Command: undecoded cmd 0x5a
cth
parents: 0
diff changeset
   371
/* 0x2b */ SCMD_SEEK_G1 |						\
1711d947ee87 6228435 Undecoded command in var/adm/messages - Error for Command: undecoded cmd 0x5a
cth
parents: 0
diff changeset
   372
		SCMD_LOCATE,		"seek(10)",			\
1711d947ee87 6228435 Undecoded command in var/adm/messages - Error for Command: undecoded cmd 0x5a
cth
parents: 0
diff changeset
   373
/* 0x2e */ SCMD_WRITE_VERIFY,		"write_verify",			\
1711d947ee87 6228435 Undecoded command in var/adm/messages - Error for Command: undecoded cmd 0x5a
cth
parents: 0
diff changeset
   374
/* 0x2f */ SCMD_VERIFY,			"verify(10)",			\
1711d947ee87 6228435 Undecoded command in var/adm/messages - Error for Command: undecoded cmd 0x5a
cth
parents: 0
diff changeset
   375
/* 0x30 */ SCMD_SEARCH_HIGH,		"search_data_high",		\
1711d947ee87 6228435 Undecoded command in var/adm/messages - Error for Command: undecoded cmd 0x5a
cth
parents: 0
diff changeset
   376
/* 0x31 */ SCMD_SEARCH_EQUAL,		"search_data_equal",		\
1711d947ee87 6228435 Undecoded command in var/adm/messages - Error for Command: undecoded cmd 0x5a
cth
parents: 0
diff changeset
   377
/* 0x32 */ SCMD_SEARCH_LOW,		"search_data_low",		\
1711d947ee87 6228435 Undecoded command in var/adm/messages - Error for Command: undecoded cmd 0x5a
cth
parents: 0
diff changeset
   378
/* 0x33 */ SCMD_SET_LIMITS,		"set_limits",			\
1711d947ee87 6228435 Undecoded command in var/adm/messages - Error for Command: undecoded cmd 0x5a
cth
parents: 0
diff changeset
   379
/* 0x34 */ SCMD_READ_POSITION,		"read_position",		\
1711d947ee87 6228435 Undecoded command in var/adm/messages - Error for Command: undecoded cmd 0x5a
cth
parents: 0
diff changeset
   380
/* 0x35 */ SCMD_SYNCHRONIZE_CACHE,	"synchronize_cache",		\
1711d947ee87 6228435 Undecoded command in var/adm/messages - Error for Command: undecoded cmd 0x5a
cth
parents: 0
diff changeset
   381
/* 0x37 */ SCMD_READ_DEFECT_LIST,	"read_defect_data",		\
1711d947ee87 6228435 Undecoded command in var/adm/messages - Error for Command: undecoded cmd 0x5a
cth
parents: 0
diff changeset
   382
/* 0x39 */ SCMD_COMPARE,		"compare",			\
1711d947ee87 6228435 Undecoded command in var/adm/messages - Error for Command: undecoded cmd 0x5a
cth
parents: 0
diff changeset
   383
/* 0x3a */ SCMD_COPY_VERIFY,		"copy_verify",			\
1711d947ee87 6228435 Undecoded command in var/adm/messages - Error for Command: undecoded cmd 0x5a
cth
parents: 0
diff changeset
   384
/* 0x3b */ SCMD_WRITE_BUFFER,		"write_buffer",			\
1711d947ee87 6228435 Undecoded command in var/adm/messages - Error for Command: undecoded cmd 0x5a
cth
parents: 0
diff changeset
   385
/* 0x3c */ SCMD_READ_BUFFER,		"read_buffer",			\
1711d947ee87 6228435 Undecoded command in var/adm/messages - Error for Command: undecoded cmd 0x5a
cth
parents: 0
diff changeset
   386
/* 0x3e */ SCMD_READ_LONG,		"read_long",			\
1711d947ee87 6228435 Undecoded command in var/adm/messages - Error for Command: undecoded cmd 0x5a
cth
parents: 0
diff changeset
   387
/* 0x3f */ SCMD_WRITE_LONG,		"write_long",			\
1711d947ee87 6228435 Undecoded command in var/adm/messages - Error for Command: undecoded cmd 0x5a
cth
parents: 0
diff changeset
   388
/* 0x44 */ SCMD_REPORT_DENSITIES |					\
1711d947ee87 6228435 Undecoded command in var/adm/messages - Error for Command: undecoded cmd 0x5a
cth
parents: 0
diff changeset
   389
		/* SCMD_READ_HEADER (from cdio.h) | */			\
1711d947ee87 6228435 Undecoded command in var/adm/messages - Error for Command: undecoded cmd 0x5a
cth
parents: 0
diff changeset
   390
		0,			"report_densities/read_header",	\
1711d947ee87 6228435 Undecoded command in var/adm/messages - Error for Command: undecoded cmd 0x5a
cth
parents: 0
diff changeset
   391
/* 0x4c */ SCMD_LOG_SELECT_G1,		"log_select",			\
1711d947ee87 6228435 Undecoded command in var/adm/messages - Error for Command: undecoded cmd 0x5a
cth
parents: 0
diff changeset
   392
/* 0x4d */ SCMD_LOG_SENSE_G1,		"log_sense",			\
1711d947ee87 6228435 Undecoded command in var/adm/messages - Error for Command: undecoded cmd 0x5a
cth
parents: 0
diff changeset
   393
/* 0x55 */ SCMD_MODE_SELECT_G1,		"mode_select(10)",		\
1711d947ee87 6228435 Undecoded command in var/adm/messages - Error for Command: undecoded cmd 0x5a
cth
parents: 0
diff changeset
   394
/* 0x56 */ SCMD_RESERVE_G1,		"reserve(10)",			\
1711d947ee87 6228435 Undecoded command in var/adm/messages - Error for Command: undecoded cmd 0x5a
cth
parents: 0
diff changeset
   395
/* 0x57 */ SCMD_RELEASE_G1,		"release(10)",			\
1711d947ee87 6228435 Undecoded command in var/adm/messages - Error for Command: undecoded cmd 0x5a
cth
parents: 0
diff changeset
   396
/* 0x5a */ SCMD_MODE_SENSE_G1,		"mode_sense(10)",		\
1711d947ee87 6228435 Undecoded command in var/adm/messages - Error for Command: undecoded cmd 0x5a
cth
parents: 0
diff changeset
   397
/* 0x5e */ SCMD_PERSISTENT_RESERVE_IN,	"persistent_reserve_in",	\
1711d947ee87 6228435 Undecoded command in var/adm/messages - Error for Command: undecoded cmd 0x5a
cth
parents: 0
diff changeset
   398
/* 0x5f */ SCMD_PERSISTENT_RESERVE_OUT,	"persistent_reserve_out",	\
1711d947ee87 6228435 Undecoded command in var/adm/messages - Error for Command: undecoded cmd 0x5a
cth
parents: 0
diff changeset
   399
/* 0x83 */ SCMD_EXTENDED_COPY,		"extended_copy",		\
1711d947ee87 6228435 Undecoded command in var/adm/messages - Error for Command: undecoded cmd 0x5a
cth
parents: 0
diff changeset
   400
/* 0x88 */ SCMD_READ_G4,		"read(16)",			\
1711d947ee87 6228435 Undecoded command in var/adm/messages - Error for Command: undecoded cmd 0x5a
cth
parents: 0
diff changeset
   401
/* 0x8a */ SCMD_WRITE_G4,		"write(16)",			\
1711d947ee87 6228435 Undecoded command in var/adm/messages - Error for Command: undecoded cmd 0x5a
cth
parents: 0
diff changeset
   402
/* 0xa0 */ SCMD_REPORT_LUNS,		"report_luns",			\
1711d947ee87 6228435 Undecoded command in var/adm/messages - Error for Command: undecoded cmd 0x5a
cth
parents: 0
diff changeset
   403
/* 0xa8 */ SCMD_READ_G5,		"read(12)",			\
1711d947ee87 6228435 Undecoded command in var/adm/messages - Error for Command: undecoded cmd 0x5a
cth
parents: 0
diff changeset
   404
/* 0xaa */ SCMD_WRITE_G5,		"write(12)",			\
1711d947ee87 6228435 Undecoded command in var/adm/messages - Error for Command: undecoded cmd 0x5a
cth
parents: 0
diff changeset
   405
/* 0xac */ SCMD_GET_PERFORMANCE,	"get_performance"		\
1711d947ee87 6228435 Undecoded command in var/adm/messages - Error for Command: undecoded cmd 0x5a
cth
parents: 0
diff changeset
   406
	/* see cdio.h for additional command-to-string translations */
1711d947ee87 6228435 Undecoded command in var/adm/messages - Error for Command: undecoded cmd 0x5a
cth
parents: 0
diff changeset
   407
1711d947ee87 6228435 Undecoded command in var/adm/messages - Error for Command: undecoded cmd 0x5a
cth
parents: 0
diff changeset
   408
/* XXX not a command code, does not belong here */
1711d947ee87 6228435 Undecoded command in var/adm/messages - Error for Command: undecoded cmd 0x5a
cth
parents: 0
diff changeset
   409
#define	ATAPI_CAPABILITIES	0x2A
0
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   410
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   411
#ifdef	__cplusplus
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   412
}
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   413
#endif
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   414
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   415
/*
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   416
 * Below are inclusions of files describing various command structures
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   417
 * of interest.
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   418
 */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   419
#include <sys/scsi/generic/inquiry.h>
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   420
#include <sys/scsi/generic/sense.h>
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   421
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   422
/*
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   423
 * Private Vendor Unique Commands - Each implementation provides this.
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   424
 */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   425
#include <sys/scsi/impl/commands.h>
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   426
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
   427
#endif	/* _SYS_SCSI_GENERIC_COMMANDS_H */