fctio.h revision fcf3ce441efd61da9bb2884968af01cb7c1452cc
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _FCTIO_H
#define _FCTIO_H
#ifdef __cplusplus
extern "C" {
#endif
/*
* fcio_xfer definitions
*/
#define FCTIO_XFER_NONE 0x00
#define FCTIO_XFER_READ 0x01
#define FCTIO_XFER_WRITE 0x02
typedef struct fctio {
} fctio_t;
#define FCT_HBA_LIST_VERSION 1
typedef struct fc_tgt_hba_list {
#define FCT_HBA_ADAPTER_ATTRIBUTES_VERSION 1
typedef struct fc_tgt_hba_adapter_attributes {
char Manufacturer[64];
char SerialNumber[64];
char Model[256];
char ModelDescription[256];
char NodeSymbolicName[256];
char HardwareVersion[256];
char DriverVersion[256];
char OptionROMVersion[256];
char FirmwareVersion[256];
char DriverName[256];
#define FCT_HBA_PORT_ATTRIBUTES_VERSION 1
typedef struct fc_tgt_hba_port_attributes {
char PortSymbolicName[256];
#define FCT_HBA_ADAPTER_PORT_STATS_VERSION 1
typedef struct fc_tgt_hba_adapter_port_stats {
/*
* Constant values derived from T11 FC-HBA
*/
#define FC_HBA_PORTTYPE_FLPORT 7
/*
*/
#define FC_HBA_PORTSPEED_UNKNOWN 0 /* Unknown - transceiver */
/* incable of reporting */
#define FCTIO_SUCCESS 0
#define FCTIO_FAILURE 1
#define FCTIO_BADWWN 2
#define FCTIO_MOREDATA 3
#define FCTIO_OUTOFBOUNDS 4
/* Sysevent defs */
#define EC_SUNFC "EC_sunfc"
#define ESC_SUNFC_PORT_ATTACH "ESC_sunfc_port_attach"
#define ESC_SUNFC_PORT_DETACH "ESC_sunfc_port_detach"
#define ESC_SUNFC_PORT_ONLINE "ESC_sunfc_port_online"
#define ESC_SUNFC_PORT_OFFLINE "ESC_sunfc_port_offline"
#define ESC_SUNFC_PORT_RSCN "ESC_sunfc_port_rscn"
#define ESC_SUNFC_TARGET_ADD "ESC_sunfc_target_add"
#define ESC_SUNFC_TARGET_REMOVE "ESC_sunfc_target_remove"
#ifdef __cplusplus
}
#endif
#endif /* _FCTIO_H */