/*
* 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 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _FCOEI_H
#define _FCOEI_H
#ifdef __cplusplus
extern "C" {
#endif
#ifdef _KERNEL
/*
* FCOEI logging
*/
extern int fcoei_use_ext_log;
extern void *fcoei_state;
{ \
if (fcoei_use_ext_log) { \
} \
}
/*
* IOCTL supporting stuff
*/
/*
* define common constants
*/
/*
* define RNID Management Info
*/
typedef enum event_type {
AE_EVENT_NONE = 0,
} event_type_e;
typedef struct fcoei_event {
/*
* event specific
*/
/*
* event related object
*/
void *ae_obj;
typedef struct fcoei_soft_state {
/*
* common data structure (fc_local_port_t) between leadville and fcoei
*/
void *ss_port;
/*
* common data structure between fcoei and fcoe module
*/
/*
* We will use ss_taskq to dispatch watchdog and other tasks
*/
/*
* current port state, speed. see fctl.h
*/
/*
*/
/*
* solicited and unsolicited exchanges timing checking
*/
/*
* ioctl related stuff
*/
/*
* fp-defined routines that fcoei will call
*/
/*
* fcoei-defined plogi response that fp will use
*/
/*
* fcoei-defined routines that fp will call
*/
/*
* Direct p2p information, and ss's fcid will be stored here
*/
/*
* RNID Management Information
*/
/*
* fcoei_frame - corresponding data structure to fcoe_frame/fc_frame
*/
typedef struct fcoei_frame {
/*
* will be used after the relevant frame mblk was released by ETH layer
*/
/*
* fcoei_exchange - corresponding data structure to leadville fc_packet
*/
typedef struct fcoei_exchange {
int xch_resid;
/*
* current cnt for timing check, when the exchange is created
*/
/*
* so fcoei exchange need do it
*/
/*
* to link leadville's stuff
*/
typedef struct fcoei_walk_arg
{
/*
* Define conversion and calculation macros
*/
{ \
}
{ \
}
{ \
}
{ \
do { \
} \
(mod_hash_val_t)&xch_tmp) == 0); \
}
{ \
do { \
} \
(mod_hash_val_t)&xch_tmp) == 0); \
}
{ \
}
/*
* Common functions defined in fcoei.c
*/
/*
* Common functions defined in fcoei_lv.c
*/
/*
* Common functions defined in fcoei_eth.c
*/
#endif /* _KERNEL */
#ifdef __cplusplus
}
#endif
#endif /* _FCOEI_H */