xref: /titanic_51/usr/src/cmd/picl/plugins/sun4v/pri/priplugin.h (revision d2b9c6763c7b3aad7a4c2609ca71e0b02114bca9)
10d63ce2bSvenki /*
20d63ce2bSvenki  * CDDL HEADER START
30d63ce2bSvenki  *
40d63ce2bSvenki  * The contents of this file are subject to the terms of the
50d63ce2bSvenki  * Common Development and Distribution License (the "License").
60d63ce2bSvenki  * You may not use this file except in compliance with the License.
70d63ce2bSvenki  *
80d63ce2bSvenki  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
90d63ce2bSvenki  * or http://www.opensolaris.org/os/licensing.
100d63ce2bSvenki  * See the License for the specific language governing permissions
110d63ce2bSvenki  * and limitations under the License.
120d63ce2bSvenki  *
130d63ce2bSvenki  * When distributing Covered Code, include this CDDL HEADER in each
140d63ce2bSvenki  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
150d63ce2bSvenki  * If applicable, add the following below this CDDL HEADER, with the
160d63ce2bSvenki  * fields enclosed by brackets "[]" replaced with your own identifying
170d63ce2bSvenki  * information: Portions Copyright [yyyy] [name of copyright owner]
180d63ce2bSvenki  *
190d63ce2bSvenki  * CDDL HEADER END
200d63ce2bSvenki  */
210d63ce2bSvenki 
220d63ce2bSvenki /*
230d63ce2bSvenki  * Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
240d63ce2bSvenki  * Use is subject to license terms.
250d63ce2bSvenki  */
260d63ce2bSvenki 
270d63ce2bSvenki #ifndef	_PRIPLUGIN_H
280d63ce2bSvenki #define	_PRIPLUGIN_H
290d63ce2bSvenki 
300d63ce2bSvenki #pragma ident	"%Z%%M%	%I%	%E% SMI"
310d63ce2bSvenki 
320d63ce2bSvenki #ifdef __cplusplus
330d63ce2bSvenki extern "C" {
340d63ce2bSvenki #endif
350d63ce2bSvenki 
360d63ce2bSvenki #include <picl.h>
370d63ce2bSvenki #include <picltree.h>
380d63ce2bSvenki #include <picldefs.h>
390d63ce2bSvenki #include <stdio.h>
400d63ce2bSvenki #include <unistd.h>
410d63ce2bSvenki #include <stdlib.h>
420d63ce2bSvenki #include <sys/types.h>
43a90d965dSfw157321 #include <thread.h>
440d63ce2bSvenki #include <alloca.h>
450d63ce2bSvenki #include <sys/stat.h>
460d63ce2bSvenki #include <malloc.h>
470d63ce2bSvenki #include <fcntl.h>
480d63ce2bSvenki #include <syslog.h>
490d63ce2bSvenki #include <mdesc.h>
500d63ce2bSvenki #include <string.h>
510d63ce2bSvenki #include <errno.h>
520d63ce2bSvenki #include <libnvpair.h>
530d63ce2bSvenki #include <syslog.h>
540d63ce2bSvenki #include <sys/stat.h>
550d63ce2bSvenki #include <dirent.h>
560d63ce2bSvenki #include <config_admin.h>
570d63ce2bSvenki #include <sys/param.h>
580d63ce2bSvenki #include <libdevinfo.h>
590d63ce2bSvenki #include <sys/systeminfo.h>
600d63ce2bSvenki #include <sys/sysevent/dr.h>
610d63ce2bSvenki #include <syslog.h>
620d63ce2bSvenki #include <stdarg.h>
630d63ce2bSvenki 
640d63ce2bSvenki #ifndef PRI_DEBUG
650d63ce2bSvenki #define	PRI_DEBUG 0
660d63ce2bSvenki #endif
670d63ce2bSvenki 
680d63ce2bSvenki int add_mem_prop(picl_nodehdl_t node, void *args);
69*d2b9c676Sfw157321 int pri_devinit(uint64_t *);
70*d2b9c676Sfw157321 md_t *pri_bufinit(md_t *mdp);
710d63ce2bSvenki void pri_devfini(md_t *mdp);
720d63ce2bSvenki void pri_debug(int level, char *fmt, ...);
730d63ce2bSvenki void add_md_prop(picl_nodehdl_t node, int size, char *name, void* value,
740d63ce2bSvenki 	int type);
75a90d965dSfw157321 void io_dev_addlabel(md_t *mdp);
760d63ce2bSvenki 
770d63ce2bSvenki #ifdef __cplusplus
780d63ce2bSvenki }
790d63ce2bSvenki #endif
800d63ce2bSvenki 
810d63ce2bSvenki #endif	/* _PRIPLUGIN_H */
82