17c478bd9Sstevel@tonic-gate /* 2*db194e27Sadailey * CDDL HEADER START 37c478bd9Sstevel@tonic-gate * 4*db194e27Sadailey * The contents of this file are subject to the terms of the 5*db194e27Sadailey * Common Development and Distribution License (the "License"). 6*db194e27Sadailey * You may not use this file except in compliance with the License. 7*db194e27Sadailey * 8*db194e27Sadailey * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9*db194e27Sadailey * or http://www.opensolaris.org/os/licensing. 10*db194e27Sadailey * See the License for the specific language governing permissions 11*db194e27Sadailey * and limitations under the License. 12*db194e27Sadailey * 13*db194e27Sadailey * When distributing Covered Code, include this CDDL HEADER in each 14*db194e27Sadailey * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15*db194e27Sadailey * If applicable, add the following below this CDDL HEADER, with the 16*db194e27Sadailey * fields enclosed by brackets "[]" replaced with your own identifying 17*db194e27Sadailey * information: Portions Copyright [yyyy] [name of copyright owner] 18*db194e27Sadailey * 19*db194e27Sadailey * CDDL HEADER END 20*db194e27Sadailey */ 21*db194e27Sadailey /* 22*db194e27Sadailey * Copyright 1998 Sun Microsystems, Inc. All rights reserved. 23*db194e27Sadailey * Use is subject to license terms. 247c478bd9Sstevel@tonic-gate */ 257c478bd9Sstevel@tonic-gate 267c478bd9Sstevel@tonic-gate #ifndef _SYS_SOCALIO_H 277c478bd9Sstevel@tonic-gate #define _SYS_SOCALIO_H 287c478bd9Sstevel@tonic-gate 297c478bd9Sstevel@tonic-gate #pragma ident "%Z%%M% %I% %E% SMI" 307c478bd9Sstevel@tonic-gate 317c478bd9Sstevel@tonic-gate #ifdef __cplusplus 327c478bd9Sstevel@tonic-gate extern "C" { 337c478bd9Sstevel@tonic-gate #endif 347c478bd9Sstevel@tonic-gate 357c478bd9Sstevel@tonic-gate #include <sys/fc4/fcio.h> 367c478bd9Sstevel@tonic-gate 377c478bd9Sstevel@tonic-gate /* 387c478bd9Sstevel@tonic-gate * socalio.h - SOC+ Driver user I/O interface dfinitions 397c478bd9Sstevel@tonic-gate */ 407c478bd9Sstevel@tonic-gate 417c478bd9Sstevel@tonic-gate #define FCIO_BYPASS_DEV (FIOC|176) 427c478bd9Sstevel@tonic-gate #define FCIO_ADISC_ELS (FIOC|178) 437c478bd9Sstevel@tonic-gate #define FCIO_FORCE_OFFLINE (FIOC|179) 447c478bd9Sstevel@tonic-gate #define FCIO_LOADUCODE (FIOC|180) 457c478bd9Sstevel@tonic-gate #define FCIO_DUMPXRAM (FIOC|181) 467c478bd9Sstevel@tonic-gate #define FCIO_DUMPXRAMBUF (FIOC|182) 477c478bd9Sstevel@tonic-gate #define FCIO_LOOPBACK_INTERNAL (FIOC|190) 487c478bd9Sstevel@tonic-gate #define FCIO_LOOPBACK_MANUAL (FIOC|191) 497c478bd9Sstevel@tonic-gate #define FCIO_NO_LOOPBACK (FIOC|192) 507c478bd9Sstevel@tonic-gate #define FCIO_LOOPBACK_FRAME (FIOC|193) 517c478bd9Sstevel@tonic-gate #define FCIO_DIAG_NOP (FIOC|194) 527c478bd9Sstevel@tonic-gate #define FCIO_DIAG_RAW (FIOC|195) 537c478bd9Sstevel@tonic-gate #define FCIO_DIAG_XRAM (FIOC|196) 547c478bd9Sstevel@tonic-gate #define FCIO_DIAG_SOC (FIOC|197) 557c478bd9Sstevel@tonic-gate #define FCIO_DIAG_HCB (FIOC|198) 567c478bd9Sstevel@tonic-gate #define FCIO_DIAG_SOCLB (FIOC|199) 577c478bd9Sstevel@tonic-gate #define FCIO_DIAG_SRDSLB (FIOC|200) 587c478bd9Sstevel@tonic-gate #define FCIO_DIAG_EXTLB (FIOC|201) 597c478bd9Sstevel@tonic-gate 607c478bd9Sstevel@tonic-gate struct adisc_payload { 617c478bd9Sstevel@tonic-gate uint_t adisc_magic; 627c478bd9Sstevel@tonic-gate uint_t adisc_hardaddr; 637c478bd9Sstevel@tonic-gate uchar_t adisc_portwwn[8]; 647c478bd9Sstevel@tonic-gate uchar_t adisc_nodewwn[8]; 657c478bd9Sstevel@tonic-gate uint_t adisc_dest; 667c478bd9Sstevel@tonic-gate }; 677c478bd9Sstevel@tonic-gate 687c478bd9Sstevel@tonic-gate struct fclb { 697c478bd9Sstevel@tonic-gate uchar_t outbound_frame[24]; 707c478bd9Sstevel@tonic-gate uchar_t inbound_frame[24]; 717c478bd9Sstevel@tonic-gate }; 727c478bd9Sstevel@tonic-gate 737c478bd9Sstevel@tonic-gate 747c478bd9Sstevel@tonic-gate #ifdef __cplusplus 757c478bd9Sstevel@tonic-gate } 767c478bd9Sstevel@tonic-gate #endif 777c478bd9Sstevel@tonic-gate 787c478bd9Sstevel@tonic-gate #endif /* !_SYS_SOCALIO_H */ 79