xref: /onnv-gate/usr/src/cmd/trapstat/sun4/_trapstat.h (revision 12719:bd9fb35d09c2)
1*12719SRod.Evans@Sun.COM /*
2*12719SRod.Evans@Sun.COM  * CDDL HEADER START
3*12719SRod.Evans@Sun.COM  *
4*12719SRod.Evans@Sun.COM  * The contents of this file are subject to the terms of the
5*12719SRod.Evans@Sun.COM  * Common Development and Distribution License (the "License").
6*12719SRod.Evans@Sun.COM  * You may not use this file except in compliance with the License.
7*12719SRod.Evans@Sun.COM  *
8*12719SRod.Evans@Sun.COM  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*12719SRod.Evans@Sun.COM  * or http://www.opensolaris.org/os/licensing.
10*12719SRod.Evans@Sun.COM  * See the License for the specific language governing permissions
11*12719SRod.Evans@Sun.COM  * and limitations under the License.
12*12719SRod.Evans@Sun.COM  *
13*12719SRod.Evans@Sun.COM  * When distributing Covered Code, include this CDDL HEADER in each
14*12719SRod.Evans@Sun.COM  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*12719SRod.Evans@Sun.COM  * If applicable, add the following below this CDDL HEADER, with the
16*12719SRod.Evans@Sun.COM  * fields enclosed by brackets "[]" replaced with your own identifying
17*12719SRod.Evans@Sun.COM  * information: Portions Copyright [yyyy] [name of copyright owner]
18*12719SRod.Evans@Sun.COM  *
19*12719SRod.Evans@Sun.COM  * CDDL HEADER END
20*12719SRod.Evans@Sun.COM  */
21*12719SRod.Evans@Sun.COM 
22*12719SRod.Evans@Sun.COM /*
23*12719SRod.Evans@Sun.COM  * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
24*12719SRod.Evans@Sun.COM  */
25*12719SRod.Evans@Sun.COM 
26*12719SRod.Evans@Sun.COM #ifndef	__TRAPSTAT_DOT_H
27*12719SRod.Evans@Sun.COM #define	__TRAPSTAT_DOT_H
28*12719SRod.Evans@Sun.COM 
29*12719SRod.Evans@Sun.COM #include <sys/trapstat.h>
30*12719SRod.Evans@Sun.COM 
31*12719SRod.Evans@Sun.COM #ifdef	__cplusplus
32*12719SRod.Evans@Sun.COM extern "C" {
33*12719SRod.Evans@Sun.COM #endif
34*12719SRod.Evans@Sun.COM 
35*12719SRod.Evans@Sun.COM #define	TSTAT_ENT_USED			0
36*12719SRod.Evans@Sun.COM #define	TSTAT_ENT_RESERVED		1
37*12719SRod.Evans@Sun.COM #define	TSTAT_ENT_UNUSED		2
38*12719SRod.Evans@Sun.COM #define	TSTAT_ENT_CONTINUED		3
39*12719SRod.Evans@Sun.COM 
40*12719SRod.Evans@Sun.COM typedef struct {
41*12719SRod.Evans@Sun.COM 	char	*tent_name;
42*12719SRod.Evans@Sun.COM 	char	*tent_descr;
43*12719SRod.Evans@Sun.COM 	int	tent_type;
44*12719SRod.Evans@Sun.COM } tstat_ent_t;
45*12719SRod.Evans@Sun.COM 
46*12719SRod.Evans@Sun.COM extern	tstat_ent_t *get_trap_ent(int);
47*12719SRod.Evans@Sun.COM 
48*12719SRod.Evans@Sun.COM #ifdef	__cplusplus
49*12719SRod.Evans@Sun.COM }
50*12719SRod.Evans@Sun.COM #endif
51*12719SRod.Evans@Sun.COM 
52*12719SRod.Evans@Sun.COM #endif /* __TRAPSTAT_DOT_H */
53