1*3062Scindi /* 2*3062Scindi * CDDL HEADER START 3*3062Scindi * 4*3062Scindi * The contents of this file are subject to the terms of the 5*3062Scindi * Common Development and Distribution License (the "License"). 6*3062Scindi * You may not use this file except in compliance with the License. 7*3062Scindi * 8*3062Scindi * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9*3062Scindi * or http://www.opensolaris.org/os/licensing. 10*3062Scindi * See the License for the specific language governing permissions 11*3062Scindi * and limitations under the License. 12*3062Scindi * 13*3062Scindi * When distributing Covered Code, include this CDDL HEADER in each 14*3062Scindi * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15*3062Scindi * If applicable, add the following below this CDDL HEADER, with the 16*3062Scindi * fields enclosed by brackets "[]" replaced with your own identifying 17*3062Scindi * information: Portions Copyright [yyyy] [name of copyright owner] 18*3062Scindi * 19*3062Scindi * CDDL HEADER END 20*3062Scindi */ 21*3062Scindi 22*3062Scindi /* 23*3062Scindi * Copyright 2006 Sun Microsystems, Inc. All rights reserved. 24*3062Scindi * Use is subject to license terms. 25*3062Scindi */ 26*3062Scindi 27*3062Scindi #ifndef _UTIL_H 28*3062Scindi #define _UTIL_H 29*3062Scindi 30*3062Scindi #pragma ident "%Z%%M% %I% %E% SMI" 31*3062Scindi 32*3062Scindi #include <fm/topo_mod.h> 33*3062Scindi 34*3062Scindi #ifdef __cplusplus 35*3062Scindi extern "C" { 36*3062Scindi #endif 37*3062Scindi 38*3062Scindi extern int child_range_add(topo_mod_t *, tnode_t *, const char *, 39*3062Scindi topo_instance_t, topo_instance_t); 40*3062Scindi extern int labelmethod_inherit(topo_mod_t *, tnode_t *, nvlist_t *, 41*3062Scindi nvlist_t **); 42*3062Scindi extern ulong_t strtonum(topo_mod_t *, char *, int *); 43*3062Scindi extern tnode_t *tnode_create(topo_mod_t *, tnode_t *, const char *, 44*3062Scindi topo_instance_t, void *); 45*3062Scindi 46*3062Scindi #ifdef __cplusplus 47*3062Scindi } 48*3062Scindi #endif 49*3062Scindi 50*3062Scindi #endif /* _UTIL_H */ 51