Print this page
4630 clean stale references to ddi_iopb_alloc and ddi_iopb_free
4634 undocument scsi_hba_attach() and ddi_dma_lim(9s)

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/io/scsi/impl/scsi_resource.c
          +++ new/usr/src/uts/common/io/scsi/impl/scsi_resource.c
↓ open down ↓ 70 lines elided ↑ open up ↑
  71   71          ASSERT(!(bflags & ~(B_READ | B_WRITE)));
  72   72          bflags &= (B_READ | B_WRITE);
  73   73          bp->b_un.b_addr = 0;
  74   74  
  75   75          if (datalen) {
  76   76                  pdip = (A_TO_TRAN(ap))->tran_hba_dip;
  77   77  
  78   78                  /*
  79   79                   * use i_ddi_mem_alloc() for now until we have an interface to
  80   80                   * allocate memory for DMA which doesn't require a DMA handle.
  81      -                 * ddi_iopb_alloc() is obsolete and we want more flexibility in
  82      -                 * controlling the DMA address constraints.
  83   81                   */
  84   82                  while (i_ddi_mem_alloc(pdip, &scsi_alloc_attr, datalen,
  85   83                      ((callback == SLEEP_FUNC) ? 1 : 0), 0, NULL,
  86   84                      &bp->b_un.b_addr, &rlen, NULL) != DDI_SUCCESS) {
  87   85                          if (callback == SLEEP_FUNC) {
  88   86                                  delay(drv_usectohz(10000));
  89   87                          } else {
  90   88                                  if (!in_bp)
  91   89                                          freerbuf(bp);
  92   90                                  goto no_resource;
↓ open down ↓ 656 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX