/*
* 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 _SYS_SCSI_IMPL_SERVICES_H
#define _SYS_SCSI_IMPL_SERVICES_H
#ifdef __cplusplus
extern "C" {
#endif
/*
* Implementation services not classified by type
*/
#ifdef _KERNEL
struct scsi_key_strings {
int key;
char *message;
};
struct scsi_asq_key_strings {
char *message;
};
char *scsi_dname(int dtyp);
char *tmpstr);
struct scsi_key_strings *cmdlist,
struct scsi_extended_sense *sensep,
struct scsi_asq_key_strings *asc_list,
struct scsi_key_strings *cmdlist,
struct scsi_extended_sense *sensep);
/*PRINTFLIKE4*/
extern char *scsi_state_bits;
#define SCSI_ERR_ALL 0
/*
* Common Capability Strings Array
*/
#define SCSI_CAP_DMA_MAX 0
#define SCSI_CAP_ASCII { \
"dma-max", "msg-out", "disconnect", "synchronous", \
"wide-xfer", "parity", "initiator-id", "untagged-qing", \
"tagged-qing", "auto-rqsense", "linked-cmds", \
"sector-size", "total-sectors", "geometry", \
"reset-notification", "qfull-retries", \
"qfull-retry-interval", "scsi-version", \
"interconnect-type", "lun-reset", \
"max-cdb-length", "dma-max-arch", \
"tran-layer-retries", NULL }
/*
* Definitions used by some capabilities
*/
/* SCSI_CAP_SCSI_VERSION */
/* SCSI_CAP_INTERCONNECT_TYPE */
/* as new one(s) are added. */
/* Is always the last & max. */
/* INTERCONNECT TYPE STRINGS */
#define INTERCONNECT_TYPE_ASCII { \
"", \
NULL \
};
/*
* Compatibility...
*/
#endif /* _KERNEL */
#ifdef __cplusplus
}
#endif
#endif /* _SYS_SCSI_IMPL_SERVICES_H */