xref: /onnv-gate/usr/src/cmd/picl/plugins/sun4v/mdesc/mdescplugin.h (revision 1991:f29baf5bf770)
10Sstevel@tonic-gate /*
20Sstevel@tonic-gate  * CDDL HEADER START
30Sstevel@tonic-gate  *
40Sstevel@tonic-gate  * 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.
70Sstevel@tonic-gate  *
80Sstevel@tonic-gate  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
90Sstevel@tonic-gate  * or http://www.opensolaris.org/os/licensing.
100Sstevel@tonic-gate  * See the License for the specific language governing permissions
110Sstevel@tonic-gate  * and limitations under the License.
120Sstevel@tonic-gate  *
130Sstevel@tonic-gate  * When distributing Covered Code, include this CDDL HEADER in each
140Sstevel@tonic-gate  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
150Sstevel@tonic-gate  * If applicable, add the following below this CDDL HEADER, with the
160Sstevel@tonic-gate  * fields enclosed by brackets "[]" replaced with your own identifying
170Sstevel@tonic-gate  * information: Portions Copyright [yyyy] [name of copyright owner]
180Sstevel@tonic-gate  *
190Sstevel@tonic-gate  * CDDL HEADER END
200Sstevel@tonic-gate  */
21*1991Sheppo 
220Sstevel@tonic-gate /*
23*1991Sheppo  * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
240Sstevel@tonic-gate  * Use is subject to license terms.
250Sstevel@tonic-gate  */
260Sstevel@tonic-gate 
270Sstevel@tonic-gate #ifndef	_MDESCPLUGIN_H
280Sstevel@tonic-gate #define	_MDESCPLUGIN_H
290Sstevel@tonic-gate 
300Sstevel@tonic-gate #pragma ident	"%Z%%M%	%I%	%E% SMI"
310Sstevel@tonic-gate 
32*1991Sheppo #ifdef __cplusplus
33*1991Sheppo extern "C" {
34*1991Sheppo #endif
35*1991Sheppo 
360Sstevel@tonic-gate #include <picl.h>
370Sstevel@tonic-gate #include <picltree.h>
380Sstevel@tonic-gate #include <picldefs.h>
390Sstevel@tonic-gate #include <stdio.h>
400Sstevel@tonic-gate #include <unistd.h>
410Sstevel@tonic-gate #include <stdlib.h>
420Sstevel@tonic-gate #include <sys/types.h>
430Sstevel@tonic-gate #include <alloca.h>
440Sstevel@tonic-gate #include <sys/stat.h>
450Sstevel@tonic-gate #include <malloc.h>
460Sstevel@tonic-gate #include <fcntl.h>
470Sstevel@tonic-gate #include <syslog.h>
480Sstevel@tonic-gate #include <mdesc.h>
490Sstevel@tonic-gate #include <string.h>
500Sstevel@tonic-gate #include <errno.h>
510Sstevel@tonic-gate #include <libnvpair.h>
520Sstevel@tonic-gate #include <syslog.h>
530Sstevel@tonic-gate #include <sys/stat.h>
540Sstevel@tonic-gate #include <dirent.h>
550Sstevel@tonic-gate #include <config_admin.h>
560Sstevel@tonic-gate #include <sys/param.h>
57*1991Sheppo #include <libdevinfo.h>
58*1991Sheppo #include <sys/systeminfo.h>
59*1991Sheppo #include <sys/sysevent/dr.h>
600Sstevel@tonic-gate 
610Sstevel@tonic-gate #define	MAXSTRLEN 256
620Sstevel@tonic-gate #define	ICACHE_FLAG 0x01
630Sstevel@tonic-gate #define	DCACHE_FLAG 0x02
640Sstevel@tonic-gate #define	CACHE_FLAG 0x03
650Sstevel@tonic-gate #define	DISK_DISCOVERY_NAME "disk_discovery"
660Sstevel@tonic-gate #define	CONFIGURED "configured"
670Sstevel@tonic-gate #define	UNCONFIGURED "unconfigured"
68*1991Sheppo #define	DEV_ADD		0
69*1991Sheppo #define	DEV_REMOVE	1
70*1991Sheppo #define	SUN4V_CPU_REGSIZE	4
71*1991Sheppo #define	CFGHDL_TO_CPUID(x)	(x  & ~(0xful << 28))
72*1991Sheppo 
73*1991Sheppo #ifdef __cplusplus
74*1991Sheppo }
75*1991Sheppo #endif
760Sstevel@tonic-gate 
770Sstevel@tonic-gate #endif	/* _MDESCPLUGIN_H */
78