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)
*** 341,353 ****
*datap = (caddr_t)0;
bzero((caddr_t)&local, sizeof (struct buf));
/*
* 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(pdip, &scsi_alloc_attr, datalen,
((func == SLEEP_FUNC) ? 1 : 0), 0, NULL, &local.b_un.b_addr, &rlen,
NULL) != DDI_SUCCESS) {
return (pkt);
--- 341,351 ----
*datap = (caddr_t)0;
bzero((caddr_t)&local, sizeof (struct buf));
/*
* 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(pdip, &scsi_alloc_attr, datalen,
((func == SLEEP_FUNC) ? 1 : 0), 0, NULL, &local.b_un.b_addr, &rlen,
NULL) != DDI_SUCCESS) {
return (pkt);