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