Print this page
7127 remove -Wno-missing-braces from Makefile.uts
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/uts/common/io/scsi/impl/scsi_data.c
+++ new/usr/src/uts/common/io/scsi/impl/scsi_data.c
1 1 /*
2 2 * CDDL HEADER START
3 3 *
4 4 * The contents of this file are subject to the terms of the
5 5 * Common Development and Distribution License, Version 1.0 only
6 6 * (the "License"). You may not use this file except in compliance
7 7 * with the License.
8 8 *
9 9 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10 10 * or http://www.opensolaris.org/os/licensing.
11 11 * See the License for the specific language governing permissions
12 12 * and limitations under the License.
13 13 *
14 14 * When distributing Covered Code, include this CDDL HEADER in each
15 15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16 16 * If applicable, add the following below this CDDL HEADER, with the
↓ open down ↓ |
16 lines elided |
↑ open up ↑ |
17 17 * fields enclosed by brackets "[]" replaced with your own identifying
18 18 * information: Portions Copyright [yyyy] [name of copyright owner]
19 19 *
20 20 * CDDL HEADER END
21 21 */
22 22 /*
23 23 * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
24 24 * Use is subject to license terms.
25 25 */
26 26
27 -#pragma ident "%Z%%M% %I% %E% SMI"
28 -
29 27 /*
30 28 * Global SCSI data
31 29 */
32 30
33 31 #include <sys/scsi/scsi.h>
34 32 #include <sys/cdio.h> /* CDROM SCMD_ commands */
35 33
36 34 char *sense_keys[NUM_SENSE_KEYS + NUM_IMPL_SENSE_KEYS] = {
37 35 /* ==== SCSI Standard Keys */
38 36 "No_Additional_Sense", /* 0x00 KEY_NO_SENSE */
39 37 "Soft_Error", /* 0x01 KEY_RECOVERABLE_ERROR */
40 38 "Not_Ready", /* 0x02 KEY_NOT_READY */
41 39 "Media_Error", /* 0x03 KEY_MEDIUM_ERROR */
42 40 "Hardware_Error", /* 0x04 KEY_HARDWARE_ERROR */
43 41 "Illegal_Request", /* 0x05 KEY_ILLEGAL_REQUEST */
44 42 "Unit_Attention", /* 0x06 KEY_UNIT_ATTENTION */
45 43 "Write_Protected", /* 0x07 KEY_WRITE_PROTECT */
46 44 "Blank_Check", /* 0x08 KEY_BLANK_CHECK */
47 45 "Vendor_Unique", /* 0x09 KEY_VENDOR_UNIQUE */
48 46 "Copy_Aborted", /* 0x0a KEY_COPY_ABORTED */
49 47 "Aborted_Command", /* 0x0b KEY_ABORTED_COMMAND */
50 48 "Equal_Error", /* 0x0c KEY_EQUAL */
51 49 "Volume_Overflow", /* 0x0d KEY_VOLUME_OVERFLOW */
52 50 "Miscompare_Error", /* 0x0e KEY_MISCOMPARE */
53 51 "Reserved", /* 0x0f KEY_RESERVED */
54 52 /* ==== SUN SCSA 'pseudo' keys */
55 53 "fatal", /* 0x10 SUN_KEY_FATAL */
56 54 "timeout", /* 0x11 SUN_KEY_TIMEOUT */
57 55 "EOF", /* 0x12 SUN_KEY_EOF */
58 56 "EOT", /* 0x13 SUN_KEY_EOT */
59 57 "length_error", /* 0x14 SUN_KEY_LENGTH */
60 58 "BOT", /* 0x15 SUN_KEY_BOT */
61 59 "wrong_tape_media" /* 0x16 SUN_KEY_WRONGMEDIA */
62 60 };
63 61
64 62
65 63 char *scsi_state_bits = "\20\05STS\04XFER\03CMD\02SEL\01ARB";
66 64
67 65
68 66 /*
69 67 * This structure is used to allow you to quickly determine the size of the
70 68 * cdb by examining the cmd code. It is used in conjunction with the
71 69 * CDB_GROUPID macro. Lookup returns size of cdb. If unknown, zero returned.
72 70 */
73 71 uchar_t scsi_cdb_size[] = {
74 72 CDB_GROUP0, /* Group 0, 6 byte cdb */
75 73 CDB_GROUP1, /* Group 1, 10 byte cdb */
76 74 CDB_GROUP2, /* Group 2, 10 byte cdb */
77 75 CDB_GROUP3, /* Group 3, reserved */
78 76 CDB_GROUP4, /* Group 4, 16 byte cdb */
79 77 CDB_GROUP5, /* Group 5, 12 byte cdb */
80 78 CDB_GROUP6, /* Group 6, ? byte cdb (vendor specific) */
↓ open down ↓ |
42 lines elided |
↑ open up ↑ |
81 79 CDB_GROUP7 /* Group 7, ? byte cdb (vendor specific) */
82 80 };
83 81
84 82 /*
85 83 * Basic SCSI command description strings that can be used by drivers
86 84 * to pass to scsi_errmsg().
87 85 */
88 86 struct scsi_key_strings scsi_cmds[] = {
89 87 SCSI_CMDS_KEY_STRINGS,
90 88 SCSI_CMDS_KEY_STRINGS_CDIO,
91 - -1, NULL
89 + { -1, NULL }
92 90 };
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX