xref: /onnv-gate/usr/src/uts/sun4v/sys/fault_iso.h (revision 1991:f29baf5bf770)
1*1991Sheppo /*
2*1991Sheppo  * CDDL HEADER START
3*1991Sheppo  *
4*1991Sheppo  * The contents of this file are subject to the terms of the
5*1991Sheppo  * Common Development and Distribution License (the "License").
6*1991Sheppo  * You may not use this file except in compliance with the License.
7*1991Sheppo  *
8*1991Sheppo  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*1991Sheppo  * or http://www.opensolaris.org/os/licensing.
10*1991Sheppo  * See the License for the specific language governing permissions
11*1991Sheppo  * and limitations under the License.
12*1991Sheppo  *
13*1991Sheppo  * When distributing Covered Code, include this CDDL HEADER in each
14*1991Sheppo  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*1991Sheppo  * If applicable, add the following below this CDDL HEADER, with the
16*1991Sheppo  * fields enclosed by brackets "[]" replaced with your own identifying
17*1991Sheppo  * information: Portions Copyright [yyyy] [name of copyright owner]
18*1991Sheppo  *
19*1991Sheppo  * CDDL HEADER END
20*1991Sheppo  */
21*1991Sheppo 
22*1991Sheppo /*
23*1991Sheppo  * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
24*1991Sheppo  * Use is subject to license terms.
25*1991Sheppo  */
26*1991Sheppo 
27*1991Sheppo #ifndef _FAULT_ISO_H
28*1991Sheppo #define	_FAULT_ISO_H
29*1991Sheppo 
30*1991Sheppo #pragma ident	"%Z%%M%	%I%	%E% SMI"
31*1991Sheppo 
32*1991Sheppo #ifdef __cplusplus
33*1991Sheppo extern "C" {
34*1991Sheppo #endif
35*1991Sheppo 
36*1991Sheppo /* FMA CPU message numbers */
37*1991Sheppo #define	FMA_CPU_REQ_STATUS	0x0
38*1991Sheppo #define	FMA_CPU_REQ_OFFLINE	0x1
39*1991Sheppo #define	FMA_CPU_REQ_ONLINE	0x2
40*1991Sheppo 
41*1991Sheppo typedef struct {
42*1991Sheppo 	uint64_t	req_num;
43*1991Sheppo 	uint32_t	msg_type;
44*1991Sheppo 	uint32_t	cpu_id;
45*1991Sheppo } fma_cpu_service_req_t;
46*1991Sheppo 
47*1991Sheppo /* FMA CPU result codes */
48*1991Sheppo #define	FMA_CPU_RESP_OK		0x0
49*1991Sheppo #define	FMA_CPU_RESP_FAILURE	0x1
50*1991Sheppo 
51*1991Sheppo /* FMA CPU status codes */
52*1991Sheppo #define	FMA_CPU_STAT_ONLINE	0x0
53*1991Sheppo #define	FMA_CPU_STAT_OFFLINE	0x1
54*1991Sheppo #define	FMA_CPU_STAT_ILLEGAL	0x2
55*1991Sheppo 
56*1991Sheppo typedef struct {
57*1991Sheppo 	uint64_t	req_num;
58*1991Sheppo 	uint32_t	result;
59*1991Sheppo 	uint32_t	status;
60*1991Sheppo } fma_cpu_resp_t;
61*1991Sheppo 
62*1991Sheppo /* FMA memory services message numbers */
63*1991Sheppo #define	FMA_MEM_REQ_STATUS	0x0
64*1991Sheppo #define	FMA_MEM_REQ_RETIRE	0x1
65*1991Sheppo #define	FMA_MEM_REQ_RESURRECT	0x2
66*1991Sheppo 
67*1991Sheppo typedef struct {
68*1991Sheppo 	uint64_t	req_num;
69*1991Sheppo 	uint32_t	msg_type;
70*1991Sheppo 	uint32_t	_resvd;
71*1991Sheppo 	uint64_t	real_addr;
72*1991Sheppo 	uint64_t	length;
73*1991Sheppo } fma_mem_service_req_t;
74*1991Sheppo 
75*1991Sheppo /* FMA result codes */
76*1991Sheppo #define	FMA_MEM_RESP_OK		0x0
77*1991Sheppo #define	FMA_MEM_RESP_FAILURE	0x1
78*1991Sheppo 
79*1991Sheppo /* FMA status codes */
80*1991Sheppo #define	FMA_MEM_STAT_NOTRETIRED		0x0
81*1991Sheppo #define	FMA_MEM_STAT_RETIRED		0x1
82*1991Sheppo #define	FMA_MEM_STAT_ILLEGAL		0x2
83*1991Sheppo 
84*1991Sheppo typedef struct {
85*1991Sheppo 	uint64_t	req_num;
86*1991Sheppo 	uint32_t	result;
87*1991Sheppo 	uint32_t	status;
88*1991Sheppo 	uint64_t	res_addr;
89*1991Sheppo 	uint64_t	res_length;
90*1991Sheppo } fma_mem_resp_t;
91*1991Sheppo 
92*1991Sheppo #ifdef __cplusplus
93*1991Sheppo }
94*1991Sheppo #endif
95*1991Sheppo 
96*1991Sheppo #endif /* _FAULT_ISO_H */
97