/*
* 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 2014 Garrett D'Amore <garrett@damore.org>
*
* Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _FC_TYPES_H
#define _FC_TYPES_H
/*
* Types for FC Transport subsystems.
*
* This file picks up specific as well as generic type
* defines, and also serves as a wrapper for many common
* includes.
*/
#ifdef __cplusplus
extern "C" {
#endif
#if !defined(_BIT_FIELDS_LTOH) && !defined(_BIT_FIELDS_HTOL)
#endif /* _BIT_FIELDS_LTOH */
#ifdef _KERNEL
#endif /* _KERNEL */
#ifndef _SYS_SCSI_SCSI_TYPES_H
typedef void *opaque_t;
#endif /* _SYS_SCSI_SCSI_TYPES_H */
/* Sysevent defs */
/* T11 FC-HBA state change tracking */
typedef struct port_id {
#if defined(_BIT_FIELDS_LTOH)
#else
#endif /* _BIT_FIELDS_LTOH */
} fc_portid_t;
typedef struct hard_addr {
#if defined(_BIT_FIELDS_LTOH)
#else
#endif /* _BIT_FIELDS_LTOH */
typedef struct port_type {
#if defined(_BIT_FIELDS_LTOH)
#else
rsvd : 24;
#endif /* _BIT_FIELDS_LTOH */
/*
* FCA post reset behavior
*/
typedef enum fc_reset_action {
/*
* FCA DMA behavior on Unaligned buffers
*/
typedef enum fc_dma_behavior {
/* buffer or byte counts */
/*
* FCA FCP command and response allocation in DVMA space
*/
typedef enum fc_fcp_dma {
} fc_fcp_dma_t;
/*
* struct to track rscn info both within the transport layer
* and between the ULPs and transport.
*/
typedef struct fc_ulp_rscn_info {
/*
* Define a value for ulp_rscn_count to indicate that the contents
* of the fc_ulp_rscn_info_t struct are invalid. Note that some parts of the
* code assume that this value is zero, i.e., they use kmem_zalloc().
*/
/*
* FC Transport exported header files to all Consumers
*/
#ifdef _KERNEL
/*
* For drivers which do not include these - must be last
*/
#endif /* _KERNEL */
#ifdef __cplusplus
}
#endif
#endif /* _FC_TYPES_H */