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