16ff6d951SJohn Birrell /* 26ff6d951SJohn Birrell * CDDL HEADER START 36ff6d951SJohn Birrell * 46ff6d951SJohn Birrell * The contents of this file are subject to the terms of the 56ff6d951SJohn Birrell * Common Development and Distribution License, Version 1.0 only 66ff6d951SJohn Birrell * (the "License"). You may not use this file except in compliance 76ff6d951SJohn Birrell * with the License. 86ff6d951SJohn Birrell * 96ff6d951SJohn Birrell * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 106ff6d951SJohn Birrell * or http://www.opensolaris.org/os/licensing. 116ff6d951SJohn Birrell * See the License for the specific language governing permissions 126ff6d951SJohn Birrell * and limitations under the License. 136ff6d951SJohn Birrell * 146ff6d951SJohn Birrell * When distributing Covered Code, include this CDDL HEADER in each 156ff6d951SJohn Birrell * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 166ff6d951SJohn Birrell * If applicable, add the following below this CDDL HEADER, with the 176ff6d951SJohn Birrell * fields enclosed by brackets "[]" replaced with your own identifying 186ff6d951SJohn Birrell * information: Portions Copyright [yyyy] [name of copyright owner] 196ff6d951SJohn Birrell * 206ff6d951SJohn Birrell * CDDL HEADER END 216ff6d951SJohn Birrell */ 22*ba6cafe2SMark Johnston 236ff6d951SJohn Birrell /* 246ff6d951SJohn Birrell * Copyright 2003 Sun Microsystems, Inc. All rights reserved. 256ff6d951SJohn Birrell * Use is subject to license terms. 266ff6d951SJohn Birrell */ 276ff6d951SJohn Birrell 28*ba6cafe2SMark Johnston /* 29*ba6cafe2SMark Johnston * Copyright (c) 2012 by Delphix. All rights reserved. 30*ba6cafe2SMark Johnston */ 31*ba6cafe2SMark Johnston 326ff6d951SJohn Birrell #ifndef _DT_REGSET_H 336ff6d951SJohn Birrell #define _DT_REGSET_H 346ff6d951SJohn Birrell 356ff6d951SJohn Birrell #include <sys/types.h> 366ff6d951SJohn Birrell 376ff6d951SJohn Birrell #ifdef __cplusplus 386ff6d951SJohn Birrell extern "C" { 396ff6d951SJohn Birrell #endif 406ff6d951SJohn Birrell 416ff6d951SJohn Birrell typedef struct dt_regset { 426ff6d951SJohn Birrell ulong_t dr_size; /* number of registers in set */ 436ff6d951SJohn Birrell ulong_t *dr_bitmap; /* bitmap of active registers */ 446ff6d951SJohn Birrell } dt_regset_t; 456ff6d951SJohn Birrell 466ff6d951SJohn Birrell extern dt_regset_t *dt_regset_create(ulong_t); 476ff6d951SJohn Birrell extern void dt_regset_destroy(dt_regset_t *); 486ff6d951SJohn Birrell extern void dt_regset_reset(dt_regset_t *); 496ff6d951SJohn Birrell extern int dt_regset_alloc(dt_regset_t *); 506ff6d951SJohn Birrell extern void dt_regset_free(dt_regset_t *, int); 51*ba6cafe2SMark Johnston extern void dt_regset_assert_free(dt_regset_t *); 526ff6d951SJohn Birrell 536ff6d951SJohn Birrell #ifdef __cplusplus 546ff6d951SJohn Birrell } 556ff6d951SJohn Birrell #endif 566ff6d951SJohn Birrell 576ff6d951SJohn Birrell #endif /* _DT_REGSET_H */ 58