Print this page
4888 Undocument dma_req(9s)
4884 EOF scsi_hba_attach
4886 EOF ddi_dmae_getlim
4887 EOF ddi_iomin
4634 undocument scsi_hba_attach() and ddi_dma_lim(9s)
4630 clean stale references to ddi_iopb_alloc and ddi_iopb_free
   1 '\" te
   2 .\"  Copyright (c) 2007, Sun Microsystems, Inc., All Rights Reserved

   3 .\" 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.
   4 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing.  See the License for the specific language governing permissions and limitations under the License.
   5 .\" 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]
   6 .TH SCSI_IFGETCAP 9F "Oct 16, 2007"
   7 .SH NAME
   8 scsi_ifgetcap, scsi_ifsetcap \- get/set SCSI transport capability
   9 .SH SYNOPSIS
  10 .LP
  11 .nf
  12 #include <sys/scsi/scsi.h>
  13 
  14 
  15 
  16 \fBint\fR \fBscsi_ifgetcap\fR(\fBstruct scsi_address *\fR\fIap\fR, \fBchar *\fR\fIcap\fR, \fBint\fR \fIwhom\fR);
  17 .fi
  18 
  19 .LP
  20 .nf
  21 \fBint\fR \fBscsi_ifsetcap\fR(\fBstruct scsi_address *\fR\fIap\fR, \fBchar *\fR\fIcap\fR, \fBint\fR \fIvalue\fR,
  22      \fBint\fR \fIwhom\fR);
  23 .fi
  24 
  25 .SH INTERFACE LEVEL
  26 .sp


 185 enables.
 186 .RE
 187 
 188 .sp
 189 .ne 2
 190 .na
 191 \fB\fBauto-rqsense\fR\fR
 192 .ad
 193 .RS 24n
 194 Host adapter capability that supports auto request sense on check conditions:
 195 \fB0\fR disables, \fB1\fR enables.
 196 .RE
 197 
 198 .sp
 199 .ne 2
 200 .na
 201 \fB\fBsector-size\fR\fR
 202 .ad
 203 .RS 24n
 204 Capability that is set by the target driver to inform the \fBHBA\fR of the
 205 granularity, in bytes, of the \fBDMA\fR breakup. The \fBHBA\fR \fBDMA\fR limit
 206 structure is set to reflect the byte total of this setting. See
 207 \fBddi_dma_lim_sparc\fR(9S) or \fBddi_dma_lim_x86\fR(9S). The \fBsector-size\fR
 208 should be set to the size of the physical disk sector. The capability defaults
 209 to 512 bytes.
 210 .RE
 211 
 212 .sp
 213 .ne 2
 214 .na
 215 \fB\fBtotal-sectors\fR\fR
 216 .ad
 217 .RS 24n
 218 Capability that is set by the target driver to inform the \fBHBA\fR of the
 219 total number of sectors on the device returned by the \fBSCSI\fR \fBget
 220 capacity\fR command. This capability must be set before the target driver
 221 ``gets'' the \fBgeometry\fR capability.
 222 .RE
 223 
 224 .sp
 225 .ne 2
 226 .na
 227 \fB\fBgeometry\fR\fR


 411 .SH ATTRIBUTES
 412 .sp
 413 .LP
 414 See \fBattributes\fR(5) for descriptions of the following attributes:
 415 .sp
 416 
 417 .sp
 418 .TS
 419 box;
 420 c | c
 421 l | l .
 422 ATTRIBUTE TYPE  ATTRIBUTE VALUE
 423 _
 424 Interface Stability     Committed
 425 .TE
 426 
 427 .SH SEE ALSO
 428 .sp
 429 .LP
 430 \fBtran_reset\fR(9E), \fBscsi_hba_lookup_capstr\fR(9F), \fBscsi_reset\fR(9F),
 431 \fBscsi_reset_notify\fR(9F), \fBddi_dma_lim_sparc\fR(9S),
 432 \fBddi_dma_lim_x86\fR(9S), \fBscsi_address\fR(9S), \fBscsi_arq_status\fR(9S)
 433 .sp
 434 .LP
 435 \fIWriting Device Drivers\fR
   1 '\" te
   2 .\"  Copyright (c) 2007, Sun Microsystems, Inc., All Rights Reserved
   3 .\"  Copyright (c) 2014 Garrett D'Amore <garrett@damore.org>
   4 .\" 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.
   5 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing.  See the License for the specific language governing permissions and limitations under the License.
   6 .\" 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]
   7 .TH SCSI_IFGETCAP 9F "May 24, 2014"
   8 .SH NAME
   9 scsi_ifgetcap, scsi_ifsetcap \- get/set SCSI transport capability
  10 .SH SYNOPSIS
  11 .LP
  12 .nf
  13 #include <sys/scsi/scsi.h>
  14 
  15 
  16 
  17 \fBint\fR \fBscsi_ifgetcap\fR(\fBstruct scsi_address *\fR\fIap\fR, \fBchar *\fR\fIcap\fR, \fBint\fR \fIwhom\fR);
  18 .fi
  19 
  20 .LP
  21 .nf
  22 \fBint\fR \fBscsi_ifsetcap\fR(\fBstruct scsi_address *\fR\fIap\fR, \fBchar *\fR\fIcap\fR, \fBint\fR \fIvalue\fR,
  23      \fBint\fR \fIwhom\fR);
  24 .fi
  25 
  26 .SH INTERFACE LEVEL
  27 .sp


 186 enables.
 187 .RE
 188 
 189 .sp
 190 .ne 2
 191 .na
 192 \fB\fBauto-rqsense\fR\fR
 193 .ad
 194 .RS 24n
 195 Host adapter capability that supports auto request sense on check conditions:
 196 \fB0\fR disables, \fB1\fR enables.
 197 .RE
 198 
 199 .sp
 200 .ne 2
 201 .na
 202 \fB\fBsector-size\fR\fR
 203 .ad
 204 .RS 24n
 205 Capability that is set by the target driver to inform the \fBHBA\fR of the
 206 granularity, in bytes, of the \fBDMA\fR breakup. The \fBHBA\fR \fBDMA\fR
 207 attributes structure is set to reflect the byte total of this setting. See
 208 \fBddi_dma_attribut\fR(9S). The \fBsector-size\fR
 209 should be set to the size of the physical disk sector. The capability defaults
 210 to 512 bytes.
 211 .RE
 212 
 213 .sp
 214 .ne 2
 215 .na
 216 \fB\fBtotal-sectors\fR\fR
 217 .ad
 218 .RS 24n
 219 Capability that is set by the target driver to inform the \fBHBA\fR of the
 220 total number of sectors on the device returned by the \fBSCSI\fR \fBget
 221 capacity\fR command. This capability must be set before the target driver
 222 ``gets'' the \fBgeometry\fR capability.
 223 .RE
 224 
 225 .sp
 226 .ne 2
 227 .na
 228 \fB\fBgeometry\fR\fR


 412 .SH ATTRIBUTES
 413 .sp
 414 .LP
 415 See \fBattributes\fR(5) for descriptions of the following attributes:
 416 .sp
 417 
 418 .sp
 419 .TS
 420 box;
 421 c | c
 422 l | l .
 423 ATTRIBUTE TYPE  ATTRIBUTE VALUE
 424 _
 425 Interface Stability     Committed
 426 .TE
 427 
 428 .SH SEE ALSO
 429 .sp
 430 .LP
 431 \fBtran_reset\fR(9E), \fBscsi_hba_lookup_capstr\fR(9F), \fBscsi_reset\fR(9F),
 432 \fBscsi_reset_notify\fR(9F), \fBddi_dma_attr\fR(9S),
 433 \fBscsi_address\fR(9S), \fBscsi_arq_status\fR(9S)
 434 .sp
 435 .LP
 436 \fIWriting Device Drivers\fR