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)
*** 1048,1060 ****
>> dadkp->dad_secshf) << dadkp->dad_secshf;
bp->b_un.b_addr = 0;
/*
* use i_ddi_mem_alloc() for now until we have an interface to allocate
! * memory for DMA which doesn't require a DMA handle. ddi_iopb_alloc()
! * is obsolete and we want more flexibility in controlling the DMA
! * address constraints..
*/
if (i_ddi_mem_alloc((dadkp->dad_sd)->sd_dev, &dadk_alloc_attr,
(size_t)iobp->b_pbytecnt, ((kmsflg == KM_SLEEP) ? 1 : 0), 0, NULL,
&bp->b_un.b_addr, &rlen, NULL) != DDI_SUCCESS) {
freerbuf(bp);
--- 1048,1058 ----
>> dadkp->dad_secshf) << dadkp->dad_secshf;
bp->b_un.b_addr = 0;
/*
* use i_ddi_mem_alloc() for now until we have an interface to allocate
! * memory for DMA which doesn't require a DMA handle.
*/
if (i_ddi_mem_alloc((dadkp->dad_sd)->sd_dev, &dadk_alloc_attr,
(size_t)iobp->b_pbytecnt, ((kmsflg == KM_SLEEP) ? 1 : 0), 0, NULL,
&bp->b_un.b_addr, &rlen, NULL) != DDI_SUCCESS) {
freerbuf(bp);