xref: /titanic_51/usr/src/uts/common/sys/scsi/scsi_fm.h (revision 392e836b07e8da771953e4d64233b2abe4393efe)
19e1c849eSDavid Zhang - Sun Microsystems - Beijing China /*
29e1c849eSDavid Zhang - Sun Microsystems - Beijing China  * CDDL HEADER START
39e1c849eSDavid Zhang - Sun Microsystems - Beijing China  *
49e1c849eSDavid Zhang - Sun Microsystems - Beijing China  * The contents of this file are subject to the terms of the
59e1c849eSDavid Zhang - Sun Microsystems - Beijing China  * Common Development and Distribution License (the "License").
69e1c849eSDavid Zhang - Sun Microsystems - Beijing China  * You may not use this file except in compliance with the License.
79e1c849eSDavid Zhang - Sun Microsystems - Beijing China  *
89e1c849eSDavid Zhang - Sun Microsystems - Beijing China  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
99e1c849eSDavid Zhang - Sun Microsystems - Beijing China  * or http://www.opensolaris.org/os/licensing.
109e1c849eSDavid Zhang - Sun Microsystems - Beijing China  * See the License for the specific language governing permissions
119e1c849eSDavid Zhang - Sun Microsystems - Beijing China  * and limitations under the License.
129e1c849eSDavid Zhang - Sun Microsystems - Beijing China  *
139e1c849eSDavid Zhang - Sun Microsystems - Beijing China  * When distributing Covered Code, include this CDDL HEADER in each
149e1c849eSDavid Zhang - Sun Microsystems - Beijing China  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
159e1c849eSDavid Zhang - Sun Microsystems - Beijing China  * If applicable, add the following below this CDDL HEADER, with the
169e1c849eSDavid Zhang - Sun Microsystems - Beijing China  * fields enclosed by brackets "[]" replaced with your own identifying
179e1c849eSDavid Zhang - Sun Microsystems - Beijing China  * information: Portions Copyright [yyyy] [name of copyright owner]
189e1c849eSDavid Zhang - Sun Microsystems - Beijing China  *
199e1c849eSDavid Zhang - Sun Microsystems - Beijing China  * CDDL HEADER END
209e1c849eSDavid Zhang - Sun Microsystems - Beijing China  */
219e1c849eSDavid Zhang - Sun Microsystems - Beijing China /*
22*392e836bSGavin Maltby  * Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
239e1c849eSDavid Zhang - Sun Microsystems - Beijing China  */
249e1c849eSDavid Zhang - Sun Microsystems - Beijing China 
259e1c849eSDavid Zhang - Sun Microsystems - Beijing China #ifndef _SYS_SCSI_SCSI_FM_H
269e1c849eSDavid Zhang - Sun Microsystems - Beijing China #define	_SYS_SCSI_SCSI_FM_H
279e1c849eSDavid Zhang - Sun Microsystems - Beijing China 
289e1c849eSDavid Zhang - Sun Microsystems - Beijing China 
299e1c849eSDavid Zhang - Sun Microsystems - Beijing China #ifdef	__cplusplus
309e1c849eSDavid Zhang - Sun Microsystems - Beijing China extern "C" {
319e1c849eSDavid Zhang - Sun Microsystems - Beijing China #endif
329e1c849eSDavid Zhang - Sun Microsystems - Beijing China 
339e1c849eSDavid Zhang - Sun Microsystems - Beijing China /*
349e1c849eSDavid Zhang - Sun Microsystems - Beijing China  * fault management initialization and clean-up:
359e1c849eSDavid Zhang - Sun Microsystems - Beijing China  * do init/fini from initchild/uninitchild?
369e1c849eSDavid Zhang - Sun Microsystems - Beijing China  */
379e1c849eSDavid Zhang - Sun Microsystems - Beijing China void scsi_fm_init(struct scsi_device *);
389e1c849eSDavid Zhang - Sun Microsystems - Beijing China void scsi_fm_fini(struct scsi_device *);
399e1c849eSDavid Zhang - Sun Microsystems - Beijing China 
409e1c849eSDavid Zhang - Sun Microsystems - Beijing China /* ereport generation: */
419e1c849eSDavid Zhang - Sun Microsystems - Beijing China void scsi_fm_ereport_post(struct scsi_device *sd, int path_instance,
42*392e836bSGavin Maltby     char *devpath, const char *error_class, uint64_t ena,
43*392e836bSGavin Maltby     char *devid, char *tpl0, int sflag, nvlist_t *pl, ...);
449e1c849eSDavid Zhang - Sun Microsystems - Beijing China 
459e1c849eSDavid Zhang - Sun Microsystems - Beijing China #ifdef	__cplusplus
469e1c849eSDavid Zhang - Sun Microsystems - Beijing China }
479e1c849eSDavid Zhang - Sun Microsystems - Beijing China #endif
489e1c849eSDavid Zhang - Sun Microsystems - Beijing China 
499e1c849eSDavid Zhang - Sun Microsystems - Beijing China #endif	/* _SYS_SCSI_SCSI_FM_H */
50