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/intel/io/dktp/dcdev/dadk.c
          +++ new/usr/src/uts/intel/io/dktp/dcdev/dadk.c
↓ open down ↓ 1042 lines elided ↑ open up ↑
1043 1043          }
1044 1044  
1045 1045          iobp->b_psec  = LBLK2SEC(blkno, dadkp->dad_blkshf);
1046 1046          iobp->b_pbyteoff = (blkno & ((1<<dadkp->dad_blkshf) - 1)) << SCTRSHFT;
1047 1047          iobp->b_pbytecnt = ((iobp->b_pbyteoff + xfer + dadkp->DAD_SECSIZ - 1)
1048 1048              >> dadkp->dad_secshf) << dadkp->dad_secshf;
1049 1049  
1050 1050          bp->b_un.b_addr = 0;
1051 1051          /*
1052 1052           * use i_ddi_mem_alloc() for now until we have an interface to allocate
1053      -         * memory for DMA which doesn't require a DMA handle. ddi_iopb_alloc()
1054      -         * is obsolete and we want more flexibility in controlling the DMA
1055      -         * address constraints..
     1053 +         * memory for DMA which doesn't require a DMA handle.
1056 1054           */
1057 1055          if (i_ddi_mem_alloc((dadkp->dad_sd)->sd_dev, &dadk_alloc_attr,
1058 1056              (size_t)iobp->b_pbytecnt, ((kmsflg == KM_SLEEP) ? 1 : 0), 0, NULL,
1059 1057              &bp->b_un.b_addr, &rlen, NULL) != DDI_SUCCESS) {
1060 1058                  freerbuf(bp);
1061 1059                  kmem_free(iobp, sizeof (*iobp));
1062 1060                  return (NULL);
1063 1061          }
1064 1062          iobp->b_flag |= IOB_BPALLOC | IOB_BPBUFALLOC;
1065 1063          iobp->b_bp = bp;
↓ open down ↓ 777 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX