xref: /titanic_44/usr/src/uts/sun4u/opl/sys/scfd/opcioif.h (revision 7b77b0178ffc12e4b7f782b15747abb8ece8a563)
1*7b77b017Sjimand /*
2*7b77b017Sjimand  * CDDL HEADER START
3*7b77b017Sjimand  *
4*7b77b017Sjimand  * The contents of this file are subject to the terms of the
5*7b77b017Sjimand  * Common Development and Distribution License (the "License").
6*7b77b017Sjimand  * You may not use this file except in compliance with the License.
7*7b77b017Sjimand  *
8*7b77b017Sjimand  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*7b77b017Sjimand  * or http://www.opensolaris.org/os/licensing.
10*7b77b017Sjimand  * See the License for the specific language governing permissions
11*7b77b017Sjimand  * and limitations under the License.
12*7b77b017Sjimand  *
13*7b77b017Sjimand  * When distributing Covered Code, include this CDDL HEADER in each
14*7b77b017Sjimand  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*7b77b017Sjimand  * If applicable, add the following below this CDDL HEADER, with the
16*7b77b017Sjimand  * fields enclosed by brackets "[]" replaced with your own identifying
17*7b77b017Sjimand  * information: Portions Copyright [yyyy] [name of copyright owner]
18*7b77b017Sjimand  *
19*7b77b017Sjimand  * CDDL HEADER END
20*7b77b017Sjimand  */
21*7b77b017Sjimand /*
22*7b77b017Sjimand  * All Rights Reserved, Copyright (c) FUJITSU LIMITED 2006
23*7b77b017Sjimand  */
24*7b77b017Sjimand 
25*7b77b017Sjimand #ifndef	_SYS_OPCIOIF_H
26*7b77b017Sjimand #define	_SYS_OPCIOIF_H
27*7b77b017Sjimand 
28*7b77b017Sjimand #pragma ident	"%Z%%M%	%I%	%E% SMI"
29*7b77b017Sjimand 
30*7b77b017Sjimand #ifdef	__cplusplus
31*7b77b017Sjimand extern "C" {
32*7b77b017Sjimand #endif
33*7b77b017Sjimand 
34*7b77b017Sjimand #include <sys/ioccom.h>
35*7b77b017Sjimand 
36*7b77b017Sjimand /*
37*7b77b017Sjimand  * ioctl
38*7b77b017Sjimand  *
39*7b77b017Sjimand  * Note:  The ioctl definitions are split between opcio.h (closed) and
40*7b77b017Sjimand  * opcioif.h (open).  All definitions required for the exported scfd
41*7b77b017Sjimand  * interface should be in opcioif.h (open).
42*7b77b017Sjimand  */
43*7b77b017Sjimand #define	SCFIOC			'p'<<8
44*7b77b017Sjimand 
45*7b77b017Sjimand #define	SCFIOCGETDISKLED	(SCFIOC|101|0x80040000)
46*7b77b017Sjimand #define	SCFIOCSETDISKLED	(SCFIOC|102|0x80040000)
47*7b77b017Sjimand #define	SCFIOCSETPHPINFO	(SCFIOC|1|0xe0000000)
48*7b77b017Sjimand 
49*7b77b017Sjimand #define	SCF_DISK_LED_PATH_MAX	512
50*7b77b017Sjimand 
51*7b77b017Sjimand /* for led field */
52*7b77b017Sjimand #define	SCF_DISK_LED_ON		0x01
53*7b77b017Sjimand #define	SCF_DISK_LED_BLINK	0x02
54*7b77b017Sjimand #define	SCF_DISK_LED_OFF	0x04
55*7b77b017Sjimand 
56*7b77b017Sjimand typedef struct scfiocgetdiskled {
57*7b77b017Sjimand 	unsigned char	path[SCF_DISK_LED_PATH_MAX];
58*7b77b017Sjimand 	unsigned char	led;
59*7b77b017Sjimand } scfiocgetdiskled_t;
60*7b77b017Sjimand 
61*7b77b017Sjimand typedef struct scfsetphpinfo {
62*7b77b017Sjimand 	unsigned char	buf[65536];
63*7b77b017Sjimand 	unsigned int	size;
64*7b77b017Sjimand } scfsetphpinfo_t;
65*7b77b017Sjimand 
66*7b77b017Sjimand #ifdef	__cplusplus
67*7b77b017Sjimand }
68*7b77b017Sjimand #endif
69*7b77b017Sjimand 
70*7b77b017Sjimand #endif /* _SYS_OPCIOIF_H */
71