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