Print this page
8368 remove warlock leftovers from usr/src/uts

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/io/1394/adapters/hci1394_buf.c
          +++ new/usr/src/uts/common/io/1394/adapters/hci1394_buf.c
↓ open down ↓ 16 lines elided ↑ open up ↑
  17   17   * fields enclosed by brackets "[]" replaced with your own identifying
  18   18   * information: Portions Copyright [yyyy] [name of copyright owner]
  19   19   *
  20   20   * CDDL HEADER END
  21   21   */
  22   22  /*
  23   23   * Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
  24   24   * Use is subject to license terms.
  25   25   */
  26   26  
  27      -#pragma ident   "%Z%%M% %I%     %E% SMI"
  28      -
  29   27  /*
  30   28   * hci1394_buf.c
  31   29   *   These routines handle IO mapped memory.  They include routines to alloc and
  32   30   *   free  IO mapped memory and a routine to get the adapters default dma
  33   31   *   attributes. These routines are meant to be called from the base context.
  34   32   *   They should not be called from an interrupt handler.
  35   33   */
  36   34  
  37   35  #include <sys/conf.h>
  38   36  #include <sys/ddi.h>
↓ open down ↓ 61 lines elided ↑ open up ↑
 100   98          buf = kmem_alloc(sizeof (hci1394_buf_t), KM_SLEEP);
 101   99  
 102  100          /* setup the return parameter */
 103  101          *handle = buf;
 104  102  
 105  103          /* save away pointer to general info */
 106  104          buf->bu_drvinfo = drvinfo;
 107  105  
 108  106          /* Get the default DMA attributes and override sgllen and alignment */
 109  107  
 110      -        _NOTE(SCHEME_PROTECTS_DATA("unique (on stack)", ddi_dma_attr_t))
 111  108          hci1394_buf_attr_get(&dma_attr);
 112  109          dma_attr.dma_attr_sgllen = parms->bp_max_cookies;
 113  110          dma_attr.dma_attr_align = parms->bp_alignment;
 114  111  
 115  112          status = ddi_dma_alloc_handle(drvinfo->di_dip, &dma_attr,
 116  113              DDI_DMA_SLEEP, NULL, &buf->bu_dma_handle);
 117  114          if (status != DDI_SUCCESS) {
 118  115                  kmem_free(buf, sizeof (hci1394_buf_t));
 119  116                  TNF_PROBE_0(hci1394_buf_alloc_dah_fail, HCI1394_TNF_HAL_ERROR,
 120  117                      "");
↓ open down ↓ 70 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX