1*ef884685Srb144127 /* 2*ef884685Srb144127 * CDDL HEADER START 3*ef884685Srb144127 * 4*ef884685Srb144127 * The contents of this file are subject to the terms of the 5*ef884685Srb144127 * Common Development and Distribution License (the "License"). 6*ef884685Srb144127 * You may not use this file except in compliance with the License. 7*ef884685Srb144127 * 8*ef884685Srb144127 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9*ef884685Srb144127 * or http://www.opensolaris.org/os/licensing. 10*ef884685Srb144127 * See the License for the specific language governing permissions 11*ef884685Srb144127 * and limitations under the License. 12*ef884685Srb144127 * 13*ef884685Srb144127 * When distributing Covered Code, include this CDDL HEADER in each 14*ef884685Srb144127 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15*ef884685Srb144127 * If applicable, add the following below this CDDL HEADER, with the 16*ef884685Srb144127 * fields enclosed by brackets "[]" replaced with your own identifying 17*ef884685Srb144127 * information: Portions Copyright [yyyy] [name of copyright owner] 18*ef884685Srb144127 * 19*ef884685Srb144127 * CDDL HEADER END 20*ef884685Srb144127 */ 21*ef884685Srb144127 22*ef884685Srb144127 /* 23*ef884685Srb144127 * Copyright 2007 Sun Microsystems, Inc. All rights reserved. 24*ef884685Srb144127 * Use is subject to license terms. 25*ef884685Srb144127 */ 26*ef884685Srb144127 27*ef884685Srb144127 #ifndef _SYS_DS_PRI_H_ 28*ef884685Srb144127 #define _SYS_DS_PRI_H_ 29*ef884685Srb144127 30*ef884685Srb144127 #pragma ident "%Z%%M% %I% %E% SMI" 31*ef884685Srb144127 32*ef884685Srb144127 #include <sys/types.h> 33*ef884685Srb144127 34*ef884685Srb144127 #ifdef __cplusplus 35*ef884685Srb144127 extern "C" { 36*ef884685Srb144127 #endif 37*ef884685Srb144127 38*ef884685Srb144127 /* 39*ef884685Srb144127 * ioctl info for ds_pri device 40*ef884685Srb144127 */ 41*ef884685Srb144127 42*ef884685Srb144127 #define DSPRIIOC ('d' << 24 | 's' << 16 | 'p' << 8) 43*ef884685Srb144127 44*ef884685Srb144127 #define DSPRI_GETINFO (DSPRIIOC | 1) /* Get PRI size */ 45*ef884685Srb144127 #define DSPRI_WAIT (DSPRIIOC | 2) /* Wait for PRI change */ 46*ef884685Srb144127 47*ef884685Srb144127 48*ef884685Srb144127 /* 49*ef884685Srb144127 * DSPRI_GETINFO 50*ef884685Srb144127 * Datamodel invariant. 51*ef884685Srb144127 */ 52*ef884685Srb144127 struct dspri_info { 53*ef884685Srb144127 uint64_t size; 54*ef884685Srb144127 uint64_t token; 55*ef884685Srb144127 }; 56*ef884685Srb144127 57*ef884685Srb144127 58*ef884685Srb144127 #ifdef __cplusplus 59*ef884685Srb144127 } 60*ef884685Srb144127 #endif 61*ef884685Srb144127 62*ef884685Srb144127 #endif /* _SYS_DS_PRI_H_ */ 63