xref: /onnv-gate/usr/src/uts/common/sys/fm/io/scsi.h (revision 4198:6bdfb19526db)
1*4198Seschrock /*
2*4198Seschrock  * CDDL HEADER START
3*4198Seschrock  *
4*4198Seschrock  * The contents of this file are subject to the terms of the
5*4198Seschrock  * Common Development and Distribution License (the "License").
6*4198Seschrock  * You may not use this file except in compliance with the License.
7*4198Seschrock  *
8*4198Seschrock  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*4198Seschrock  * or http://www.opensolaris.org/os/licensing.
10*4198Seschrock  * See the License for the specific language governing permissions
11*4198Seschrock  * and limitations under the License.
12*4198Seschrock  *
13*4198Seschrock  * When distributing Covered Code, include this CDDL HEADER in each
14*4198Seschrock  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*4198Seschrock  * If applicable, add the following below this CDDL HEADER, with the
16*4198Seschrock  * fields enclosed by brackets "[]" replaced with your own identifying
17*4198Seschrock  * information: Portions Copyright [yyyy] [name of copyright owner]
18*4198Seschrock  *
19*4198Seschrock  * CDDL HEADER END
20*4198Seschrock  */
21*4198Seschrock /*
22*4198Seschrock  * Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
23*4198Seschrock  * Use is subject to license terms.
24*4198Seschrock  */
25*4198Seschrock 
26*4198Seschrock #ifndef	_SYS_FM_IO_SCSI_H
27*4198Seschrock #define	_SYS_FM_IO_SCSI_H
28*4198Seschrock 
29*4198Seschrock #pragma ident	"%Z%%M%	%I%	%E% SMI"
30*4198Seschrock 
31*4198Seschrock #ifdef	__cplusplus
32*4198Seschrock extern "C" {
33*4198Seschrock #endif
34*4198Seschrock 
35*4198Seschrock /*
36*4198Seschrock  * The following ereports are generated by the userland disk-transport module in
37*4198Seschrock  * response to errors reported by the disks.
38*4198Seschrock  */
39*4198Seschrock #define	SCSI_ERROR_CLASS		"io.scsi"
40*4198Seschrock 
41*4198Seschrock #define	SCSI_DISK_CLASS			"disk"
42*4198Seschrock 
43*4198Seschrock #define	FM_EREPORT_SCSI_PREDFAIL	"predictive-failure"
44*4198Seschrock #define	FM_EREPORT_PAYLOAD_SCSI_ASC	"additional-sense-code"
45*4198Seschrock #define	FM_EREPORT_PAYLOAD_SCSI_ASCQ	"additional-sense-code-qualifier"
46*4198Seschrock 
47*4198Seschrock #define	FM_EREPORT_SCSI_OVERTEMP		"over-temperature"
48*4198Seschrock #define	FM_EREPORT_PAYLOAD_SCSI_CURTEMP		"current-temperature"
49*4198Seschrock #define	FM_EREPORT_PAYLOAD_SCSI_THRESHTEMP	"threshold-temperature"
50*4198Seschrock 
51*4198Seschrock #define	FM_EREPORT_SCSI_TESTFAIL		"self-test-failure"
52*4198Seschrock #define	FM_EREPORT_PAYLOAD_SCSI_RESULTCODE	"result-code"
53*4198Seschrock #define	FM_EREPORT_PAYLOAD_SCSI_ADDRESS		"address"
54*4198Seschrock #define	FM_EREPORT_PAYLOAD_SCSI_TIMESTAMP	"timestamp"
55*4198Seschrock #define	FM_EREPORT_PAYLOAD_SCSI_SEGMENT		"segment"
56*4198Seschrock 
57*4198Seschrock #ifdef	__cplusplus
58*4198Seschrock }
59*4198Seschrock #endif
60*4198Seschrock 
61*4198Seschrock #endif	/* _SYS_FM_IO_SCSI_H */
62