xref: /illumos-gate/usr/src/uts/sun4v/sys/ntwdt.h (revision 927a453e165c072d45bd6aa2945b3db0fce17c56)
1*927a453eSwentaoy /*
2*927a453eSwentaoy  * CDDL HEADER START
3*927a453eSwentaoy  *
4*927a453eSwentaoy  * The contents of this file are subject to the terms of the
5*927a453eSwentaoy  * Common Development and Distribution License (the "License").
6*927a453eSwentaoy  * You may not use this file except in compliance with the License.
7*927a453eSwentaoy  *
8*927a453eSwentaoy  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*927a453eSwentaoy  * or http://www.opensolaris.org/os/licensing.
10*927a453eSwentaoy  * See the License for the specific language governing permissions
11*927a453eSwentaoy  * and limitations under the License.
12*927a453eSwentaoy  *
13*927a453eSwentaoy  * When distributing Covered Code, include this CDDL HEADER in each
14*927a453eSwentaoy  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*927a453eSwentaoy  * If applicable, add the following below this CDDL HEADER, with the
16*927a453eSwentaoy  * fields enclosed by brackets "[]" replaced with your own identifying
17*927a453eSwentaoy  * information: Portions Copyright [yyyy] [name of copyright owner]
18*927a453eSwentaoy  *
19*927a453eSwentaoy  * CDDL HEADER END
20*927a453eSwentaoy  */
21*927a453eSwentaoy /*
22*927a453eSwentaoy  * Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
23*927a453eSwentaoy  * Use is subject to license terms.
24*927a453eSwentaoy  */
25*927a453eSwentaoy 
26*927a453eSwentaoy #ifndef _SYS_NTWDT_H
27*927a453eSwentaoy #define	_SYS_NTWDT_H
28*927a453eSwentaoy 
29*927a453eSwentaoy #pragma ident	"%Z%%M%	%I%	%E% SMI"
30*927a453eSwentaoy 
31*927a453eSwentaoy #ifdef	__cplusplus
32*927a453eSwentaoy extern "C" {
33*927a453eSwentaoy #endif
34*927a453eSwentaoy 
35*927a453eSwentaoy #include <sys/ioccom.h>
36*927a453eSwentaoy 
37*927a453eSwentaoy /* ioctls for application watchdog */
38*927a453eSwentaoy #define	LOMIOCDOGSTATE	_IOR('a', 6, lom_dogstate_t)
39*927a453eSwentaoy #define	LOMIOCDOGCTL	_IOW('a', 7, lom_dogctl_t)
40*927a453eSwentaoy #define	LOMIOCDOGTIME	_IOW('a', 8, uint_t)
41*927a453eSwentaoy #define	LOMIOCDOGPAT	_IO('a', 9)
42*927a453eSwentaoy 
43*927a453eSwentaoy typedef
44*927a453eSwentaoy struct {
45*927a453eSwentaoy 	int reset_enable;
46*927a453eSwentaoy 	int dog_enable;
47*927a453eSwentaoy } lom_dogctl_t;
48*927a453eSwentaoy 
49*927a453eSwentaoy typedef
50*927a453eSwentaoy struct {
51*927a453eSwentaoy 	int reset_enable;
52*927a453eSwentaoy 	int dog_enable;
53*927a453eSwentaoy 	uint_t dog_timeout;
54*927a453eSwentaoy } lom_dogstate_t;
55*927a453eSwentaoy 
56*927a453eSwentaoy #ifdef	__cplusplus
57*927a453eSwentaoy }
58*927a453eSwentaoy #endif
59*927a453eSwentaoy 
60*927a453eSwentaoy #endif	/* _SYS_NTWDT_H */
61