/*
* 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 _SYS_FIBRE_CHANNEL_IMPL_FCPH_H
#define _SYS_FIBRE_CHANNEL_IMPL_FCPH_H
#ifdef __cplusplus
extern "C" {
#endif
#if !defined(_BIT_FIELDS_LTOH) && !defined(_BIT_FIELDS_HTOL)
#endif /* _BIT_FIELDS_LTOH */
/* legal values for r_ctl */
/* legal values for r_ctl: Device Data */
/* legal values for r_ctl: Basic Link Services, type 0 */
/* legal values for r_ctl: Extended Link Services, type 1 */
/* legal values for r_ctl: Link Control */
/* type field definitions for Link Data frames: */
/* type field definitions for Device Data frames (from FC-PH 4.1): */
/* values for DF_CTL */
/* Well known addresses ... */
(x) <= FC_WELL_KNOWN_END) || \
((x) >= NPORT_ID_DOM_CTLR_START && \
(x) <= NPORT_ID_DOM_CTLR_END))
/*
* frame header
*/
typedef struct frame_header {
#if defined(_BIT_FIELDS_LTOH)
#else
d_id : 24;
s_id : 24;
f_ctl : 24;
df_ctl : 8,
seq_cnt : 16;
rx_id : 16;
#endif /* _BIT_FIELDS_LTOH */
#if !defined(__lint)
#endif /* __lint */
#ifdef __cplusplus
}
#endif
#endif /* _SYS_FIBRE_CHANNEL_IMPL_FCPH_H */