px_fm.h revision 3d9c56a157784839d32b49e03a3468a72c53f2dc
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2006 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _SYS_PX_FM_H
#define _SYS_PX_FM_H
#pragma ident "%Z%%M% %I% %E% SMI"
#ifdef __cplusplus
extern "C" {
#endif
#define PX_ERR_PIL 14
#define PX_ERR_LOW_PIL 9
/*
* Error handlers maybe called due to trap or interrupts
* occured.
*/
#define PX_TRAP_CALL 0
#define PX_INTR_CALL 1
#define PX_LIB_CALL 2
/*
* Definition of Fire internal error severity -
* HW Reset Errors that cause hardware to automatically reset. Software is
* being reset along, sticky status bits need to be cleaned up upon
* system initialization.
* Panic Errors that definitely result in panic'ing the system.
* Expected Expected error, do not panic, plus do not send ereport.
* Protected Errors SW to determine panic or not, forgivable for safe access.
* Set when SW determines this error is forgivable during safe acc.
* No-panic Errors that don't directly result in panic'ing the system.
* No-Error When an interrupt occured and no errors were seen
*/
#define PX_NO_ERROR (0x1 << 0)
#define PX_RC (0x1 << 0)
/*
* Generic PCIe Root Port Error Handling
*/
typedef struct px_err_pcie {
#define PX_FM_BLOCK_HOST (0x1 << 0)
/*
* Error handling FMA hook
*/
/*
* Fire interrupt handlers
*/
/*
* Common error handling functions
*/
#ifdef __cplusplus
}
#endif
#endif /* _SYS_PX_FM_H */