xref: /titanic_51/usr/src/uts/sun/sys/socalio.h (revision 5aefb6555731130ca4fd295960123d71f2d21fe8)
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 (the "License").
6  * You may not use this file except in compliance with the License.
7  *
8  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9  * or http://www.opensolaris.org/os/licensing.
10  * See the License for the specific language governing permissions
11  * and limitations under the License.
12  *
13  * When distributing Covered Code, include this CDDL HEADER in each
14  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15  * If applicable, add the following below this CDDL HEADER, with the
16  * fields enclosed by brackets "[]" replaced with your own identifying
17  * information: Portions Copyright [yyyy] [name of copyright owner]
18  *
19  * CDDL HEADER END
20  */
21 /*
22  * Copyright 1998 Sun Microsystems, Inc. All rights reserved.
23  * Use is subject to license terms.
24  */
25 
26 #ifndef _SYS_SOCALIO_H
27 #define	_SYS_SOCALIO_H
28 
29 #pragma ident	"%Z%%M%	%I%	%E% SMI"
30 
31 #ifdef __cplusplus
32 extern "C" {
33 #endif
34 
35 #include <sys/fc4/fcio.h>
36 
37 /*
38  * socalio.h - SOC+ Driver user I/O interface dfinitions
39  */
40 
41 #define	FCIO_BYPASS_DEV		(FIOC|176)
42 #define	FCIO_ADISC_ELS		(FIOC|178)
43 #define	FCIO_FORCE_OFFLINE	(FIOC|179)
44 #define	FCIO_LOADUCODE		(FIOC|180)
45 #define	FCIO_DUMPXRAM		(FIOC|181)
46 #define	FCIO_DUMPXRAMBUF	(FIOC|182)
47 #define	FCIO_LOOPBACK_INTERNAL	(FIOC|190)
48 #define	FCIO_LOOPBACK_MANUAL	(FIOC|191)
49 #define	FCIO_NO_LOOPBACK	(FIOC|192)
50 #define	FCIO_LOOPBACK_FRAME	(FIOC|193)
51 #define	FCIO_DIAG_NOP		(FIOC|194)
52 #define	FCIO_DIAG_RAW		(FIOC|195)
53 #define	FCIO_DIAG_XRAM		(FIOC|196)
54 #define	FCIO_DIAG_SOC		(FIOC|197)
55 #define	FCIO_DIAG_HCB		(FIOC|198)
56 #define	FCIO_DIAG_SOCLB		(FIOC|199)
57 #define	FCIO_DIAG_SRDSLB	(FIOC|200)
58 #define	FCIO_DIAG_EXTLB		(FIOC|201)
59 
60 struct adisc_payload {
61 	uint_t   adisc_magic;
62 	uint_t   adisc_hardaddr;
63 	uchar_t  adisc_portwwn[8];
64 	uchar_t  adisc_nodewwn[8];
65 	uint_t   adisc_dest;
66 };
67 
68 struct fclb {
69 	uchar_t  outbound_frame[24];
70 	uchar_t  inbound_frame[24];
71 };
72 
73 
74 #ifdef __cplusplus
75 }
76 #endif
77 
78 #endif /* !_SYS_SOCALIO_H */
79