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/targets/st.c
          +++ new/usr/src/uts/common/io/scsi/targets/st.c
↓ open down ↓ 1682 lines elided ↑ open up ↑
1683 1683                  ri->privatelen = sizeof (pkt_info);
1684 1684          }
1685 1685  
1686 1686          un->un_sbufp = getrbuf(km_flags);
1687 1687          un->un_recov_buf = getrbuf(km_flags);
1688 1688  
1689 1689          un->un_uscsi_rqs_buf = kmem_alloc(SENSE_LENGTH, KM_SLEEP);
1690 1690  
1691 1691          /*
1692 1692           * use i_ddi_mem_alloc() for now until we have an interface to allocate
1693      -         * memory for DMA which doesn't require a DMA handle. ddi_iopb_alloc()
1694      -         * is obsolete and we want more flexibility in controlling the DMA
1695      -         * address constraints.
     1693 +         * memory for DMA which doesn't require a DMA handle.
1696 1694           */
1697 1695          (void) i_ddi_mem_alloc(devp->sd_dev, &st_alloc_attr,
1698 1696              sizeof (struct seq_mode), ((km_flags == KM_SLEEP) ? 1 : 0), 0,
1699 1697              NULL, (caddr_t *)&un->un_mspl, &rlen, NULL);
1700 1698  
1701 1699          (void) i_ddi_mem_alloc(devp->sd_dev, &st_alloc_attr,
1702 1700              sizeof (read_pos_data_t), ((km_flags == KM_SLEEP) ? 1 : 0), 0,
1703 1701              NULL, (caddr_t *)&un->un_read_pos_data, &rlen, NULL);
1704 1702  
1705 1703          if (!un->un_sbufp || !un->un_mspl || !un->un_read_pos_data) {
↓ open down ↓ 16889 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX