xref: /titanic_52/usr/src/uts/sun/sys/socalio.h (revision bdfc6d18da790deeec2e0eb09c625902defe2498)
1 /*
2  * Copyright (c) 1995-1998 by Sun Microsystems, Inc.
3  * All rights reserved.
4  *
5  */
6 
7 #ifndef _SYS_SOCALIO_H
8 #define	_SYS_SOCALIO_H
9 
10 #pragma ident	"%Z%%M%	%I%	%E% SMI"
11 
12 #ifdef __cplusplus
13 extern "C" {
14 #endif
15 
16 #include <sys/fc4/fcio.h>
17 
18 /*
19  * socalio.h - SOC+ Driver user I/O interface dfinitions
20  */
21 
22 #define	FCIO_BYPASS_DEV		(FIOC|176)
23 #define	FCIO_ADISC_ELS		(FIOC|178)
24 #define	FCIO_FORCE_OFFLINE	(FIOC|179)
25 #define	FCIO_LOADUCODE		(FIOC|180)
26 #define	FCIO_DUMPXRAM		(FIOC|181)
27 #define	FCIO_DUMPXRAMBUF	(FIOC|182)
28 #define	FCIO_LOOPBACK_INTERNAL	(FIOC|190)
29 #define	FCIO_LOOPBACK_MANUAL	(FIOC|191)
30 #define	FCIO_NO_LOOPBACK	(FIOC|192)
31 #define	FCIO_LOOPBACK_FRAME	(FIOC|193)
32 #define	FCIO_DIAG_NOP		(FIOC|194)
33 #define	FCIO_DIAG_RAW		(FIOC|195)
34 #define	FCIO_DIAG_XRAM		(FIOC|196)
35 #define	FCIO_DIAG_SOC		(FIOC|197)
36 #define	FCIO_DIAG_HCB		(FIOC|198)
37 #define	FCIO_DIAG_SOCLB		(FIOC|199)
38 #define	FCIO_DIAG_SRDSLB	(FIOC|200)
39 #define	FCIO_DIAG_EXTLB		(FIOC|201)
40 
41 struct adisc_payload {
42 	uint_t   adisc_magic;
43 	uint_t   adisc_hardaddr;
44 	uchar_t  adisc_portwwn[8];
45 	uchar_t  adisc_nodewwn[8];
46 	uint_t   adisc_dest;
47 };
48 
49 struct fclb {
50 	uchar_t  outbound_frame[24];
51 	uchar_t  inbound_frame[24];
52 };
53 
54 
55 #ifdef __cplusplus
56 }
57 #endif
58 
59 #endif /* !_SYS_SOCALIO_H */
60