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