1*7aec1d6eScindi /* 2*7aec1d6eScindi * CDDL HEADER START 3*7aec1d6eScindi * 4*7aec1d6eScindi * The contents of this file are subject to the terms of the 5*7aec1d6eScindi * Common Development and Distribution License, Version 1.0 only 6*7aec1d6eScindi * (the "License"). You may not use this file except in compliance 7*7aec1d6eScindi * with the License. 8*7aec1d6eScindi * 9*7aec1d6eScindi * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 10*7aec1d6eScindi * or http://www.opensolaris.org/os/licensing. 11*7aec1d6eScindi * See the License for the specific language governing permissions 12*7aec1d6eScindi * and limitations under the License. 13*7aec1d6eScindi * 14*7aec1d6eScindi * When distributing Covered Code, include this CDDL HEADER in each 15*7aec1d6eScindi * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16*7aec1d6eScindi * If applicable, add the following below this CDDL HEADER, with the 17*7aec1d6eScindi * fields enclosed by brackets "[]" replaced with your own identifying 18*7aec1d6eScindi * information: Portions Copyright [yyyy] [name of copyright owner] 19*7aec1d6eScindi * 20*7aec1d6eScindi * CDDL HEADER END 21*7aec1d6eScindi */ 22*7aec1d6eScindi /* 23*7aec1d6eScindi * Copyright 2006 Sun Microsystems, Inc. All rights reserved. 24*7aec1d6eScindi * Use is subject to license terms. 25*7aec1d6eScindi */ 26*7aec1d6eScindi 27*7aec1d6eScindi #ifndef _TOPO_ALLOC_H 28*7aec1d6eScindi #define _TOPO_ALLOC_H 29*7aec1d6eScindi 30*7aec1d6eScindi #include <sys/types.h> 31*7aec1d6eScindi #include <topo_module.h> 32*7aec1d6eScindi #include <libnvpair.h> 33*7aec1d6eScindi 34*7aec1d6eScindi #ifdef __cplusplus 35*7aec1d6eScindi extern "C" { 36*7aec1d6eScindi #endif 37*7aec1d6eScindi 38*7aec1d6eScindi extern void *topo_alloc(size_t, int); 39*7aec1d6eScindi extern void *topo_zalloc(size_t, int); 40*7aec1d6eScindi extern void topo_free(void *, size_t); 41*7aec1d6eScindi extern void *topo_nv_alloc(nv_alloc_t *, size_t); 42*7aec1d6eScindi extern void topo_nv_free(nv_alloc_t *, void *, size_t); 43*7aec1d6eScindi 44*7aec1d6eScindi #ifdef __cplusplus 45*7aec1d6eScindi } 46*7aec1d6eScindi #endif 47*7aec1d6eScindi 48*7aec1d6eScindi #endif /* _TOPO_ALLOC_H */ 49