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

*** 19,29 **** * CDDL HEADER END */ /* * Copyright (c) 1990, 2010, Oracle and/or its affiliates. All rights reserved. ! * Copyright 2012 Garrett D'Amore <garrett@damore.org>. All rights reserved. */ #include <sys/note.h> #include <sys/types.h> #include <sys/param.h> --- 19,29 ---- * CDDL HEADER END */ /* * Copyright (c) 1990, 2010, Oracle and/or its affiliates. All rights reserved. ! * Copyright 2014 Garrett D'Amore <garrett@damore.org> */ #include <sys/note.h> #include <sys/types.h> #include <sys/param.h>
*** 708,744 **** /* * DMA/DVMA setup */ - #if defined(__sparc) - static ddi_dma_lim_t standard_limits = { - (uint_t)0, /* addr_t dlim_addr_lo */ - (uint_t)-1, /* addr_t dlim_addr_hi */ - (uint_t)-1, /* uint_t dlim_cntr_max */ - (uint_t)1, /* uint_t dlim_burstsizes */ - (uint_t)1, /* uint_t dlim_minxfer */ - 0 /* uint_t dlim_dmaspeed */ - }; - #elif defined(__x86) - static ddi_dma_lim_t standard_limits = { - (uint_t)0, /* addr_t dlim_addr_lo */ - (uint_t)0xffffff, /* addr_t dlim_addr_hi */ - (uint_t)0, /* uint_t dlim_cntr_max */ - (uint_t)0x00000001, /* uint_t dlim_burstsizes */ - (uint_t)DMA_UNIT_8, /* uint_t dlim_minxfer */ - (uint_t)0, /* uint_t dlim_dmaspeed */ - (uint_t)0x86<<24+0, /* uint_t dlim_version */ - (uint_t)0xffff, /* uint_t dlim_adreg_max */ - (uint_t)0xffff, /* uint_t dlim_ctreg_max */ - (uint_t)512, /* uint_t dlim_granular */ - (int)1, /* int dlim_sgllen */ - (uint_t)0xffffffff /* uint_t dlim_reqsizes */ - }; - - #endif - #if !defined(__sparc) /* * Request bus_dma_ctl parent to fiddle with a dma request. * * (The sparc version is in sparc_subr.s) --- 708,717 ----
*** 929,958 **** return (0); else return (dimp->dmai_burstsizes); } - int - ddi_iomin(dev_info_t *a, int i, int stream) - { - int r; - - /* - * Make sure that the initial value is sane - */ - if (i & (i - 1)) - return (0); - if (i == 0) - i = (stream) ? 4 : 1; - - r = ddi_ctlops(a, a, - DDI_CTLOPS_IOMIN, (void *)(uintptr_t)stream, (void *)&i); - if (r != DDI_SUCCESS || (i & (i - 1))) - return (0); - return (i); - } - /* * Given two DMA attribute structures, apply the attributes * of one to the other, following the rules of attributes * and the wishes of the caller. * --- 902,911 ----