xref: /onnv-gate/usr/src/cmd/picl/plugins/sun4v/pri/priplugin.h (revision 5029:ffbab30c82bd)
13941Svenki /*
23941Svenki  * CDDL HEADER START
33941Svenki  *
43941Svenki  * The contents of this file are subject to the terms of the
53941Svenki  * Common Development and Distribution License (the "License").
63941Svenki  * You may not use this file except in compliance with the License.
73941Svenki  *
83941Svenki  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
93941Svenki  * or http://www.opensolaris.org/os/licensing.
103941Svenki  * See the License for the specific language governing permissions
113941Svenki  * and limitations under the License.
123941Svenki  *
133941Svenki  * When distributing Covered Code, include this CDDL HEADER in each
143941Svenki  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
153941Svenki  * If applicable, add the following below this CDDL HEADER, with the
163941Svenki  * fields enclosed by brackets "[]" replaced with your own identifying
173941Svenki  * information: Portions Copyright [yyyy] [name of copyright owner]
183941Svenki  *
193941Svenki  * CDDL HEADER END
203941Svenki  */
213941Svenki 
223941Svenki /*
233941Svenki  * Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
243941Svenki  * Use is subject to license terms.
253941Svenki  */
263941Svenki 
273941Svenki #ifndef	_PRIPLUGIN_H
283941Svenki #define	_PRIPLUGIN_H
293941Svenki 
303941Svenki #pragma ident	"%Z%%M%	%I%	%E% SMI"
313941Svenki 
323941Svenki #ifdef __cplusplus
333941Svenki extern "C" {
343941Svenki #endif
353941Svenki 
363941Svenki #include <picl.h>
373941Svenki #include <picltree.h>
383941Svenki #include <picldefs.h>
393941Svenki #include <stdio.h>
403941Svenki #include <unistd.h>
413941Svenki #include <stdlib.h>
423941Svenki #include <sys/types.h>
434669Sfw157321 #include <thread.h>
443941Svenki #include <alloca.h>
453941Svenki #include <sys/stat.h>
463941Svenki #include <malloc.h>
473941Svenki #include <fcntl.h>
483941Svenki #include <syslog.h>
493941Svenki #include <mdesc.h>
503941Svenki #include <string.h>
513941Svenki #include <errno.h>
523941Svenki #include <libnvpair.h>
533941Svenki #include <syslog.h>
543941Svenki #include <sys/stat.h>
553941Svenki #include <dirent.h>
563941Svenki #include <config_admin.h>
573941Svenki #include <sys/param.h>
583941Svenki #include <libdevinfo.h>
593941Svenki #include <sys/systeminfo.h>
603941Svenki #include <sys/sysevent/dr.h>
613941Svenki #include <syslog.h>
623941Svenki #include <stdarg.h>
633941Svenki 
643941Svenki #ifndef PRI_DEBUG
653941Svenki #define	PRI_DEBUG 0
663941Svenki #endif
673941Svenki 
683941Svenki int add_mem_prop(picl_nodehdl_t node, void *args);
69*5029Sfw157321 int pri_devinit(uint64_t *);
70*5029Sfw157321 md_t *pri_bufinit(md_t *mdp);
713941Svenki void pri_devfini(md_t *mdp);
723941Svenki void pri_debug(int level, char *fmt, ...);
733941Svenki void add_md_prop(picl_nodehdl_t node, int size, char *name, void* value,
744669Sfw157321 	int type);
754669Sfw157321 void io_dev_addlabel(md_t *mdp);
763941Svenki 
773941Svenki #ifdef __cplusplus
783941Svenki }
793941Svenki #endif
803941Svenki 
813941Svenki #endif	/* _PRIPLUGIN_H */
82