/*
* 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 2010 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _ERROR_H
#define _ERROR_H
#ifdef __cplusplus
extern "C" {
#endif
/*
* Resumable and Non-resumable queues
*/
/*
* Sun4v Error Report error Descriptor describes the type of the error
*/
/*
* Sun4v Error Report Error Attributes specifies the attributes of the error
*/
/* Floating-point register file */
/*
* For Execution mode
*/
#define ERRH_MODE_UNKNOWN 0
/*
* For SP (Service Processor) state change
*/
/*
* ASR register number
*/
/*
* For the second argument passed to process_nonresumable_error(), it is
* an uint64_t. The upper 32 bits are reserved for various flags, the
* lower 32 bits are used to pass the "current tl-1". Right now only bit
* If bit 32 is set, it means the first error in the error
* differently.
*
* -Argument 2 of process_nonresumable_error()
* ----------------------------------------------
* | reserved |x| current_tl - 1 |
* ----------------------------------------------
* 63 32 31 0
*/
#ifndef _ASM
/*
* For debug print out
*/
/*
* Sun4v Error Report record
*/
typedef struct {
} errh_er_t;
typedef struct errh_async_flt {
/*
* Global functions
*/
void errh_cpu_run_bus_error_handlers(struct async_flt *, int);
void error_init(void);
void cpu_async_log_err(void *);
void cpu_ce_log_err(struct async_flt *);
void cpu_ue_log_err(struct async_flt *);
#endif /* _ASM */
#ifdef __cplusplus
}
#endif
#endif /* _ERROR_H */