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