xref: /titanic_50/usr/src/uts/sun4u/mpxu/sys/lom_io.h (revision 554ff184129088135ad2643c1c9832174a17be88)
1 /*
2  * CDDL HEADER START
3  *
4  * The contents of this file are subject to the terms of the
5  * Common Development and Distribution License, Version 1.0 only
6  * (the "License").  You may not use this file except in compliance
7  * with the License.
8  *
9  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10  * or http://www.opensolaris.org/os/licensing.
11  * See the License for the specific language governing permissions
12  * and limitations under the License.
13  *
14  * When distributing Covered Code, include this CDDL HEADER in each
15  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16  * If applicable, add the following below this CDDL HEADER, with the
17  * fields enclosed by brackets "[]" replaced with your own identifying
18  * information: Portions Copyright [yyyy] [name of copyright owner]
19  *
20  * CDDL HEADER END
21  */
22 /*
23  * Copyright 2003 Sun Microsystems, Inc.  All rights reserved.
24  * Use is subject to license terms.
25  */
26 
27 #ifndef	_SYS_LOM_IO_H
28 #define	_SYS_LOM_IO_H
29 
30 #pragma ident	"%Z%%M%	%I%	%E% SMI"
31 
32 /*
33  * I/O header file for Alarm
34  */
35 
36 #ifdef __cplusplus
37 extern "C" {
38 #endif
39 
40 #include <sys/ioccom.h>
41 
42 /* ioctls for the alarm card */
43 
44 #define	TSIOCALSTATE	_IOWR('a', 1, ts_aldata_t)
45 #define	TSIOCALCTL	_IOW('a',  2, ts_aldata_t)
46 
47 /*
48  * Defines for identifying the four alarms
49  */
50 #define	ALARM_NUM_0	0
51 #define	ALARM_NUM_1	1
52 #define	ALARM_NUM_2	2
53 #define	ALARM_NUM_3	3
54 
55 #define	ALARM_CRITICAL	ALARM_NUM_0
56 #define	ALARM_MAJOR		ALARM_NUM_1
57 #define	ALARM_MINOR		ALARM_NUM_2
58 #define	ALARM_USER		ALARM_NUM_3
59 
60 /*
61  * typedefs used in alarm ioctl definitions
62  */
63 
64 typedef
65 struct {
66 		int alarm_no;
67 		int alarm_state;
68 } ts_aldata_t;
69 
70 /*
71  * Values for alarm_state
72  */
73 #define	ALARM_OFF	0
74 #define	ALARM_ON	1
75 
76 /*
77  * old commands to manipulate the control node
78  */
79 
80 #define	LOMIOCALCTL	TSIOCALCTL
81 #define	LOMIOCALSTATE	TSIOCALSTATE
82 
83 /*
84  * typedefs used in LOMlite ioctl definitions
85  */
86 
87 typedef
88 struct {
89 	int alarm_no;
90 	int state;
91 } lom_aldata_t;
92 
93 #ifdef __cplusplus
94 }
95 #endif
96 
97 #endif	/* _SYS_LOM_IO_H */
98