summaryrefslogtreecommitdiff
path: root/usr/src/uts/sun4/os/ddi_impl.c
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2012-03-11 22:00:47 -0700
committerGarrett D'Amore <garrett@damore.org>2012-03-11 22:00:47 -0700
commitcd21e7c548ae2a3b5e522244bf798f2a6b4ba02d (patch)
tree407cc0857b2bfb1e15ba3dc275938511a9165221 /usr/src/uts/sun4/os/ddi_impl.c
parentb30a53d02d9bc370d76b8125a98e34311c768b5e (diff)
downloadillumos-joyent-cd21e7c548ae2a3b5e522244bf798f2a6b4ba02d.tar.gz
998 obsolete DMA driver interfaces should be removed
Reviewed by: Igor Khozhukhov <igor.khozhukhov@nexenta.com> Reviewed by: Albert Lee <trisk@nexenta.com> Reviewed by: Robert Mustacchi <rm@joyent.com> Reviewed by: Richard Lowe <richlowe@richlowe.net> Approved by: Robert Mustacchi <rm@joyent.com>
Diffstat (limited to 'usr/src/uts/sun4/os/ddi_impl.c')
-rw-r--r--usr/src/uts/sun4/os/ddi_impl.c41
1 files changed, 3 insertions, 38 deletions
diff --git a/usr/src/uts/sun4/os/ddi_impl.c b/usr/src/uts/sun4/os/ddi_impl.c
index f3efc433c5..6769c48b9d 100644
--- a/usr/src/uts/sun4/os/ddi_impl.c
+++ b/usr/src/uts/sun4/os/ddi_impl.c
@@ -23,6 +23,9 @@
* Copyright 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
+/*
+ * Copyright 2012 Garrett D'Amore <garrett@damore.org>. All rights reserved.
+ */
/*
* sun4 specific DDI implementation
@@ -1209,44 +1212,6 @@ i_ddi_mem_alloc(dev_info_t *dip, ddi_dma_attr_t *attr,
}
}
-/*
- * covert old DMA limits structure to DMA attribute structure
- * and continue
- */
-int
-i_ddi_mem_alloc_lim(dev_info_t *dip, ddi_dma_lim_t *limits,
- size_t length, int cansleep, int streaming,
- ddi_device_acc_attr_t *accattrp, caddr_t *kaddrp,
- uint_t *real_length, ddi_acc_hdl_t *ap)
-{
- ddi_dma_attr_t dma_attr, *attrp;
- size_t rlen;
- int ret;
-
- ASSERT(limits);
- attrp = &dma_attr;
- attrp->dma_attr_version = DMA_ATTR_V0;
- attrp->dma_attr_addr_lo = (uint64_t)limits->dlim_addr_lo;
- attrp->dma_attr_addr_hi = (uint64_t)limits->dlim_addr_hi;
- attrp->dma_attr_count_max = (uint64_t)-1;
- attrp->dma_attr_align = 1;
- attrp->dma_attr_burstsizes = (uint_t)limits->dlim_burstsizes;
- attrp->dma_attr_minxfer = (uint32_t)limits->dlim_minxfer;
- attrp->dma_attr_maxxfer = (uint64_t)-1;
- attrp->dma_attr_seg = (uint64_t)limits->dlim_cntr_max;
- attrp->dma_attr_sgllen = 1;
- attrp->dma_attr_granular = 1;
- attrp->dma_attr_flags = 0;
-
- ret = i_ddi_mem_alloc(dip, attrp, length, cansleep, streaming,
- accattrp, kaddrp, &rlen, ap);
- if (ret == DDI_SUCCESS) {
- if (real_length)
- *real_length = (uint_t)rlen;
- }
- return (ret);
-}
-
/* ARGSUSED */
void
i_ddi_mem_free(caddr_t kaddr, ddi_acc_hdl_t *ap)