xref: /titanic_44/usr/src/uts/common/sys/fm/io/ddi.h (revision 05dd151b48459b1282a9ba09a1012307693cf4b9)
17c478bd9Sstevel@tonic-gate /*
27c478bd9Sstevel@tonic-gate  * CDDL HEADER START
37c478bd9Sstevel@tonic-gate  *
47c478bd9Sstevel@tonic-gate  * The contents of this file are subject to the terms of the
500d0963fSdilpreet  * Common Development and Distribution License (the "License").
600d0963fSdilpreet  * You may not use this file except in compliance with the License.
77c478bd9Sstevel@tonic-gate  *
87c478bd9Sstevel@tonic-gate  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
97c478bd9Sstevel@tonic-gate  * or http://www.opensolaris.org/os/licensing.
107c478bd9Sstevel@tonic-gate  * See the License for the specific language governing permissions
117c478bd9Sstevel@tonic-gate  * and limitations under the License.
127c478bd9Sstevel@tonic-gate  *
137c478bd9Sstevel@tonic-gate  * When distributing Covered Code, include this CDDL HEADER in each
147c478bd9Sstevel@tonic-gate  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
157c478bd9Sstevel@tonic-gate  * If applicable, add the following below this CDDL HEADER, with the
167c478bd9Sstevel@tonic-gate  * fields enclosed by brackets "[]" replaced with your own identifying
177c478bd9Sstevel@tonic-gate  * information: Portions Copyright [yyyy] [name of copyright owner]
187c478bd9Sstevel@tonic-gate  *
197c478bd9Sstevel@tonic-gate  * CDDL HEADER END
207c478bd9Sstevel@tonic-gate  */
217c478bd9Sstevel@tonic-gate /*
22*05dd151bSStephen Hanson  * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
237c478bd9Sstevel@tonic-gate  * Use is subject to license terms.
247c478bd9Sstevel@tonic-gate  */
257c478bd9Sstevel@tonic-gate 
267c478bd9Sstevel@tonic-gate #ifndef	_SYS_FM_IO_DDI_H
277c478bd9Sstevel@tonic-gate #define	_SYS_FM_IO_DDI_H
287c478bd9Sstevel@tonic-gate 
297c478bd9Sstevel@tonic-gate #ifdef	__cplusplus
307c478bd9Sstevel@tonic-gate extern "C" {
317c478bd9Sstevel@tonic-gate #endif
327c478bd9Sstevel@tonic-gate 
337c478bd9Sstevel@tonic-gate #define	DDI_DVR_MAX_CLASS		32
347c478bd9Sstevel@tonic-gate 
357c478bd9Sstevel@tonic-gate /* IO-specific FMA ereport class defintions */
367c478bd9Sstevel@tonic-gate #define	DDI_IO_CLASS			"io"
377c478bd9Sstevel@tonic-gate 
3800d0963fSdilpreet /* leaf driver detected ereport definitions */
3900d0963fSdilpreet #define	DDI_FM_DEVICE			"device"
4000d0963fSdilpreet #define	DDI_FM_DEVICE_INVAL_STATE	"inval_state"
4100d0963fSdilpreet #define	DDI_FM_DEVICE_NO_RESPONSE	"no_response"
4200d0963fSdilpreet #define	DDI_FM_DEVICE_STALL		"stall"
4300d0963fSdilpreet #define	DDI_FM_DEVICE_BADINT_LIMIT	"badint_limit"
4400d0963fSdilpreet #define	DDI_FM_DEVICE_INTERN_CORR	"intern_corr"
4500d0963fSdilpreet #define	DDI_FM_DEVICE_INTERN_UNCORR	"intern_uncorr"
46*05dd151bSStephen Hanson #define	DDI_FM_DEVICE_FW_CORRUPT	"fw_corrupt"
47*05dd151bSStephen Hanson #define	DDI_FM_DEVICE_FW_MISMATCH	"fw_mismatch"
4800d0963fSdilpreet 
4900d0963fSdilpreet /* service impact ereport definitions */
5000d0963fSdilpreet #define	DDI_FM_SERVICE_IMPACT		"service"
5100d0963fSdilpreet #define	DDI_FM_SERVICE_LOST		"lost"
5200d0963fSdilpreet #define	DDI_FM_SERVICE_DEGRADED		"degraded"
5300d0963fSdilpreet #define	DDI_FM_SERVICE_RESTORED		"restored"
5400d0963fSdilpreet #define	DDI_FM_SERVICE_UNAFFECTED	"unaffected"
5500d0963fSdilpreet 
567c478bd9Sstevel@tonic-gate /* Driver defect ereport specifications */
577c478bd9Sstevel@tonic-gate #define	DVR_ERPT		"ddi."
587c478bd9Sstevel@tonic-gate #define	DVR_ECONTEXT		"context"	/* Invalid calling context */
597c478bd9Sstevel@tonic-gate #define	DVR_EINVAL		"einval"	/* Invalid calling semantic */
607c478bd9Sstevel@tonic-gate #define	DVR_EFMCAP		"fm-capability"	/* Improper FM capability */
617c478bd9Sstevel@tonic-gate #define	DVR_EVER		"version"	/* Invalid structure version */
627c478bd9Sstevel@tonic-gate 
637c478bd9Sstevel@tonic-gate /* Required payload member names */
647c478bd9Sstevel@tonic-gate #define	DVR_NAME		"dvr-name"
657c478bd9Sstevel@tonic-gate #define	DVR_STACK		"dvr-stack"
667c478bd9Sstevel@tonic-gate #define	DVR_STACK_DEPTH		"dvr-stack-depth"
677c478bd9Sstevel@tonic-gate #define	DVR_ERR_SPECIFIC	"dvr-error-specific"
687c478bd9Sstevel@tonic-gate 
697c478bd9Sstevel@tonic-gate #ifdef	__cplusplus
707c478bd9Sstevel@tonic-gate }
717c478bd9Sstevel@tonic-gate #endif
727c478bd9Sstevel@tonic-gate 
737c478bd9Sstevel@tonic-gate #endif	/* _SYS_FM_IO_DDI_H */
74