/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (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 2005 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _SYS_SCSI_ADAPTERS_SFVAR_H
#define _SYS_SCSI_ADAPTERS_SFVAR_H
#pragma ident "%Z%%M% %I% %E% SMI"
/*
* FC-AL FCP driver definitions
*/
#ifdef __cplusplus
extern "C" {
#endif
/*
* this is to generate unique minor numbers for each minor
* node type being created. because of the limitations by SCSA,
* we have to use minor number values from 32 to 63 for the HBA
* drivers use
*/
(SF_NUM_HASH_QUEUES-1))
/*
* sf driver needs to be sanitized for exporting some of its
*/
#ifdef _KERNEL
/*
* sf instance structure
*/
struct sf {
int sf_throttle;
int sf_ncmds;
int sf_ncmds_exp_avg;
int sf_device_count;
int sf_take_core;
/*
* Event handling
*/
/* check if unopened sf is being closed */
};
#define SF_EVENT_TAG_INSERT 0
/*
* pool of sf command response blocks
*/
struct sf_cr_pool {
};
/*
*/
struct sf_cr_free_elem {
};
/*
* list of targets for reset delay handling
*/
struct sf_reset_list {
};
/*
* structure used to store hotplug event callback info
*/
struct sf_hp_event {
int (*callback)();
void *arg;
};
/*
* sf per target structure
*/
struct sf_target {
union {
/* It's easier to shove around an int64 than a byte array */
uchar_t b[FCP_LUN_SIZE];
int64_t l;
} sft_lun;
/* XXXX The RAID LUN field is used to implement FCP Annex C */
#ifdef RAID_LUNS
#else
#endif
};
/*
* sf packet
*/
#ifdef _LP64
#else /* _ILP32 */
#endif
struct sf_pkt {
/* needs ZEROING */
/* needs to be INITialized */
/* needs to be INITialized */
/* needs to be INITialized */
/* default target private area */
};
/*
* Define size of extended scsi cmd pkt (ie. includes ARQ)
*/
/*
* These are the defined flags for this structure.
*/
/* kmem_alloc'd */
struct sf_els_hdr {
};
union sf_els_cmd {
};
union sf_els_rsp {
};
struct sf_hp_elem {
int what;
};
#define SF_ONLINE 0
#define FALSE 0
/*
* The initiator must allocate a minimum of 16 bytes for the response
* to the REPORT_LUNS command. Since there is 8 bytes of overhead and
* each LUN is 4 bytes, this means that the minimum size is 2 LUNs. We
* will define the structure that way to prevent any spurious check
* conditions.
*
* There is no maximum size for the response.
*
* By default we support 256 LUNs for the moment, which means 256*8+16
* or 2064 bytes total size.
*/
+2*sizeof (uint32_t))
/*
* SCSI Report_Luns Data
*
* Format of data returned as a result of an REPORT_LUNS command.
*
*/
struct scsi_report_luns {
/* Number of bytes of data the target has available to send. */
};
#endif /* _KERNEL */
#ifdef __cplusplus
}
#endif
#endif /* _SYS_SCSI_ADAPTERS_SFVAR_H */