fc_ulpif.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 _FC_ULPIF_H
#define _FC_ULPIF_H
#ifdef __cplusplus
extern "C" {
#endif
/*
* fctl does not support downward compatibility. When there is any change of
* non-private structure or non-static interface in fctl, the module revision
* number needs to be bumped up here, and for each ulp, the module revision
* number in fc_ulp_modinfo needs to be updated.
*/
#define FCTL_ULP_MODREV_1 1
#define FCTL_ULP_MODREV_2 2
#define FCTL_ULP_MODREV_3 3
#define FCTL_ULP_MODREV_4 4
/*
* Flag definitions to fc_ulp_get_portmap function.
*/
#define FC_ULP_PLOGI_DONTCARE 0
#define FC_ULP_PLOGI_PRESERVE 1
#define FC_ULP_DEVICE_OFFLINE 0
#define FC_ULP_DEVICE_ONLINE 1
/*
* fc_ulp_port_reset() command codes
*/
#define FC_RESET_PORT 0x01
#define FC_RESET_ADAPTER 0x02
#define FC_RESET_DUMP 0x03
#define FC_RESET_CRASH 0x04
/*
* port attach callback commands
*/
typedef enum fc_attach_cmd {
/*
* port detach callback commands
*/
typedef enum fc_detach_cmd {
typedef struct fc_portmap {
int map_state;
int map_flags; /* Status flags */
int map_type; /* OLD, NEW, CHANGED */
} fc_portmap_t;
typedef struct ulp_port_info {
struct modlinkage *port_linkage;
int port_fca_pkt_size;
int port_fca_max_exch;
typedef struct ulp_modinfo {
char *ulp_name; /* ULP Name */
int ulp_statec_mask; /* state change mask */
#if !defined(__lint)
#endif /* __lint */
fc_portmap_t *map);
#ifdef __cplusplus
}
#endif
#endif /* _FC_ULPIF_H */