/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright (c) 1998-1999 by Sun Microsystems, Inc.
* All rights reserved.
*/
#ifndef _SYS_FC4_FCIO_H
#define _SYS_FC4_FCIO_H
#pragma ident "%Z%%M% %I% %E% SMI"
/*
* Include any headers you depend on.
*/
#ifdef __cplusplus
extern "C" {
#endif
/*
* ioctl definitions
*/
typedef struct sf_al_addr_pair {
typedef struct sf_al_map {
short sf_count;
} sf_al_map_t;
struct rls_payload {
};
struct lilpmap {
};
struct socal_fm_version {
char *fcode_ver;
char *mcode_ver;
char *prom_ver;
};
/*
* kstat structures
*/
typedef struct sf_target_stats {
/*
* sf detected command timeouts,
* implies an ABTS
*/
/*
* SF task management(aborts,
* resets etc) failures
*/
/*
* SF_DATA length different from
* BURST_LEN
*/
/*
* unsolicited LOGOs recvd from
* target
*/
typedef struct sf_stats {
/*
* lip failures, ie, no ONLINE response
* after forcing lip
*/
/*
* failures
*/
/*
* pool, each chunk allows 128 packets
*/
} sf_stats_t;
/* SOCAL Host Adapter kstat structures. */
struct fc_pstats {
};
/*
* Fibre Channel Response codes
*/
#define FCAL_STATUS_OK 0
typedef struct socal_stats {
struct ifp_target_stats {
int logouts_recvd;
/*
* unsolicited LOGOs recvd from
* target
*/
int task_mgmt_failures;
int data_ro_mismatches;
int dl_len_mismatches;
};
struct ifp_stats {
};
/*
* Defines for the QLA21xx resp_status -- this is the command completion status
*/
#ifdef __cplusplus
}
#endif
#endif /* _SYS_FC4_FCIO_H */