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

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/io/scsi/impl/scsi_hba.c
          +++ new/usr/src/uts/common/io/scsi/impl/scsi_hba.c
↓ open down ↓ 13 lines elided ↑ open up ↑
  14   14   * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15   15   * If applicable, add the following below this CDDL HEADER, with the
  16   16   * fields enclosed by brackets "[]" replaced with your own identifying
  17   17   * information: Portions Copyright [yyyy] [name of copyright owner]
  18   18   *
  19   19   * CDDL HEADER END
  20   20   */
  21   21  
  22   22  /*
  23   23   * Copyright (c) 1994, 2010, Oracle and/or its affiliates. All rights reserved.
  24      - * Copyright 2012 Garrett D'Amore <garrett@damore.org>.  All rights reserved.
       24 + * Copyright 2014 Garrett D'Amore <garrett@damore.org>
  25   25   */
  26   26  
  27   27  #include <sys/note.h>
  28   28  
  29   29  /*
  30   30   * Generic SCSI Host Bus Adapter interface implementation
  31   31   */
  32   32  #include <sys/scsi/scsi.h>
  33   33  #include <sys/scsi/generic/sas.h>
  34   34  #include <sys/file.h>
↓ open down ↓ 924 lines elided ↑ open up ↑
 959  959  scsi_tran_ext_free(
 960  960          scsi_hba_tran_t         *tran,
 961  961          size_t                  length)
 962  962  {
 963  963          if (tran->tran_extension != NULL) {
 964  964                  kmem_free(tran->tran_extension, length);
 965  965                  tran->tran_extension = NULL;
 966  966          }
 967  967  }
 968  968  
 969      -/*
 970      - * Obsolete: Called by an HBA to attach an instance of the driver
 971      - * Implement this older interface in terms of the new.
 972      - */
 973      -/*ARGSUSED*/
 974      -int
 975      -scsi_hba_attach(
 976      -        dev_info_t              *self,
 977      -        ddi_dma_lim_t           *hba_lim,
 978      -        scsi_hba_tran_t         *tran,
 979      -        int                     flags,
 980      -        void                    *hba_options)
 981      -{
 982      -        ddi_dma_attr_t          hba_dma_attr;
 983      -
 984      -        bzero(&hba_dma_attr, sizeof (ddi_dma_attr_t));
 985      -        hba_dma_attr.dma_attr_burstsizes = hba_lim->dlim_burstsizes;
 986      -        hba_dma_attr.dma_attr_minxfer = hba_lim->dlim_minxfer;
 987      -
 988      -        return (scsi_hba_attach_setup(self, &hba_dma_attr, tran, flags));
 989      -}
 990      -
 991  969  /*
 992  970   * Common nexus teardown code: used by both scsi_hba_detach() on SCSA HBA node
 993  971   * and iport_postdetach_tran_scsi_device() on a SCSA HBA iport node (and for
 994  972   * failure cleanup). Undo scsa_nexus_setup in reverse order.
 995  973   *
 996  974   * NOTE: Since we are in the Solaris IO framework, we can depend on
 997  975   * undocumented cleanup operations performed by other parts of the framework:
 998  976   * like detach_node() calling ddi_prop_remove_all() and
 999  977   * ddi_remove_minor_node(,NULL).
1000  978   */
↓ open down ↓ 9509 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX