summaryrefslogtreecommitdiff
path: root/usr/src/uts/common/sys/scsi
diff options
context:
space:
mode:
authorlh195018 <none@none>2006-05-09 19:50:56 -0700
committerlh195018 <none@none>2006-05-09 19:50:56 -0700
commit2439af7605af3f1ede6f8a92500e6101898f6512 (patch)
treed16f75c47034325e4410c53d513966aab1ecedf3 /usr/src/uts/common/sys/scsi
parentbc946ef3d51a883d2aa15b39f2d8b03a119e26ca (diff)
downloadillumos-gate-2439af7605af3f1ede6f8a92500e6101898f6512.tar.gz
PSARC 2006/018 cdb length capability
6322028 Need SCSA mechanism to detect maximum length CDB support
Diffstat (limited to 'usr/src/uts/common/sys/scsi')
-rw-r--r--usr/src/uts/common/sys/scsi/impl/services.h11
-rw-r--r--usr/src/uts/common/sys/scsi/targets/sddef.h1
2 files changed, 7 insertions, 5 deletions
diff --git a/usr/src/uts/common/sys/scsi/impl/services.h b/usr/src/uts/common/sys/scsi/impl/services.h
index 9f48d0aabf..aa99282b8c 100644
--- a/usr/src/uts/common/sys/scsi/impl/services.h
+++ b/usr/src/uts/common/sys/scsi/impl/services.h
@@ -2,9 +2,8 @@
* 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.
+ * 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
* or http://www.opensolaris.org/os/licensing.
@@ -20,7 +19,7 @@
* CDDL HEADER END
*/
/*
- * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -116,6 +115,7 @@ extern char *sense_keys[NUM_SENSE_KEYS + NUM_IMPL_SENSE_KEYS];
#define SCSI_CAP_SCSI_VERSION 17
#define SCSI_CAP_INTERCONNECT_TYPE 18
#define SCSI_CAP_LUN_RESET 19
+#define SCSI_CAP_CDB_LEN 20
#define SCSI_CAP_ASCII { \
"dma-max", "msg-out", "disconnect", "synchronous", \
"wide-xfer", "parity", "initiator-id", "untagged-qing", \
@@ -123,7 +123,8 @@ extern char *sense_keys[NUM_SENSE_KEYS + NUM_IMPL_SENSE_KEYS];
"sector-size", "total-sectors", "geometry", \
"reset-notification", "qfull-retries", \
"qfull-retry-interval", "scsi-version", \
- "interconnect-type", "lun-reset", NULL }
+ "interconnect-type", "lun-reset", \
+ "max-cdb-length", NULL }
/*
* Definitions used by some capabilities
diff --git a/usr/src/uts/common/sys/scsi/targets/sddef.h b/usr/src/uts/common/sys/scsi/targets/sddef.h
index bfca23ffeb..745a7bf945 100644
--- a/usr/src/uts/common/sys/scsi/targets/sddef.h
+++ b/usr/src/uts/common/sys/scsi/targets/sddef.h
@@ -301,6 +301,7 @@ struct sd_lun {
int un_mincdb; /* Smallest CDB to use */
int un_maxcdb; /* Largest CDB to use */
+ int un_max_hba_cdb; /* Largest CDB supported by HBA */
int un_status_len;
int un_pkt_flags;