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_subr.c
          +++ new/usr/src/uts/common/io/scsi/impl/scsi_subr.c
↓ open down ↓ 335 lines elided ↑ open up ↑
 336  336          struct buf      local;
 337  337          size_t          rlen;
 338  338  
 339  339          if (!datap)
 340  340                  return (pkt);
 341  341          *datap = (caddr_t)0;
 342  342          bzero((caddr_t)&local, sizeof (struct buf));
 343  343  
 344  344          /*
 345  345           * use i_ddi_mem_alloc() for now until we have an interface to allocate
 346      -         * memory for DMA which doesn't require a DMA handle. ddi_iopb_alloc()
 347      -         * is obsolete and we want more flexibility in controlling the DMA
 348      -         * address constraints.
      346 +         * memory for DMA which doesn't require a DMA handle.
 349  347           */
 350  348          if (i_ddi_mem_alloc(pdip, &scsi_alloc_attr, datalen,
 351  349              ((func == SLEEP_FUNC) ? 1 : 0), 0, NULL, &local.b_un.b_addr, &rlen,
 352  350              NULL) != DDI_SUCCESS) {
 353  351                  return (pkt);
 354  352          }
 355  353          if (readflag)
 356  354                  local.b_flags = B_READ;
 357  355          local.b_bcount = datalen;
 358  356          pkt = (*tran->tran_init_pkt) (ap, NULL, &local,
↓ open down ↓ 2340 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX